Skip to content

Instantly share code, notes, and snippets.

@trnktms
Created September 29, 2022 13:17
Embed
What would you like to do?
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