Skip to content

Instantly share code, notes, and snippets.

@gerhart92
Created October 3, 2021 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gerhart92/a942ba6d0b4b23baec0d272926d267f8 to your computer and use it in GitHub Desktop.
Save gerhart92/a942ba6d0b4b23baec0d272926d267f8 to your computer and use it in GitHub Desktop.
namespace Feature.Serialization.DI
{
using Feature.Serialization.Services;
using Microsoft.Extensions.DependencyInjection;
using Sitecore.DependencyInjection;
public class RegisterContainer : IServicesConfigurator
{
public void Configure(IServiceCollection serviceCollection)
{
serviceCollection.AddTransient<IUserSerializationService, UserSerializationService>();
serviceCollection.AddTransient<IRoleSerializationService, RoleSerializationService>();
serviceCollection.AddTransient<IItemSerializationService, ItemSerializationService>();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment