public UsersController(UserManager <AppUser> userManager, ApplicationDbContext appDb, IUploadServices uploadServices, IUserServices userServices) { _appDb = appDb; _userManager = userManager; _uploadServices = uploadServices; _userServices = userServices; }
public ProductServices(ILogger <ProductServices> logger, ECommerceContext appDb, IMapper mapper, IUploadServices uploadServices) { this.logger = logger; this.appDb = appDb; this.mapper = mapper; this.uploadServices = uploadServices; }
public TestModule(IBrowseServices <EndpointModel> browser, IHistoricAccessServices <EndpointModel> history, INodeServices <EndpointModel> nodes, IUploadServices <EndpointModel> upload) { _browser = browser ?? throw new ArgumentNullException(nameof(browser)); _history = history ?? throw new ArgumentNullException(nameof(history)); _nodes = nodes ?? throw new ArgumentNullException(nameof(nodes)); _upload = upload ?? throw new ArgumentNullException(nameof(upload)); }
public RecipesController(ApplicationDbContext appDb, ICommentServices cServices, UserManager <AppUser> userManager, IUploadServices uploadServices, IRatingServices ratingServices, ISearchServices searchServices) { _userManager = userManager; _appDb = appDb; _cServices = cServices; _uploadServices = uploadServices; _ratingServices = ratingServices; _searchServices = searchServices; }
public ProductsController(ILogger <ProductsController> logger, UserManager <ApplicationUser> userManager, ECommerceContext appDb, IProductServices productServices, IUploadServices uploadServices, IMapper mapper) { this.logger = logger; this.userManager = userManager; this.appDb = appDb; this.productServices = productServices; this.uploadServices = uploadServices; this.mapper = mapper; }
/// <summary> /// Create controller with service /// </summary> /// <param name="browse"></param> /// <param name="nodes"></param> /// <param name="historian"></param> /// <param name="export"></param> /// <param name="twin"></param> public EndpointMethodsController(IBrowseServices <EndpointModel> browse, INodeServices <EndpointModel> nodes, IHistoricAccessServices <EndpointModel> historian, IUploadServices <EndpointModel> export, ITwinServices twin) { _browse = browse ?? throw new ArgumentNullException(nameof(browse)); _historian = historian ?? throw new ArgumentNullException(nameof(historian)); _nodes = nodes ?? throw new ArgumentNullException(nameof(nodes)); _twin = twin ?? throw new ArgumentNullException(nameof(twin)); _export = export ?? throw new ArgumentNullException(nameof(export)); }
/// <summary> /// Create controller with service /// </summary> /// <param name="browse"></param> /// <param name="nodes"></param> /// <param name="historian"></param> /// <param name="publisher"></param> /// <param name="export"></param> /// <param name="twin"></param> /// <param name="events"></param> /// <param name="logger"></param> public EndpointMethodsController(IBrowseServices <EndpointModel> browse, INodeServices <EndpointModel> nodes, IHistoricAccessServices <EndpointModel> historian, IPublishServices <EndpointModel> publisher, IUploadServices <EndpointModel> export, ITwinServices twin, IEventEmitter events, ILogger logger) { _browse = browse ?? throw new ArgumentNullException(nameof(browse)); _historian = historian ?? throw new ArgumentNullException(nameof(historian)); _nodes = nodes ?? throw new ArgumentNullException(nameof(nodes)); _twin = twin ?? throw new ArgumentNullException(nameof(twin)); _publisher = publisher ?? throw new ArgumentNullException(nameof(publisher)); _export = export ?? throw new ArgumentNullException(nameof(export)); _events = events ?? throw new ArgumentNullException(nameof(events)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public AdminFilesController(IFileUploadSystemData data, ISearchServices searchServices, IUploadServices uploadServices) : base(data) { this.searchServices = searchServices; this.uploadServices = uploadServices; }
public UploadController(IFileUploadSystemData data, IUploadServices uploadServices) : base(data) { this.uploadServices = uploadServices; }
public CreateModel(Web.Data.ApplicationDbContext context, IUploadServices upload) { _context = context; this.upload = upload; }