Exemplo n.º 1
0
 public UsersController(UserManager <AppUser> userManager, ApplicationDbContext appDb, IUploadServices uploadServices, IUserServices userServices)
 {
     _appDb          = appDb;
     _userManager    = userManager;
     _uploadServices = uploadServices;
     _userServices   = userServices;
 }
Exemplo n.º 2
0
 public ProductServices(ILogger <ProductServices> logger, ECommerceContext appDb, IMapper mapper, IUploadServices uploadServices)
 {
     this.logger         = logger;
     this.appDb          = appDb;
     this.mapper         = mapper;
     this.uploadServices = uploadServices;
 }
Exemplo n.º 3
0
 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));
 }
Exemplo n.º 4
0
 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;
 }
Exemplo n.º 5
0
 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;
 }
Exemplo n.º 6
0
 /// <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));
 }
Exemplo n.º 7
0
 /// <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;
 }
Exemplo n.º 9
0
 public UploadController(IFileUploadSystemData data, IUploadServices uploadServices)
     : base(data)
 {
     this.uploadServices = uploadServices;
 }
Exemplo n.º 10
0
 public CreateModel(Web.Data.ApplicationDbContext context, IUploadServices upload)
 {
     _context    = context;
     this.upload = upload;
 }