Ejemplo n.º 1
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleMaterials>();
     bindingsCollection.AddTransient <IModuleController <ModuleMaterials>, ModuleController>();
     bindingsCollection.AddTransient <IModuleController <ModuleMaterials>, ModuleAdminController>();
     bindingsCollection.SetTransient <MaterialsSitemapProvider>();
 }
Ejemplo n.º 2
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>();
        }
Ejemplo n.º 3
0
 void IConfigureBindings <WebApplication> .ConfigureBindings(IBindingsCollection <WebApplication> bindingsCollection)
 {
     bindingsCollection.SetSingleton <ModuleSitemap>();
     bindingsCollection.AddTransient <IModuleController <ModuleSitemap>, ModuleController>();
 }
Ejemplo n.º 4
0
 public void AddTransient <TQuery, TImplementation>()
     where TQuery : IComponentTransient <OnXApplication>
     where TImplementation : TQuery, new()
 {
     _source.AddTransient <TQuery, TImplementation>();
 }