Created
September 25, 2019 13:21
-
-
Save takahirohonda/8f5496124ab092bf9cf9ee42f6a0d08e to your computer and use it in GitHub Desktop.
sitecore-di-example-blog-2-RegisterDependencies.cs
This file contains hidden or 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
using SitecoreDev.Feature.Design.Repository; | |
namespace SitecoreDev.Feature.Design | |
{ | |
using Microsoft.Extensions.DependencyInjection; | |
using Sitecore.DependencyInjection; | |
using SitecoreDev.Feature.Design.Controllers; | |
public class RegisterDependencies : IServicesConfigurator | |
{ | |
public void Configure(IServiceCollection serviceCollection) | |
{ | |
serviceCollection.AddTransient<FrontEndTestController>(); | |
serviceCollection.AddTransient(typeof(IFrontEndTestRepository), | |
typeof(FrontEndTestRepository)); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment