Esempio n. 1
0
        void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
        {
            bindingsCollection.SetSingleton <FileManager>();
            bindingsCollection.SetTransient <IModuleController <FileManager>, FileManagerController>();

            bindingsCollection.SetTransient <ICustomFieldRender <FileImageFieldType>, FileImageFieldTypeRender>();
            bindingsCollection.SetTransient <ICustomFieldRender <FileFieldType>, FileFieldTypeRender>();
        }
Esempio n. 2
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleMaterials>();
     bindingsCollection.AddTransient <IModuleController <ModuleMaterials>, ModuleController>();
     bindingsCollection.AddTransient <IModuleController <ModuleMaterials>, ModuleMaterialsAdminController>();
     bindingsCollection.SetTransient <MaterialsSitemapProvider>();
     bindingsCollection.SetTransient <DbSchema.News>();
     bindingsCollection.SetTransient <DbSchema.Page>();
 }
Esempio n. 3
0
        void IConfigureBindings <ApplicationCore> .ConfigureBindings(IBindingsCollection <ApplicationCore> bindingsCollection)
        {
            bindingsCollection.SetSingleton <ModuleCommunication>();

            bindingsCollection.SetSingleton <IService, SMS.Service>();
            bindingsCollection.SetSingleton <Telegram.IService, Telegram.Service>();

            bindingsCollection.SetTransient <SMS.Connectors.AmazonSNS>();
            bindingsCollection.SetTransient <Telegram.Connectors.Bot>();
        }
Esempio n. 4
0
 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>();
 }
Esempio n. 5
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>();
        }
Esempio n. 6
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleCustomer, ModuleStandard>();
     bindingsCollection.SetTransient <IModuleController <ModuleCustomer> >(typeof(ModuleControllerCustomer), typeof(ModuleControllerAdminCustomer));
 }
Esempio n. 7
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <IEntitiesManager, EntitiesManager>();
     bindingsCollection.SetTransient <Db.UserEntitySchemaItem>();
 }
Esempio n. 8
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetTransient <IModuleController <ModuleAuth> >(typeof(ModuleAuthController), typeof(ModuleAuthControllerAdmin));
 }
Esempio n. 9
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleAdmin, ModuleStandard>();
     bindingsCollection.SetTransient <IModuleController <ModuleAdmin>, ModuleAdminController>();
 }
Esempio n. 10
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <EMailModule>();
     bindingsCollection.SetTransient <IModuleController <EMailModule>, EMailController>();
 }
Esempio n. 11
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleRegister>();
     bindingsCollection.SetTransient <IModuleController <ModuleRegister>, ModuleRegisterController>();
 }
Esempio n. 12
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetTransient <IModuleController <ModuleDefault>, ModuleDefaultController>();
 }
Esempio n. 13
0
 public void SetTransient <TQuery, TImplementation>()
     where TQuery : IComponentTransient <OnXApplication>
     where TImplementation : TQuery
 {
     _source.SetTransient <TQuery, TImplementation>();
 }
Esempio n. 14
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleAuth, Module2>();
     bindingsCollection.SetSingleton <SessionBinder>();
     bindingsCollection.SetTransient <Core.Db.UserSessionSchemaItem>();
 }
Esempio n. 15
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetTransient <IModuleController <ModuleAuth> >(typeof(ModuleAuthController), typeof(ModuleAuthControllerAdmin));
     bindingsCollection.SetTransient <Db.UserPasswordRecoverySchemaItem>();
 }
Esempio n. 16
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <DbMaintenanceModule>();
     bindingsCollection.SetTransient <Db.DefaultSchemeItem>();
 }
Esempio n. 17
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleItemsCustomize2>();
     bindingsCollection.SetTransient <IModuleController <ModuleItemsCustomize2>, ModuleController>();
 }
Esempio n. 18
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleReCaptcha>();
     bindingsCollection.SetTransient <IModuleController <ModuleReCaptcha>, ModuleReCaptchaController>();
 }
Esempio n. 19
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <LexiconManager>();
     bindingsCollection.SetTransient <Db.WordCaseSchemeItem>();
 }
Esempio n. 20
0
 void IConfigureBindings <OnXApplication> .ConfigureBindings(IBindingsCollection <OnXApplication> bindingsCollection)
 {
     bindingsCollection.SetTransient <IModuleController <Module>, EMailController>();
 }
Esempio n. 21
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <EmailService>();
     bindingsCollection.SetTransient <Components.SmtpServer>();
 }