Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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