Skip to content

Instantly share code, notes, and snippets.

@JRondeau16
Created May 12, 2015 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JRondeau16/b38793e1175d33787f1e to your computer and use it in GitHub Desktop.
Save JRondeau16/b38793e1175d33787f1e to your computer and use it in GitHub Desktop.
namespace MyProjectNamespace
{
public interface IInjectedClass
{
int TestMethod();
}
public class InjectedClass : IInjectedClass
{
private readonly IInjectedClassDependency _classDependency;
public InjectedClass()
{
_classDependency =
Sitecore.Configuration.Factory.CreateObject("guide/InjectedClassDependency", true) as InjectedClassDependency;
}
public int TestMethod()
{
return 16;
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment