public HelpModule(IPoolManager poolManager, IConfigManager configManager, ISoftwareRepository softwareRepository) : base("/help") { Get["/faq"] = _ => { ViewBag.Header = "Frequently Asked Questions"; return(View["faq"]); }; Get["/gettingstarted/"] = _ => { var model = new GettingStartedModel { Stack = configManager.StackConfig, Pool = poolManager.Get(slug) }; ViewBag.ActiveLink = "help"; return(View["gettingstarted/index", model]); }; Get["/miningsoftware/"] = _ => { ViewBag.ActiveLink = "help"; return(View["miningsoftware", softwareRepository]); }; }
//readonly IProductSupplierRepository repositoryProductSupplier; //readonly IPurchaseRepository repositoryPurchase; //readonly IHardwareRepository repositoryHardware; //readonly ISoftwareRepository repositorySoftware; public SupplierService(ISupplierRepository _repository, IProductSupplierRepository _repositoryProductSupplier, IPurchaseRepository _repositoryPurchase, IHardwareRepository _repositoryHardware, ISoftwareRepository _repositorySoftware) { repository = _repository; repositoryProductSupplier = _repositoryProductSupplier; repositoryPurchase = _repositoryPurchase; repositoryHardware = _repositoryHardware; repositorySoftware = _repositorySoftware; }
public StatusService(IStatusRepository _repository, IAssetRepository _repositoryAsset, IHardwareRepository _repositoryHardware, ILicenseRepository _repositoryLicense, IPurchaseItemRepository _repositoryPurchaseItem, ISoftwareRepository _repositorySoftware) { repository = _repository; repositoryAsset = _repositoryAsset; repositoryHardware = _repositoryHardware; repositoryLicense = _repositoryLicense; repositoryPurchaseItem = _repositoryPurchaseItem; repositorySoftware = _repositorySoftware; }
public SoftwareService(ISoftwareRepository _repository, IProductTypeRepository _repositoryProductType, ISoftwareTypeRepository _repositorySoftwareType, IProductSupplierRepository _repositoryProductSupplier, IProductDetailRepository _repositoryProductDetail, IPurchaseItemRepository _repositoryPurchaseItem, IStatusRepository _repositoryStatus, IHostingEnvironment _hostingEnv) { repository = _repository; repositoryProductType = _repositoryProductType; repositorySoftwareType = _repositorySoftwareType; repositoryProductSupplier = _repositoryProductSupplier; repositoryProductDetail = _repositoryProductDetail; repositoryPurchaseItem = _repositoryPurchaseItem; repositoryStatus = _repositoryStatus; hostingEnv = _hostingEnv; }
public HelpModule(IPoolManager poolManager, IConfigManager configManager, ISoftwareRepository softwareRepository) : base("/help") { Get["/faq"] = _ => { ViewBag.Header = "Frequently Asked Questions"; return(View["faq"]); }; Get["/gettingstarted/"] = _ => { var model = new GettingStartedModel { Stack = configManager.StackConfig, Pools = poolManager.GetAllAsReadOnly() }; return(View["gettingstarted/index", model]); }; Get["/gettingstarted/pool/{slug}"] = _ => { var pool = poolManager.Get(HttpUtility.HtmlEncode(_.slug)); // find the requested pool. if (pool == null) { return(View["error", new ErrorViewModel { Details = string.Format("The requested pool does not exist: {0}", _.slug) }]); } var model = new GettingStartedPoolModel { Stack = configManager.StackConfig, Pool = pool }; return(View["gettingstarted/pool", model]); }; Get["/miningsoftware/"] = _ => { return(View["miningsoftware", softwareRepository]); }; }
public HelpModule(IPoolManager poolManager, IConfigManager configManager, ISoftwareRepository softwareRepository) : base("/help") { Get["/faq"] = _ => { ViewBag.Header = "Frequently Asked Questions"; return View["faq"]; }; Get["/gettingstarted/"] = _ => { var model = new GettingStartedModel { Stack = configManager.StackConfig, Pools = poolManager.GetAllAsReadOnly() }; return View["gettingstarted/index", model]; }; Get["/gettingstarted/pool/{slug}"] = _ => { var pool = poolManager.Get(HttpUtility.HtmlEncode(_.slug)); // find the requested pool. if (pool == null) { return View["error", new ErrorViewModel { Details = string.Format("The requested pool does not exist: {0}", _.slug) }]; } var model = new GettingStartedPoolModel { Stack = configManager.StackConfig, Pool = pool }; return View["gettingstarted/pool", model]; }; Get["/miningsoftware/"] = _ => { return View["miningsoftware", softwareRepository]; }; }
public SoftwareController(ISoftwareRepository softwareRepository) { SoftwareRepository = softwareRepository; }
public SoftwareService(ISoftwareRepository softwareRepository, IMapper mapper) { _softwareRepository = softwareRepository; _mapper = mapper; }
public SoftwareController(AssetContext context, ISoftwareRepository softwareRepository) { _context = context; dbSoftware = new SQLSoftwareRepository(_context); _softwareRepository = softwareRepository; }
public SoftwaresController(ISoftwareRepository softwareRepository, IUnitOfWork unitOfWork) { _softwareRepository = softwareRepository; _unitOfWork = unitOfWork; }
public SoftwareController(ISoftwareRepository softwareRepository) { _softwareRepository = softwareRepository; }
public SignboardRequestController(ISignboardRepository signboardRepository, ISoftwareRepository softwareRepository) { SignboardRepository = signboardRepository; SoftwareRepository = softwareRepository; }
/// <summary> /// Initializes a new instance of the <see cref="SoftwareService"/> class. /// </summary> /// <param name="repository">The repository<see cref="ISoftwareRepository"/></param> public SoftwareService(ISoftwareRepository repository) { _repository = repository; }
public SoftwareManager() { _AlphasoftWebsiteContext = new AlphasoftWebsiteContext(); _iSoftwareRepository = new SoftwareRepository(_AlphasoftWebsiteContext); }
public SoftwareTypeService(ISoftwareTypeRepository _repository, ISoftwareRepository _repositorySoftware) { repository = _repository; repositorySoftware = _repositorySoftware; }
public SoftwareService(ISoftwareRepository repository) : base(repository) { this.repository = repository; }
public HomeController(IBookRepository bookRepository, IHardwareRepository hardwareRepository, ISoftwareRepository softwareRepository) { _bookRepository = bookRepository; _hardwareRepository = hardwareRepository; _softwareRepository = softwareRepository; }