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>(); }
/// <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>(); }
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>(); }
/// <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>(); }
void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection) { bindingsCollection.SetSingleton <LexiconManager>(); bindingsCollection.SetTransient <Db.WordCaseSchemeItem>(); }
void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection) { bindingsCollection.SetSingleton <ModuleAuth, Module2>(); bindingsCollection.SetSingleton <SessionBinder>(); }
void IConfigureBindings <ApplicationCore> .ConfigureBindings(IBindingsCollection <ApplicationCore> bindingsCollection) { bindingsCollection.SetSingleton <ModuleAuth, Module2>(); }
void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection) { bindingsCollection.SetSingleton <ModuleAdmin, ModuleStandard>(); bindingsCollection.SetTransient <IModuleController <ModuleAdmin>, ModuleAdminController>(); }
void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection) { bindingsCollection.SetTransient <IModuleController <ModuleAuth> >(typeof(ModuleAuthController), typeof(ModuleAuthControllerAdmin)); bindingsCollection.SetTransient <Db.UserPasswordRecoverySchemaItem>(); }
/// <summary> /// </summary> protected override void OnBindingsRequired(IBindingsCollection <WebApplication> bindingsCollection) { base.OnBindingsRequired(bindingsCollection); bindingsCollection.SetSingleton <Languages.Manager>(); }
void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection) { bindingsCollection.SetSingleton <IEntitiesManager, EntitiesManager>(); bindingsCollection.SetTransient <Db.UserEntitySchemaItem>(); }
void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection) { bindingsCollection.SetTransient <IModuleController <ModuleDefault>, ModuleDefaultController>(); }
void IConfigureBindingsLazy <OnXApplication> .ConfigureBindingsLazy(IBindingsCollection <OnXApplication> bindingsCollection) { ConfigureBindingsLazy(new BindingsCollection(bindingsCollection)); }
internal BindingsCollection(IBindingsCollection <OnXApplication> source) { _source = source; }
void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection) { bindingsCollection.RegisterBindingConstraintHandler(new BindingConstraint()); bindingsCollection.SetSingleton <WebCoreModule>(); bindingsCollection.SetSingleton <WebCoreConfigurationChecker>(); }
void IConfigureBindings<WebApplication>.ConfigureBindings(IBindingsCollection<WebApplication> bindingsCollection) { bindingsCollection.SetSingleton<ModuleDefault>(); }
void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection) { bindingsCollection.SetSingleton <ModuleControllerTypesManager>(); }
void IConfigureBindings <ApplicationCore> .ConfigureBindings(IBindingsCollection <ApplicationCore> bindingsCollection) { bindingsCollection.SetSingleton <ModuleCommunication>(); bindingsCollection.SetSingleton <Core.Addresses.IManager, Core.Addresses.AddressManager>(); }
void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection) { bindingsCollection.SetSingleton <ModuleSitemap>(); bindingsCollection.AddTransient <IModuleController <ModuleSitemap>, ModuleController>(); }
void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection) { bindingsCollection.SetSingleton <ModuleTest>(); }
void IConfigureBindings <ApplicationCore> .ConfigureBindings(IBindingsCollection <ApplicationCore> bindingsCollection) { Debug.WriteLineNoLog("StartupTest1.ConfigureBindings"); }
void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection) { bindingsCollection.SetSingleton <ModuleUsersManagement>(); }
void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection) { bindingsCollection.SetSingleton <ModuleCustomer, ModuleStandard>(); bindingsCollection.SetTransient <IModuleController <ModuleCustomer> >(typeof(ModuleControllerCustomer), typeof(ModuleControllerAdminCustomer)); }
void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection) { bindingsCollection.SetSingleton <ModuleRegister>(); bindingsCollection.SetTransient <IModuleController <ModuleRegister>, ModuleRegisterController>(); }
void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection) { bindingsCollection.SetSingleton <DbMaintenanceModule>(); bindingsCollection.SetTransient <Db.DefaultSchemeItem>(); }
void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection) { bindingsCollection.SetSingleton <EMailModule>(); bindingsCollection.SetTransient <IModuleController <EMailModule>, EMailController>(); }
void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection) { bindingsCollection.SetSingleton <ModuleReCaptcha>(); bindingsCollection.SetTransient <IModuleController <ModuleReCaptcha>, ModuleReCaptchaController>(); }
void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection) { bindingsCollection.SetSingleton <ModuleItemsCustomize2>(); bindingsCollection.SetTransient <IModuleController <ModuleItemsCustomize2>, ModuleController>(); }
void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection) { bindingsCollection.SetTransient <IModuleController <Module>, EMailController>(); }
void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection) { bindingsCollection.SetSingleton <LexiconManager>(); }