public AdminController(
            IEnumerable <IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IModuleService moduleService,
            IDataMigrationManager dataMigrationManager,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,
            IRecipeHarvester recipeHarvester,
            IRecipeManager recipeManager,
            ShellDescriptor shellDescriptor,
            ShellSettings shellSettings,
            IShapeFactory shapeFactory)
        {
            Services = services;
            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _moduleService        = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _extensionManager     = extensionManager;
            _featureManager       = featureManager;
            _recipeHarvester      = recipeHarvester;
            _recipeManager        = recipeManager;
            _shellDescriptor      = shellDescriptor;
            _shellSettings        = shellSettings;
            Shape = shapeFactory;

            T      = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
Ejemplo n.º 2
0
        public AdminController(
            IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IModuleService moduleService,
            IDataMigrationManager dataMigrationManager,
            IReportsCoordinator reportsCoordinator,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,
            IRecipeHarvester recipeHarvester,
            IRecipeManager recipeManager,
            ShellDescriptor shellDescriptor,
            ShellSettings shellSettings,
            IShapeFactory shapeFactory)
        {
            Services = services;
            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _moduleService = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _reportsCoordinator = reportsCoordinator;
            _extensionManager = extensionManager;
            _featureManager = featureManager;
            _recipeHarvester = recipeHarvester;
            _recipeManager = recipeManager;
            _shellDescriptor = shellDescriptor;
            _shellSettings = shellSettings;
            Shape = shapeFactory;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Create an instance of the hosting class
        /// </summary>
        /// <param name="target">target instance</param>
        public SOSHost(ITarget target)
        {
            Target                 = target;
            ConsoleService         = target.Services.GetService <IConsoleService>();
            ModuleService          = target.Services.GetService <IModuleService>();
            ThreadService          = target.Services.GetService <IThreadService>();
            MemoryService          = target.Services.GetService <IMemoryService>();
            _ignoreAddressBitsMask = MemoryService.SignExtensionMask();

            string rid = InstallHelper.GetRid();

            SOSPath = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), rid);

            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                var debugClient = new DebugClient(this);
                _interface = debugClient.IDebugClient;
            }
            else
            {
                var lldbServices = new LLDBServices(this);
                _interface = lldbServices.ILLDBServices;
            }
            _hostWrapper = new HostWrapper(target.Host);
            _hostWrapper.AddServiceWrapper(SymbolServiceWrapper.IID_ISymbolService, () => new SymbolServiceWrapper(target.Host));
        }
Ejemplo n.º 4
0
 public NetkanTransformer(
     IHttpService http,
     IFileService fileService,
     IModuleService moduleService,
     string githubToken,
     bool prerelease
     )
 {
     _transformers = InjectVersionedOverrideTransformers(new List <ITransformer>
     {
         new MetaNetkanTransformer(http),
         new SpacedockTransformer(new SpacedockApi(http)),
         new CurseTransformer(new CurseApi(http)),
         new GithubTransformer(new GithubApi(githubToken), prerelease),
         new HttpTransformer(),
         new JenkinsTransformer(http),
         new AvcKrefTransformer(http),
         new InternalCkanTransformer(http, moduleService),
         new AvcTransformer(http, moduleService),
         new VersionEditTransformer(),
         new ForcedVTransformer(),
         new EpochTransformer(),
         // This is the "default" VersionedOverrideTransformer for compatability with overrides that don't
         // specify a before or after property.
         new VersionedOverrideTransformer(before: new string[] { null }, after: new string[] { null }),
         new DownloadAttributeTransformer(http, fileService),
         new GeneratedByTransformer(),
         new OptimusPrimeTransformer(),
         new StripNetkanMetadataTransformer(),
         new PropertySortTransformer()
     });
 }
 /// <summary>
 /// Memory service constructor
 /// </summary>
 /// <param name="target"></param>
 /// <param name="memoryService">memory service to wrap</param>
 internal PEImageMappingMemoryService(ITarget target, IMemoryService memoryService)
 {
     _memoryService = memoryService;
     _moduleService = target.Services.GetService <IModuleService>();
     _memoryCache   = new MemoryCache(ReadMemoryFromModule);
     target.OnFlushEvent.Register(_memoryCache.FlushCache);
 }
Ejemplo n.º 6
0
 public RoleService(IRoleRepository roleRepository, IModuleService moduleService, IPermissionService permissionService, IUnitOfWork unitOfWork)
     : base(unitOfWork)
 {
     this._RoleRepository    = roleRepository;
     this._ModuleService     = moduleService;
     this._PermissionService = permissionService;
 }
 public FeatureCommands(IModuleService moduleService, INotifier notifier, IFeatureManager featureManager, ShellDescriptor shellDescriptor)
 {
     _moduleService = moduleService;
     _notifier = notifier;
     _featureManager = featureManager;
     _shellDescriptor = shellDescriptor;
 }
        public ActionResult PermissionMenu()
        {
            IModuleService moduleService = ServiceFactory.Create <IModuleService>();
            var            munes         = moduleService.GetEntities(t => t.Disabled == false);

            return(View(munes));
        }
Ejemplo n.º 9
0
        public JsonResult GetModuleByID(int menuID)
        {
            IModuleService moduleService = ServiceFactory.Create <IModuleService>();
            var            data          = moduleService.GetEntity(menuID);

            return(Json(data, JsonRequestBehavior.AllowGet));
        }
Ejemplo n.º 10
0
        public HelpModule(IModuleService modules)
            : base("api/help")
        {
            _modules = modules;

            Get["/"] = _ => View["HelpApi", _modules.GetAllModules()];
        }
Ejemplo n.º 11
0
 public NetkanTransformer(
     IHttpService http,
     IFileService fileService,
     IModuleService moduleService,
     string githubToken,
     bool prerelease
 )
 {
     _transformers = InjectVersionedOverrideTransformers(new List<ITransformer>
     {
         new MetaNetkanTransformer(http),
         new SpacedockTransformer(new SpacedockApi(http)),
         new GithubTransformer(new GithubApi(githubToken), prerelease),
         new HttpTransformer(),
         new JenkinsTransformer(http),
         new InternalCkanTransformer(http, moduleService),
         new AvcTransformer(http, moduleService),
         new VersionEditTransformer(),
         new ForcedVTransformer(),
         new EpochTransformer(),
         // This is the "default" VersionedOverrideTransformer for compatability with overrides that don't
         // specify a before or after property.
         new VersionedOverrideTransformer(before: new string[] { null }, after: new string[] { null }),
         new DownloadAttributeTransformer(http, fileService),
         new GeneratedByTransformer(),
         new OptimusPrimeTransformer(),
         new StripNetkanMetadataTransformer(),
         new PropertySortTransformer()
     });
 }
Ejemplo n.º 12
0
        void LoadModuleList(NavigateGroup GM)
        {
            this.selectGroup = GM;

            EAS.Controls.Window.ShowLoading("请求成员数据...");
            QueryTask <Module> task    = new QueryTask <Module>();
            IModuleService     service = ServiceContainer.GetService <IModuleService>(task);

            service.GetModules(new Guid(GM.ID));
            task.Completed +=
                (s, e2) =>
            {
                EAS.Controls.Window.HideLoading();
                if (task.Error != null)
                {
                    MessageBox.Show("读取成员模块时发生错误:" + task.Error.Message, "错误", MessageBoxButton.OK);
                    return;
                }
                else
                {
                    this.moduleList           = task.Entities;
                    this.dataList.ItemsSource = null;
                    this.dataList.ItemsSource = this.moduleList;
                }
            };
        }
Ejemplo n.º 13
0
 public NetkanTransformer(
     IHttpService http,
     IFileService fileService,
     IModuleService moduleService,
     string githubToken,
     bool prerelease
     )
 {
     _transformers = new List <ITransformer>
     {
         new MetaNetkanTransformer(http),
         new KerbalstuffTransformer(new KerbalstuffApi(http)),
         new GithubTransformer(new GithubApi(githubToken), prerelease),
         new HttpTransformer(),
         new JenkinsTransformer(),
         new InternalCkanTransformer(http, moduleService),
         new AvcTransformer(http, moduleService),
         new ForcedVTransformer(),
         new EpochTransformer(),
         new VersionedOverrideTransformer(),
         new DownloadSizeTransformer(http, fileService),
         new GeneratedByTransformer(),
         new OptimusPrimeTransformer(),
         new StripNetkanMetadataTransformer()
     };
 }
Ejemplo n.º 14
0
 public CashierReceiptController(IUtilityService utilityservice, IUserCredentialService usercredentialservice, IModuleService iIModuleService, IRetailBillService RetailBillService,
                                 ISalesBillService SalesBillService, ICashierSalesOrderService CashierSalesOrderService, ICashierRetailBillService CashierRetailBillService, ICashierSalesBillService CashierSalesBillService,
                                 ICardChequeHandoverService CardChequeHandoverService, ICashHandoverService CashHandoverService, IRetailBillAdjAmtDetailService RetailBillAdjAmtDetailService,
                                 ISalesBillAdjAmtDetailService SalesBillAdjAmtDetailService, ICashierRefundOrderService CashierRefundOrderService, IBalanceCarryForwardService BalanceCarryForwardService,
                                 IIncomeExpenseVoucherService IncomeExchangeVoucherService, ITemporaryCashMemoService TemporaryCashMemoService, ITemporaryCashMemoAdjAmtDetailService TemporaryCashMemoAdjAmtDetailService,
                                 ICashierTemporaryCashMemoService CashierTemporaryCashMemoService, ISalesReturnService SalesReturnService)
 {
     this._utilityservice                       = utilityservice;
     this._IUserCredentialService               = usercredentialservice;
     this._iIModuleService                      = iIModuleService;
     this._RetailBillService                    = RetailBillService;
     this._SalesBillService                     = SalesBillService;
     this._CashierSalesOrderService             = CashierSalesOrderService;
     this._CashierRetailBillService             = CashierRetailBillService;
     this._CashierSalesBillService              = CashierSalesBillService;
     this._CardChequeHandoverService            = CardChequeHandoverService;
     this._CashHandoverService                  = CashHandoverService;
     this._RetailBillAdjAmtDetailService        = RetailBillAdjAmtDetailService;
     this._SalesBillAdjAmtDetailService         = SalesBillAdjAmtDetailService;
     this._CashierRefundOrderService            = CashierRefundOrderService;
     this._BalanceCarryForwardService           = BalanceCarryForwardService;
     this._IncomeExchangeVoucherService         = IncomeExchangeVoucherService;
     this._TemporaryCashMemoService             = TemporaryCashMemoService;
     this._TemporaryCashMemoAdjAmtDetailService = TemporaryCashMemoAdjAmtDetailService;
     this._CashierTemporaryCashMemoService      = CashierTemporaryCashMemoService;
     this._SalesReturnService                   = SalesReturnService;
 }
Ejemplo n.º 15
0
        public ProfileEditorViewModel(ProfileModule module,
                                      ProfileViewModel profileViewModel,
                                      ProfileTreeViewModel profileTreeViewModel,
                                      DisplayConditionsViewModel dataModelConditionsViewModel,
                                      LayerPropertiesViewModel layerPropertiesViewModel,
                                      IProfileEditorService profileEditorService,
                                      IProfileService profileService,
                                      IDialogService dialogService,
                                      ISettingsService settingsService,
                                      IModuleService moduleService,
                                      IMessageService messageService)
        {
            _profileEditorService = profileEditorService;
            _profileService       = profileService;
            _settingsService      = settingsService;
            _moduleService        = moduleService;
            _messageService       = messageService;

            DisplayName   = "PROFILE EDITOR";
            Module        = module;
            DialogService = dialogService;

            Profiles = new BindableCollection <ProfileDescriptor>();

            // Populate the panels
            ProfileViewModel = profileViewModel;
            ProfileViewModel.ConductWith(this);
            ProfileTreeViewModel = profileTreeViewModel;
            ProfileTreeViewModel.ConductWith(this);
            DisplayConditionsViewModel = dataModelConditionsViewModel;
            DisplayConditionsViewModel.ConductWith(this);
            LayerPropertiesViewModel = layerPropertiesViewModel;
            LayerPropertiesViewModel.ConductWith(this);
        }
Ejemplo n.º 16
0
        /// <summary>
        /// Create an instance of the hosting class. Has the lifetime of the target. Depends on the
        /// context service for the current thread and runtime.
        /// </summary>
        /// <param name="services">service provider</param>
        public SOSHost(IServiceProvider services)
        {
            Services      = services;
            Target        = services.GetService <ITarget>() ?? throw new DiagnosticsException("No target");
            TargetWrapper = new TargetWrapper(services);
            Target.DisposeOnDestroy(this);
            ConsoleService = services.GetService <IConsoleService>();
            ModuleService  = services.GetService <IModuleService>();
            ThreadService  = services.GetService <IThreadService>();
            MemoryService  = services.GetService <IMemoryService>();
            TargetWrapper.ServiceWrapper.AddServiceWrapper(SymbolServiceWrapper.IID_ISymbolService, () => new SymbolServiceWrapper(services.GetService <ISymbolService>(), MemoryService));
            _ignoreAddressBitsMask = MemoryService.SignExtensionMask();
            _sosLibrary            = services.GetService <SOSLibrary>();

            if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
            {
                var debugClient = new DebugClient(this);
                _interface = debugClient.IDebugClient;
            }
            else
            {
                var lldbServices = new LLDBServices(this);
                _interface = lldbServices.ILLDBServices;
            }
        }
Ejemplo n.º 17
0
 public PermissionController(
     IPermissionService permissionService,
     IModuleService moduleService)
 {
     this._permissionService = permissionService;
     this._moduleService     = moduleService;
 }
Ejemplo n.º 18
0
 public NetkanTransformer(
     IHttpService http,
     IFileService fileService,
     IModuleService moduleService,
     string githubToken,
     bool prerelease
 )
 {
     _transformers = new List<ITransformer>
     {
         new MetaNetkanTransformer(http),
         new KerbalstuffTransformer(new KerbalstuffApi(http)),
         new GithubTransformer(new GithubApi(githubToken), prerelease),
         new HttpTransformer(),
         new JenkinsTransformer(),
         new InternalCkanTransformer(http, moduleService),
         new AvcTransformer(http, moduleService),
         new VersionEditTransformer(),
         new ForcedVTransformer(),
         new EpochTransformer(),
         new VersionedOverrideTransformer(),
         new DownloadSizeTransformer(http, fileService),
         new GeneratedByTransformer(),
         new OptimusPrimeTransformer(),
         new StripNetkanMetadataTransformer(),
         new PropertySortTransformer()
     };
 }
 public PurchaseReturnController(IPurchaseReturnService PurchaseReturnService, IPurchaseReturnItemService PurchaseReturnItemService, IInwardFromSupplierService InwardFromSupplierService, IInwardItemFromSupplierService InwardItemFromSupplierService, IInwardFromShopToGodownService InwardFromShopToGodownService, IInwardItemFromShopToGodownService InwardItemFromShopToGodownService, IUserCredentialService UserCredentialService, IModuleService ModuleService,
                                 IUtilityService UtilityService, IShopStockService ShopStockService, IGodownStockService GodownStockService, IOpeningStockService OpeningStockService, IEntryStockItemService EntryStockItemService, IGodownService GodownService, IStockItemDistributionService StockItemDistributionService, IOutwardShopToGodownService OutwardShopToGodownService, IOutwardItemShopToGodownService OutwardItemShopToGodownService, ISuppliersMasterService SuppliersMasterService,
                                 IEmployeeMasterService EmployeeMasterService, IPurchaseInventoryTaxService PurchaseInventoryTaxService, IDebitNoteService DebitNoteService, IDebitNoteItemService DebitNoteItemService, IShopService ShopService)
 {
     this._PurchaseReturnService             = PurchaseReturnService;
     this._PurchaseReturnItemService         = PurchaseReturnItemService;
     this._InwardFromSupplierService         = InwardFromSupplierService;
     this._InwardItemFromSupplierService     = InwardItemFromSupplierService;
     this._InwardFromShopToGodownService     = InwardFromShopToGodownService;
     this._InwardItemFromShopToGodownService = InwardItemFromShopToGodownService;
     this._ModuleService                  = ModuleService;
     this._UserCredentialService          = UserCredentialService;
     this._UtilityService                 = UtilityService;
     this._ShopStockService               = ShopStockService;
     this._GodownStockService             = GodownStockService;
     this._OpeningStockService            = OpeningStockService;
     this._EntryStockItemService          = EntryStockItemService;
     this._GodownService                  = GodownService;
     this._StockItemDistributionService   = StockItemDistributionService;
     this._OutwardShopToGodownService     = OutwardShopToGodownService;
     this._OutwardItemShopToGodownService = OutwardItemShopToGodownService;
     this._SuppliersMasterService         = SuppliersMasterService;
     this._EmployeeMasterService          = EmployeeMasterService;
     this._PurchaseInventoryTaxService    = PurchaseInventoryTaxService;
     this._DebitNoteService               = DebitNoteService;
     this._DebitNoteItemService           = DebitNoteItemService;
     this._ShopService = ShopService;
 }
Ejemplo n.º 20
0
 public MenuController(IModuleService mService, ISubModuleService serv, IMenuService menuService)
 {
     _ModuleService    = mService;
     _SubModuleService = serv;
     _menuService      = menuService;
     //Comment
 }
Ejemplo n.º 21
0
 public CostCodeCreationController(IUserCredentialService UserCredentialService, IModuleService ModuleService, ICostCodeCreationService CostCodeCreationService, IEmployeeMasterService EmployeeMasterService)
 {
     this._UserCredentialService   = UserCredentialService;
     this._ModuleService           = ModuleService;
     this._CostCodeCreationService = CostCodeCreationService;
     this._EmployeeMasterService   = EmployeeMasterService;
 }
        private void InitializeData()
        {
            IModuleService    moduleService    = IocContainerFactory.GetUnityContainer().Resolve <IModuleService>();
            IDataPointService dataPointService = IocContainerFactory.GetUnityContainer().Resolve <IDataPointService>();
            IModbusService    modbusService    = IocContainerFactory.GetUnityContainer().Resolve <IModbusService>();

            GetAllModuleRequest  getAllModuleRequest  = new GetAllModuleRequest();
            GetAllModuleResponse getAllModuleResponse = moduleService.GetAllModules(getAllModuleRequest);

            foreach (var moduleView in getAllModuleResponse.ModuleViews)
            {
                GetDataPointByModuleRequest getDataPointByModuleRequest = new GetDataPointByModuleRequest();
                getDataPointByModuleRequest.ModuleId = moduleView.ModuleId;

                GetDataPointByModuleResponse getDataPointByModuleResponse =
                    dataPointService.GetDataPointInfoByModule(getDataPointByModuleRequest);

                if (getDataPointByModuleResponse.ResponseSucceed)
                {
                    foreach (var dataPointInfoView in getDataPointByModuleResponse.DataPointInfoViews)
                    {
                        DataPointViewModel dataPointViewModel = dataPointInfoView.ConvertToDataPointViewModel();

                        dataPointViewModel.ModuleNumber      = moduleView.Number;
                        dataPointViewModel.ModuleName        = moduleView.Name;
                        dataPointViewModel.ModuleDescription = moduleView.Description;

                        this.DataPoints.Add(dataPointViewModel);
                    }
                }
            }
        }
Ejemplo n.º 23
0
 public FeatureCommands(IModuleService moduleService, INotifier notifier, IFeatureManager featureManager, ShellDescriptor shellDescriptor)
 {
     _moduleService   = moduleService;
     _notifier        = notifier;
     _featureManager  = featureManager;
     _shellDescriptor = shellDescriptor;
 }
Ejemplo n.º 24
0
 public ModuleViewService(ILogger <ModuleViewService> logger, ViewServicePack services, ModuleViewSource converter,
                          ModuleServiceConfig config, ModuleMessageViewService moduleMessageService, IModuleService service) : base(services, logger, converter)
 {
     this.config = config;
     this.moduleMessageService = moduleMessageService;
     this.moduleService        = service;
 }
Ejemplo n.º 25
0
 public ModuleController(BaseSimpleControllerServices services, ModuleViewService service, UnifiedModuleMessageViewService moduleMessageService,
                         IPermissionService permissionService, IModuleService moduleService)//UserViewService service, IPermissionService permissionService)
     : base(services, service)
 {
     this.moduleMessageService = moduleMessageService;
     this.permissionService    = permissionService;
     this.moduleService        = moduleService;
 }
 public MultiPictureModuleController(IModuleService moduleService, IMultiPictureModuleService multiPictureModuleService
                                     , IMenuService menuService, IModulePageService modulePageService)
 {
     _moduleService             = moduleService;
     _menuService               = menuService;
     _modulePageService         = modulePageService;
     _multiPictureModuleService = multiPictureModuleService;
 }
 public SearchHistoryService(CalculatorContext context,
     IModuleService moduleService,
     ICityService cityService)
 {
     this.context = context;
     this.moduleService = moduleService;
     this.cityService = cityService;
 }
Ejemplo n.º 28
0
        /// <inheritdoc />
        protected DeviceModule(IApiClient apiClient, IModuleService moduleService)
        {
            ApiClient     = apiClient;
            ModuleService = moduleService;

            DeviceEnumerator = new MMDeviceEnumerator();
            DeviceEnumerator.DeviceStateChanged += DeviceStateChanged;
        }
Ejemplo n.º 29
0
        public DeviceOutputModule(IApiClient apiClient, IModuleService moduleService)
            : base(apiClient, moduleService)
        {
            _inputBuffers = new ConcurrentDictionary <long, WriteableBufferingSource>();
            _inputSources = new ConcurrentDictionary <long, ISampleSource>();

            Latency = 1;
        }
Ejemplo n.º 30
0
 public UnitController(IUnitService unitservice, IUtilityService utilityservice, IUserCredentialService usercredentialservice, IModuleService iIModuleService, IUnitConversionService UnitConversionService)
 {
     this._unitservice            = unitservice;
     this._utilityservice         = utilityservice;
     this._IUserCredentialService = usercredentialservice;
     this._iIModuleService        = iIModuleService;
     this._UnitConversionService  = UnitConversionService;
 }
 public LoginController(IUserService userService,
       IRoleService roleService,
       IModuleService moduleService)
 {
     _userService = userService;
     _roleService = roleService;
     _moduleService = moduleService;
 }
Ejemplo n.º 32
0
 public HtmlModuleController(IModuleService moduleService, IHtmlModuleService htmlModuleService
                             , IMenuService menuService, IModulePageService modulePageService)
 {
     _moduleService     = moduleService;
     _menuService       = menuService;
     _modulePageService = modulePageService;
     _htmlModuleService = htmlModuleService;
 }
 public RoleController(IRoleService roleService, IModuleService ModuleService, IMapper mapper, ILog4Net logger, IDropDownService dropDownService)
 {
     _roleService     = roleService;
     _ModuleService   = ModuleService;
     _mapper          = mapper;
     _logger          = logger;
     _dropDownService = dropDownService;
 }
Ejemplo n.º 34
0
 /// <summary>
 /// Initializes a new instance of the <see cref="GroupModuleAccessService" /> class.
 /// </summary>
 /// <param name="mapperFactory">the mapper factory</param>
 /// <param name="table">the table</param>
 /// <param name="moduleService">the module service object</param>
 /// <param name="cacheProvider">The cache provider.</param>
 public GroupModuleAccessService(IMapperFactory mapperFactory, IRepository <TblGroupModuleAccess> table, IModuleService moduleService, ICacheProvider cacheProvider)
     : base(mapperFactory, table)
 {
     this.mapperFactory = mapperFactory;
     this.moduleService = moduleService;
     this.table         = table;
     this.cacheProvider = cacheProvider;
 }
Ejemplo n.º 35
0
 public UserController(IUserService userService,
                       IMenuService menuService,
                       IModuleService moduleService)
 {
     _userService   = userService;
     _menuService   = menuService;
     _moduleService = moduleService;
 }
 public MainWindow()
 {
     InitializeComponent();
     _moduleService = ServicePool.Current.GetService<IModuleService>();
     var list = _moduleService.GetModules();
     this.modulesListBox.DisplayMemberPath = "DisplayName";
     this.modulesListBox.ItemsSource = list;
 }
Ejemplo n.º 37
0
 public CkanValidator(Metadata netkan, IHttpService downloader, IModuleService moduleService)
 {
     _validators = new List<IValidator>
     {
         new IsCkanModuleValidator(),
         new MatchingIdentifiersValidator(netkan.Identifier),
         new InstallsFilesValidator(downloader, moduleService)
     };
 }
Ejemplo n.º 38
0
 public PackagingServicesController(
     ShellSettings shellSettings,
     IPackageManager packageManager,
     IPackagingSourceManager packagingSourceManager,
     IAppDataFolderRoot appDataFolderRoot,
     IOrchardServices services,
     IModuleService moduleService)
     : this(shellSettings, packageManager, packagingSourceManager, appDataFolderRoot, services, moduleService, null, null) {
 }
        public AdminController(
            IEnumerable<Orchard.Modules.Events.IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IModuleService moduleService,
            IDataMigrationManager dataMigrationManager,
            IReportsCoordinator reportsCoordinator,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,
            IRecipeHarvester recipeHarvester,
            IRecipeManager recipeManager,
            ShellDescriptor shellDescriptor,
            ShellSettings shellSettings,
            IShapeFactory shapeFactory,
            IPackageService packageService,
            IMimeTypeProvider mimeTypeProvider,
            ISiteThemeService siteThemeService,
            IThemeService themeService)
        {
            Services = services;
            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _moduleService = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _reportsCoordinator = reportsCoordinator;
            _extensionManager = extensionManager;
            _featureManager = featureManager;
            _recipeHarvester = recipeHarvester;
            _recipeManager = recipeManager;
            _shellDescriptor = shellDescriptor;
            _shellSettings = shellSettings;
            Shape = shapeFactory;
            _packageService = packageService;
            _mimeTypeProvider = mimeTypeProvider;

            _siteThemeService = siteThemeService;
            _themeService = themeService;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;

            _tempPackageStoragePath = new Lazy<string>(() =>
            {
                var path = HostingEnvironment.MapPath("~/App_Data/Packages");
                if (!Directory.Exists(path))
                {
                    Directory.CreateDirectory(path);
                }
                return path;
            });
        }
Ejemplo n.º 40
0
        public PackagingServicesController(
            ShellSettings shellSettings,
            IPackageManager packageManager,
            IPackagingSourceManager packagingSourceManager,
            IAppDataFolderRoot appDataFolderRoot,
            IOrchardServices services,
            IModuleService moduleService,
            IRecipeHarvester recipeHarvester,
            IRecipeManager recipeManager) {

            _shellSettings = shellSettings;
            _packageManager = packageManager;
            _appDataFolderRoot = appDataFolderRoot;
            _moduleService = moduleService;
            _recipeHarvester = recipeHarvester;
            _recipeManager = recipeManager;
            _packagingSourceManager = packagingSourceManager;
            Services = services;

            T = NullLocalizer.Instance;
            Logger = Logging.NullLogger.Instance;
        }
Ejemplo n.º 41
0
        public AdminController(          
            IOrchardServices services,
            IModuleService moduleService,
            IDataMigrationManager dataMigrationManager,
            IReportsCoordinator reportsCoordinator,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,                    
            ShellDescriptor shellDescriptor,
            IShapeFactory shapeFactory)
        {
            Services = services;
            _moduleService = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _reportsCoordinator = reportsCoordinator;
            _extensionManager = extensionManager;
            _featureManager = featureManager;
            _shellDescriptor = shellDescriptor;
            Shape = shapeFactory;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
Ejemplo n.º 42
0
        public AdminController(
            IEnumerable<IExtensionDisplayEventHandler> extensionDisplayEventHandlers,
            IOrchardServices services,
            IModuleService moduleService,
             ISiteService siteService,
            IDataMigrationManager dataMigrationManager,
            IExtensionManager extensionManager,
            IFeatureManager featureManager,
             ShellDescriptor shellDescriptor,
            ShellSettings shellSettings
            )
        {
            Services = services;
            _extensionDisplayEventHandler = extensionDisplayEventHandlers.FirstOrDefault();
            _moduleService = moduleService;
            _dataMigrationManager = dataMigrationManager;
            _extensionManager = extensionManager;
            _featureManager = featureManager;
            _shellDescriptor = shellDescriptor;
            _shellSettings = shellSettings;
            _siteService = siteService; ;

            Logger = NullLogger.Instance;
        }
Ejemplo n.º 43
0
 public InternalCkanTransformer(IHttpService http, IModuleService moduleService)
 {
     _http = http;
     _moduleService = moduleService;
 }
Ejemplo n.º 44
0
 public RoleController(IRoleService roleService,
     IModuleService moduleService)
 {
     _roleService = roleService;
     _moduleService = moduleService;
 }
Ejemplo n.º 45
0
 public InstallsFilesValidator(IHttpService http, IModuleService moduleService)
 {
     _http = http;
     _moduleService = moduleService;
 }
Ejemplo n.º 46
0
 public ModuleRunner(IModuleService moduleService)
 {
     _moduleService = moduleService;
 }
Ejemplo n.º 47
0
 public FeatureCommand(IModuleService moduleService) {
     _moduleService = moduleService;
 }
 public ModuleController(IModuleService moduleService,
     IPermissionService permissionService)
 {
     _moduleService = moduleService;
     _permissionService = permissionService;
 }
Ejemplo n.º 49
0
 public AdminController(IOrchardServices services, IModuleService moduleService) {
     Services = services;
     _moduleService = moduleService;
     T = NullLocalizer.Instance;
 }
Ejemplo n.º 50
0
 public MODULE(IModuleService moduleService)
     : this()
 {
     this.ModuleService = moduleService;
 }
Ejemplo n.º 51
0
 public ModuleController(IModuleRunner moduleRunner, IParcsService parcsService, IModuleService moduleService)
 {
     _moduleRunner = moduleRunner;
     _parcsService = parcsService;
     _moduleService = moduleService;
 }
Ejemplo n.º 52
0
 public AvcTransformer(IHttpService http, IModuleService moduleService)
 {
     _http = http;
     _moduleService = moduleService;
 }