Created
May 12, 2015 17:23
-
-
Save JRondeau16/b38793e1175d33787f1e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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