Created
September 29, 2022 13:17
-
-
Save trnktms/a04cf33e15ea087b7195daa0218f5f8b 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
using Foundation.ContentsResolvers; | |
using Foundation.Extensions; | |
using Microsoft.Extensions.DependencyInjection; | |
using Sitecore.DependencyInjection; | |
namespace Feature.DI | |
{ | |
public class RegisterContainer : IServicesConfigurator | |
{ | |
public void Configure(IServiceCollection serviceCollection) | |
{ | |
serviceCollection.AddScoped<IDefaultRenderingContentsResolver, DefaultRenderingContentsResolver>(); | |
serviceCollection.AddMvcControllers("*.Feature"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment