public void ConfigureContainer(IInjectionScope scope) { //TODO this is fix for run on Linux, this should be deleted when will be used dotnet core 2.1 scope.Configure(c => c.ExcludeTypeFromAutoRegistration("Microsoft.AspNetCore.DataProtection.RegistryPolicyResolver")); scope.Registrate(Configuration); }