Exemplo n.º 1
0
 void RegisterServices(IMainModule mainModule) {
     var mainModuleType = mainModule.GetType();
     ServiceContainer.RegisterService(new Services.WaitingService());
     ServiceContainer.RegisterService(new Services.ModuleActivator(
         mainModuleType.Assembly, mainModuleType.Namespace + ".Modules"));
     ServiceContainer.RegisterService(new Services.ReportActivator());
     ServiceContainer.RegisterService(new Services.ModuleLocator(ServiceContainer));
     ServiceContainer.RegisterService(new Services.ReportLocator(ServiceContainer));
     ServiceContainer.RegisterService(new Services.TransitionService(mainModule));
     ServiceContainer.RegisterService(new Services.PeekModulesHostingService(mainModule));
     ServiceContainer.RegisterService(new Services.WorkspaceService(mainModule));
 }
Exemplo n.º 2
0
        void RegisterServices(IMainModule mainModule)
        {
            var mainModuleType             = mainModule.GetType();
            ISupportServices localServices = (ISupportServices)this;

            localServices.ServiceContainer.RegisterService(new Services.WaitingService());
            localServices.ServiceContainer.RegisterService(new Services.ModuleActivator(mainModuleType.Assembly, mainModuleType.Namespace + ".Modules"));
            localServices.ServiceContainer.RegisterService(new Services.ReportActivator());
            localServices.ServiceContainer.RegisterService(new Services.ModuleLocator(localServices.ServiceContainer));
            localServices.ServiceContainer.RegisterService(new Services.ReportLocator(localServices.ServiceContainer));
            localServices.ServiceContainer.RegisterService(new Services.TransitionService(mainModule));
            localServices.ServiceContainer.RegisterService(new Services.PeekModulesHostingService(mainModule));
            localServices.ServiceContainer.RegisterService(new Services.WorkspaceService(mainModule));
        }
Exemplo n.º 3
0
        private void RegisterServices(IMainModule mainModule)
        {
            var mainModuleType = mainModule.GetType();

            ServiceContainer.RegisterService(new Services.ModuleActivator(
                                                 mainModuleType.Assembly, mainModuleType.Namespace + ".Modules"));
            ServiceContainer.RegisterService(new Services.ReportActivator(
                                                 mainModuleType.Assembly, "DevExpress.DevAV.Reports"));
            ServiceContainer.RegisterService(new Services.ModuleLocator(ServiceContainer));
            ServiceContainer.RegisterService(new Services.ReportLocator(ServiceContainer));
            ServiceContainer.RegisterService(new Services.TransitionService(mainModule));
            ServiceContainer.RegisterService(new Services.PeekModulesHostingService(mainModule));
            ServiceContainer.RegisterService(new Services.WorkspaceService(mainModule));
        }
Exemplo n.º 4
0
        private void RegisterServices(IMainModule mainModule)
        {
            var mainModuleType = mainModule.GetType();

            ServiceContainer.RegisterService(new ModuleActivator(
                                                 mainModuleType.Assembly, mainModuleType.Namespace + ".Modules"));
            ServiceContainer.RegisterService(new ReportActivator(
                                                 mainModuleType.Assembly, "PHRMS"));
            ServiceContainer.RegisterService(new ModuleLocator(ServiceContainer));
            ServiceContainer.RegisterService(new ReportLocator(ServiceContainer));
            ServiceContainer.RegisterService(new TransitionService(mainModule));
            ServiceContainer.RegisterService(new PeekModulesHostingService(mainModule));
            ServiceContainer.RegisterService(new WorkspaceService(mainModule));
        }