コード例 #1
0
ファイル: Startup.cs プロジェクト: Sellec/OnWeb
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetTransient <ICustomFieldRender <HiddenSimpleMultiLineFieldType>, HiddenSimpleMultiLineFieldTypeRender>();
     bindingsCollection.SetTransient <ICustomFieldRender <HiddenSingleLineFieldType>, HiddenSingleLineFieldTypeRender>();
     bindingsCollection.SetTransient <ICustomFieldRender <SimpleMultiLineFieldType>, SimpleMultiLineFieldTypeRender>();
     bindingsCollection.SetTransient <ICustomFieldRender <SimpleSingleLineFieldType>, SimpleSingleLineFieldTypeRender>();
     bindingsCollection.SetTransient <ICustomFieldRender <SourceMultipleFieldType>, SourceMultipleFieldTypeRender>();
     bindingsCollection.SetTransient <ICustomFieldRender <SourceSingleFieldType>, SourceSingleFieldTypeRender>();
     bindingsCollection.SetTransient <ICustomFieldRender <UnknownFieldType>, UnknownFieldTypeRender>();
 }
コード例 #2
0
        /// <summary>
        /// См. <see cref="AppCore{TAppCore}.OnBindingsRequired(IBindingsCollection{TAppCore})"/>.
        /// </summary>
        protected override void OnBindingsRequired(IBindingsCollection <WebApplication> bindingsCollection)
        {
            base.OnBindingsRequired(bindingsCollection);

            bindingsCollection.SetSingleton <Core.Storage.ResourceProvider, ResourceProvider>(() =>
            {
                var viewEnginePrevious = ViewEngines.Engines.LastOrDefault(x => !(x is ResourceProvider));
                var instance           = new ResourceProvider(viewEnginePrevious);
                ViewEngines.Engines.Insert(0, instance);
                return(instance);
            });
            bindingsCollection.SetSingleton <RoutingManager>();
        }
コード例 #3
0
        void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
        {
            bindingsCollection.SetSingleton <FileManager>();
            bindingsCollection.SetTransient <IModuleController <FileManager>, FileManagerController>();
            bindingsCollection.AddTransient <IModuleController <FileManager>, FileManagerControllerAdmin>();

            bindingsCollection.SetTransient <ICustomFieldRender <FileImageFieldType>, FileImageFieldTypeRender>();
            bindingsCollection.SetTransient <ICustomFieldRender <FileFieldType>, FileFieldTypeRender>();

            bindingsCollection.SetTransient <DbSchema.File>();
            bindingsCollection.SetTransient <DbSchema.FileRemoveQueue>();
            bindingsCollection.SetTransient <DbSchema.File20200306>();
        }
コード例 #4
0
        /// <summary>
        /// См. <see cref="AppCore{TAppCore}.OnBindingsRequired(IBindingsCollection{TAppCore})"/>.
        /// </summary>
        protected override void OnBindingsRequired(IBindingsCollection <OnXApplication> bindingsCollection)
        {
            if (AppDebugLevel >= DebugLevel.Common)
            {
                Debug.WriteLine($"{nameof(OnXApplication)}.{nameof(OnBindingsRequired)}");
            }

            bindingsCollection.SetSingleton <ApplicationLauncher>();
            bindingsCollection.SetSingleton <Core.Items.ItemsManager>();
            bindingsCollection.SetSingleton <Journaling.JournalingManager>();
            bindingsCollection.SetSingleton <Journaling.DB.JournalingManagerDatabaseAccessor>();
            bindingsCollection.SetSingleton <Messaging.MessagingManager>();
            bindingsCollection.SetSingleton <ModulesManager>();
            bindingsCollection.SetSingleton <ModulesLoadStarter>();
            bindingsCollection.SetSingleton <ServiceMonitor.Monitor>();
            bindingsCollection.SetSingleton <UserContextManager>();
            bindingsCollection.SetSingleton <Languages.Manager>();
        }
コード例 #5
0
ファイル: Startup.cs プロジェクト: Sellec/OnXap
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <LexiconManager>();
     bindingsCollection.SetTransient <Db.WordCaseSchemeItem>();
 }
コード例 #6
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleAuth, Module2>();
     bindingsCollection.SetSingleton <SessionBinder>();
 }
コード例 #7
0
ファイル: Startup.cs プロジェクト: Sellec/OnWeb
 void IConfigureBindings <ApplicationCore> .ConfigureBindings(IBindingsCollection <ApplicationCore> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleAuth, Module2>();
 }
コード例 #8
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleAdmin, ModuleStandard>();
     bindingsCollection.SetTransient <IModuleController <ModuleAdmin>, ModuleAdminController>();
 }
コード例 #9
0
ファイル: Startup.cs プロジェクト: Sellec/OnXap
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetTransient <IModuleController <ModuleAuth> >(typeof(ModuleAuthController), typeof(ModuleAuthControllerAdmin));
     bindingsCollection.SetTransient <Db.UserPasswordRecoverySchemaItem>();
 }
コード例 #10
0
        /// <summary>
        /// </summary>
        protected override void OnBindingsRequired(IBindingsCollection <WebApplication> bindingsCollection)
        {
            base.OnBindingsRequired(bindingsCollection);

            bindingsCollection.SetSingleton <Languages.Manager>();
        }
コード例 #11
0
ファイル: Startup.cs プロジェクト: Sellec/OnXap
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <IEntitiesManager, EntitiesManager>();
     bindingsCollection.SetTransient <Db.UserEntitySchemaItem>();
 }
コード例 #12
0
ファイル: Startup.cs プロジェクト: Sellec/OnWeb
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetTransient <IModuleController <ModuleDefault>, ModuleDefaultController>();
 }
コード例 #13
0
 void IConfigureBindingsLazy <OnXApplication> .ConfigureBindingsLazy(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     ConfigureBindingsLazy(new BindingsCollection(bindingsCollection));
 }
コード例 #14
0
 internal BindingsCollection(IBindingsCollection <OnXApplication> source)
 {
     _source = source;
 }
コード例 #15
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.RegisterBindingConstraintHandler(new BindingConstraint());
     bindingsCollection.SetSingleton <WebCoreModule>();
     bindingsCollection.SetSingleton <WebCoreConfigurationChecker>();
 }
コード例 #16
0
 void IConfigureBindings<WebApplication>.ConfigureBindings(IBindingsCollection<WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton<ModuleDefault>();
 }
コード例 #17
0
ファイル: Startup.cs プロジェクト: Sellec/OnWeb
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleControllerTypesManager>();
 }
コード例 #18
0
 void IConfigureBindings <ApplicationCore> .ConfigureBindings(IBindingsCollection <ApplicationCore> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleCommunication>();
     bindingsCollection.SetSingleton <Core.Addresses.IManager, Core.Addresses.AddressManager>();
 }
コード例 #19
0
ファイル: Startup.cs プロジェクト: Sellec/OnWeb
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleSitemap>();
     bindingsCollection.AddTransient <IModuleController <ModuleSitemap>, ModuleController>();
 }
コード例 #20
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleTest>();
 }
コード例 #21
0
ファイル: StartupTest1.cs プロジェクト: Sellec/OnUtils
 void IConfigureBindings <ApplicationCore> .ConfigureBindings(IBindingsCollection <ApplicationCore> bindingsCollection)
 {
     Debug.WriteLineNoLog("StartupTest1.ConfigureBindings");
 }
コード例 #22
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleUsersManagement>();
 }
コード例 #23
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleCustomer, ModuleStandard>();
     bindingsCollection.SetTransient <IModuleController <ModuleCustomer> >(typeof(ModuleControllerCustomer), typeof(ModuleControllerAdminCustomer));
 }
コード例 #24
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleRegister>();
     bindingsCollection.SetTransient <IModuleController <ModuleRegister>, ModuleRegisterController>();
 }
コード例 #25
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <DbMaintenanceModule>();
     bindingsCollection.SetTransient <Db.DefaultSchemeItem>();
 }
コード例 #26
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <EMailModule>();
     bindingsCollection.SetTransient <IModuleController <EMailModule>, EMailController>();
 }
コード例 #27
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleReCaptcha>();
     bindingsCollection.SetTransient <IModuleController <ModuleReCaptcha>, ModuleReCaptchaController>();
 }
コード例 #28
0
ファイル: Startup.cs プロジェクト: Sellec/OnXap
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleItemsCustomize2>();
     bindingsCollection.SetTransient <IModuleController <ModuleItemsCustomize2>, ModuleController>();
 }
コード例 #29
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetTransient <IModuleController <Module>, EMailController>();
 }
コード例 #30
0
ファイル: Startup.cs プロジェクト: Sellec/OnWeb
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <LexiconManager>();
 }