Exemple #1
0
 public abstract void Start(IApplicationBuilder appBuilder, SchubertWebOptions options);
Exemple #2
0
 public abstract void ConfigureServices(SchubertServicesBuilder servicesBuilder, SchubertWebOptions options);
Exemple #3
0
        public override void ConfigureServices(SchubertServicesBuilder servicesBuilder, SchubertWebOptions webOptions)
        {
            servicesBuilder.ServiceCollection.Configure <MvcOptions>(options =>
            {
                options.ModelMetadataDetailsProviders.Add(new FluentValidationMetadataProvider());
                options.ModelValidatorProviders.Add(new FluentValidationModelValidatorProvider());
            });

            servicesBuilder.ServiceCollection.AddTransient <IConfigureOptions <MvcViewOptions>, LabijieMvcViewOptionsSetup>();
        }
Exemple #4
0
 public override void Start(IApplicationBuilder appBuilder, SchubertWebOptions options)
 {
 }
        public override void ConfigureServices(SchubertServicesBuilder servicesBuilder, SchubertWebOptions options)
        {
            var identitySvcdescriptor = ServiceDescriber.Scoped <IIdentityService, TIdentityService>();

            servicesBuilder.ServiceCollection.AddSmart(identitySvcdescriptor);

            servicesBuilder.ServiceCollection
            .AddIdentity <TUser, TRole>(iop => _configure?.Invoke(iop))
            .AddDefaultTokenProviders()
            .AddDapperStores <TUser, TRole>();
        }