コード例 #1
0
        protected override void ConfigureApplicationContainer(ILifetimeScope container)
        {
            container.Update(builder =>
            {
                builder.RegisterType <IdentityProvider>().As <IIdentityProvider>();
                builder.RegisterInstance(ConfigurationRoot.RegisterSetting <AuthSettings>(nameof(AuthSettings))).SingleInstance();
            });

            base.ConfigureApplicationContainer(container);
        }