Skip to content

Instantly share code, notes, and snippets.

@trnktms
Created September 29, 2022 13:17
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save trnktms/a04cf33e15ea087b7195daa0218f5f8b to your computer and use it in GitHub Desktop.
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