/// <summary> /// Injector Constructor /// </summary> /// <param name="mapper">Mapper</param> /// <param name="context">Database Context</param> /// <param name="utilsService">Utils Service</param> /// <param name="loggerService">Logger Service</param> public PlanService(IMapper mapper, DatabaseContext context, IUtilsService utilsService, ILoggerService loggerService) { this._mapper = mapper; this._context = context; this._utilsService = utilsService; this._loggerService = loggerService; }
public FeatureCommandFactory(ILog log, IMenuCommandService menuCommandService, IMessageService messageService, IUtilsService utilsService) { _log = log; _menuCommandService = menuCommandService; _messageService = messageService; _utilsService = utilsService; }
public FileBrowserViewModel(IServiceProvider serviceProvider, ILog log, IMessageService messageService, IOptionsService optionsService, ISolutionProcessor solutionProcessor, IFileTypeResolver fileTypeResolver, ISearchMatchService searchMatchService, IShellHelperService shellHelperService, IShellImageService shellImageService, IUtilsService utilsService, IFeatureFactory featureFactory) : base(KnownFeature.FileBrowser, serviceProvider) { _log = log; _messageService = messageService; _optionsService = optionsService; _solutionProcessor = solutionProcessor; _fileTypeResolver = fileTypeResolver; _searchMatchService = searchMatchService; _shellHelperService = shellHelperService; _shellImageService = shellImageService; _utilsService = utilsService; _featureFactory = featureFactory; // Source files must be setup in constructor or view won't show any binding data _sourceFiles = new ObservableCollection <FileModel>(); _files = new CollectionViewSource { Source = _sourceFiles }; // must be ObservableCollection this.ShowFilesCommand = new RelayCommand(_messageService, OnShowAllFiles); this.OpenCodeBrowserAllCommand = new RelayCommand(_messageService, OnOpenCodeBrowserAll, OnCanOpenCodeBrowser); this.OpenCodeBrowserClassesCommand = new RelayCommand(_messageService, OnOpenCodeBrowserClasses, OnCanOpenCodeBrowser); this.OpenCodeBrowserMethodsCommand = new RelayCommand(_messageService, OnOpenCodeBrowserMethods, OnCanOpenCodeBrowser); this.OpenCodeBrowserPropertiesCommand = new RelayCommand(_messageService, OnOpenCodeBrowserProperties, OnCanOpenCodeBrowser); this.OpenFilesCommand = new RelayCommand(_messageService, OnOpenFiles, OnCanOpenFiles); }
public FeatureCommand(ILog log, IMenuCommandService menuCommandService, IMessageService messageService, IUtilsService utilsService) { if (log == null) { throw new ArgumentNullException(nameof(log)); } if (menuCommandService == null) { throw new ArgumentNullException(nameof(menuCommandService)); } if (messageService == null) { throw new ArgumentNullException(nameof(messageService)); } if (utilsService == null) { throw new ArgumentNullException(nameof(utilsService)); } _log = log; _menuCommandService = menuCommandService; _messageService = messageService; _utilsService = utilsService; }
/// <summary> /// Injector constructor /// </summary> /// <param name="utilsService">Utils Service</param> /// <param name="context">Database context</param> /// <param name="loggerService">Logger Service</param> /// <param name="mapper">Mapper</param> public NotificationService(IUtilsService utilsService, DatabaseContext context, IMapper mapper, ILoggerService loggerService) { this._utilsService = utilsService; this._context = context; this._mapper = mapper; this._loggerService = loggerService; }
public GeneratorService(DatabaseContext context, IMapper mapper, IUtilsService utils, ILoggerService logger, IExcelService excelService, IPDFService pdfService) { this._context = context; this._mapper = mapper; this._utils = utils; this._logger = logger; this._excelService = excelService; this._pdfService = pdfService; }
public RequestService(IRequestRepository requestRepository, IMapper mapper, IUtilsService utilsService, ILogger <RequestService> logger, IConfiguration configuration, IUrlHelper urlHelper) { _requestRepository = requestRepository; _mapper = mapper; _utilsService = utilsService; _logger = logger; _configuration = configuration; _urlHelper = urlHelper; }
/// <summary> /// Injector Constructor /// </summary> /// <param name="utilsService">Utils Service</param> /// <param name="mapper">Mapper</param> /// <param name="context">Database Context</param> /// <param name="notificationService">Notification Service</param> /// <param name="loggerService">Logger Service</param> /// <param name="userManager">User manager</param> public FriendService(IUtilsService utilsService, IMapper mapper, DatabaseContext context, INotificationService notificationService, ILoggerService loggerService, UserManager <User> userManager) { this._utilsService = utilsService; this._mapper = mapper; this._context = context; this._notificationService = notificationService; this._loggerService = loggerService; this._userManager = userManager; }
public AlbumController(IOptions <LimitSettings> limitSettings, IAlbumRepository albumRepo, IMapper mapper, IUtilsService utilsService, IFileRepository fileRepo) { _limitSettings = limitSettings; _albumRepo = albumRepo; _mapper = mapper; _utilsService = utilsService; _fileRepo = fileRepo; }
/// <summary> /// Auth Service constructor /// </summary> /// <param name="userManager">User Manager</param> /// <param name="appSettings">App Settings</param> /// <param name="logger">Logger</param> /// <param name="context">Database Context</param> /// <param name="notificationService">Notification Service</param> /// <param name="utilsService">Utils Service</param> public AuthService(UserManager<User> userManager, IOptions<ApplicationSettings> appSettings, ILogger<AuthService> logger, DatabaseContext context, INotificationService notificationService, IUtilsService utilsService) { this._userManager = userManager; this._appSettings = appSettings.Value; this._logger = logger; this._context = context; this._notificationService = notificationService; this._utilsService = utilsService; }
public UserController(IUserRepository userRepo, IFileRepository fileRepo, IMapper mapper, IUtilsService utilsService, IAlbumRepository albumRepo, IApiKeyRepository apiKeyRepo, IAuthRepository authRepo) { _userRepo = userRepo; _fileRepo = fileRepo; _mapper = mapper; _utilsService = utilsService; _albumRepo = albumRepo; _apiKeyRepo = apiKeyRepo; _authRepo = authRepo; }
/// <summary> /// Injector constructor /// </summary> /// <param name="context">Database Context</param> /// <param name="logger">Logger Service</param> /// <param name="utils">Utils Service</param> /// <param name="notification">Notification Service</param> /// <param name="mapper">Mapper</param> public MovieCommentService(DatabaseContext context, ILoggerService logger, IUtilsService utils, INotificationService notification, IMapper mapper) : base(context, logger, utils, notification, mapper, "Movie Comment", new NotificationArguments { DeleteArguments = new List <string>(), UpdateArguments = new List <string>(), CreateArguments = new List <string>() }) { this._databaseContext = context; }
/// <summary> /// Init /// </summary> /// <param name="context">Database Context</param> /// <param name="logger">Logger Service</param> /// <param name="utils">Utils Service</param> /// <param name="notification">Notification Service</param> /// <param name="mapper">Mapper</param> /// <param name="entity">Entity name</param> /// <param name="arguments">Notification arguments</param> protected Repository(DbContext context, ILoggerService logger, IUtilsService utils, INotificationService notification, IMapper mapper, string entity, NotificationArguments arguments) { this._context = context; this.Logger = logger; this.Utils = utils; this.Notification = notification; this.Mapper = mapper; this.Entity = entity; this._arguments = arguments; }
/// <summary> /// Injector Constructor /// </summary> /// <param name="utilsService">Utils Service</param> /// <param name="notificationService">Notification Service</param> /// <param name="context">Database Context</param> /// <param name="mapper">Mapper</param> /// <param name="loggerService">Logger Service</param> public MessageService(IUtilsService utilsService, INotificationService notificationService, DatabaseContext context, IMapper mapper, ILoggerService loggerService) : base(context, loggerService, utilsService, notificationService, mapper, "Message", new NotificationArguments { DeleteArguments = new List <string>(), UpdateArguments = new List <string>(), CreateArguments = new List <string>() }) { this._databaseContext = context; }
public MiscellaneousFeature(IServiceProvider serviceProvider, ILog log, IOptionsService optionsService, IPackageService packageService, IUtilsService utilsService, IShellHelperService shellHelperService, IShellStatusBarService shellStatusBarService, IShellReferenceService shellReferenceService, IShellSelectionService shellSelectionService) : base(serviceProvider, log, optionsService) { _packageService = packageService; _utilsService = utilsService; _shellHelperService = shellHelperService; _shellStatusBarService = shellStatusBarService; _shellReferenceService = shellReferenceService; _shellSelectionService = shellSelectionService; }
public UploadController(IFileRepository fileRepo, IUserRepository userRepo, IOptions <UploadSettings> uploadSettings, ILogger <UploadController> logger, IMapper mapper, IAlbumRepository albumRepo, IOptions <LimitSettings> limitSettings, IUtilsService utilsService) { _fileRepo = fileRepo; _userRepo = userRepo; _uploadSettings = uploadSettings; _logger = logger; _mapper = mapper; _albumRepo = albumRepo; _limitSettings = limitSettings; _utilsService = utilsService; }
/// <summary> /// Injector Constructor /// </summary> /// <param name="context">Database Context</param> /// <param name="mapper">Mapper</param> /// <param name="utilsService">Utils Service</param> /// <param name="notificationService">Notification Service</param> /// <param name="loggerService">Logger Service</param> public WorkingFieldService(DatabaseContext context, IMapper mapper, IUtilsService utilsService, INotificationService notificationService, ILoggerService loggerService) : base(context, loggerService, utilsService, notificationService, mapper, "Working field", new NotificationArguments { CreateArguments = new List <string> { "Length" }, DeleteArguments = new List <string> { "WorkingDay.Day" }, UpdateArguments = new List <string> { "WorkingDay.Day" } }) { }
/// <summary> /// Injector constructor /// </summary> /// <param name="context">Database Context</param> /// <param name="logger">Logger Service</param> /// <param name="utils">Utils Service</param> /// <param name="notification">Notification Service</param> /// <param name="mapper">Mapper</param> public SeriesCategoryService(DatabaseContext context, ILoggerService logger, IUtilsService utils, INotificationService notification, IMapper mapper) : base(context, logger, utils, notification, mapper, "Series Category", new NotificationArguments { DeleteArguments = new List <string> { "Name" }, UpdateArguments = new List <string> { "Name" }, CreateArguments = new List <string> { "Name" } }) { this._databaseContext = context; }
/// <summary> /// Injector Constructor /// </summary> /// <param name="utilsService">Utils Service</param> /// <param name="notificationService">Notification Service</param> /// <param name="context">Database Context</param> /// <param name="mapper">Mapper</param> /// <param name="loggerService">Logger Service</param> public GenderService(IUtilsService utilsService, INotificationService notificationService, DatabaseContext context, IMapper mapper, ILoggerService loggerService) : base(context, loggerService, utilsService, notificationService, mapper, "Gender", new NotificationArguments { DeleteArguments = new List <string> { "Name" }, CreateArguments = new List <string> { "Name" }, UpdateArguments = new List <string> { "Name" } }) { }
/// <summary> /// Task Service /// </summary> /// <param name="context">Database Context</param> /// <param name="mapper">Mapper</param> /// <param name="utilsService">Utils Service</param> /// <param name="loggerService">Logger Service</param> /// <param name="notificationService">Notification Service</param> public TaskService(DatabaseContext context, IMapper mapper, IUtilsService utilsService, ILoggerService loggerService, INotificationService notificationService) : base(context, loggerService, utilsService, notificationService, mapper, "Task", new NotificationArguments { DeleteArguments = new List <string> { "Title" }, CreateArguments = new List <string> { "Title" }, UpdateArguments = new List <string> { "Title" } }) { }
/// <summary> /// Injector constructor /// </summary> /// <param name="context">Database context</param> /// <param name="mapper">Mapper</param> /// <param name="utilsService">Utils Service</param> /// <param name="loggerService">Logger Service</param> /// <param name="notificationService">Notification Service</param> public EpisodeService(DatabaseContext context, IMapper mapper, IUtilsService utilsService, ILoggerService loggerService, INotificationService notificationService) : base(context, loggerService, utilsService, notificationService, mapper, "Episode", new NotificationArguments { DeleteArguments = new List <string> { "Number" }, UpdateArguments = new List <string> { "Number" }, CreateArguments = new List <string> { "Number" } }) { this._databaseContext = context; }
/// <summary> /// Injector Constructor /// </summary> /// <param name="context">Database Context</param> /// <param name="mapper">Mapper</param> /// <param name="utilsService">Utils Service</param> /// <param name="notificationService">Notification Service</param> /// <param name="loggerService">Logger Service</param> public WorkingDayTypeService(DatabaseContext context, IMapper mapper, IUtilsService utilsService, INotificationService notificationService, ILoggerService loggerService) : base(context, loggerService, utilsService, notificationService, mapper, "Working day type", new NotificationArguments { CreateArguments = new List <string> { "Title" }, DeleteArguments = new List <string> { "Title" }, UpdateArguments = new List <string> { "Title" } }) { }
/// <summary> /// Injector Constructor /// </summary> /// <param name="context">Database Context</param> /// <param name="utilsService">Utils Service</param> /// <param name="notificationService">Notification Service</param> /// <param name="mapper">Mapper</param> /// <param name="loggerService">Logger Service</param> public NewsService(DatabaseContext context, IUtilsService utilsService, INotificationService notificationService, IMapper mapper, ILoggerService loggerService) : base(context, loggerService, utilsService, notificationService, mapper, "News", new NotificationArguments { DeleteArguments = new List <string> { "CurrentUser.UserName" }, UpdateArguments = new List <string> { "CurrentUser.UserName" }, CreateArguments = new List <string> { "CurrentUser.UserName" } }) { }
/// <summary> /// Init Lesson Hour Service /// </summary> /// <param name="context">Database Context</param> /// <param name="logger">Logger</param> /// <param name="utils">Utils Service</param> /// <param name="mapper">Mapper</param> public LessonHourService(DatabaseContext context, ILoggerService logger, IUtilsService utils, IMapper mapper) : base(context, logger, utils, mapper, "LessonHour") { }
/// <summary> /// Init Course Service /// </summary> /// <param name="context">Database Context</param> /// <param name="logger">Logger</param> /// <param name="utils">Utils Service</param> /// <param name="mapper">Mapper</param> public CourseService(DatabaseContext context, ILoggerService logger, IUtilsService utils, IMapper mapper) : base(context, logger, utils, mapper, "Course") { }
/// <summary> /// Init Subject Task Service /// </summary> /// <param name="context">Database Context</param> /// <param name="logger">Logger</param> /// <param name="utils">Utils Service</param> /// <param name="mapper">Mapper</param> /// <param name="commonService">Common Service</param> public SubjectTaskService(DatabaseContext context, ILoggerService logger, IUtilsService utils, IMapper mapper, ICommonService commonService) : base(context, logger, utils, mapper, "Subject Task") { _commonService = commonService; }
public ChatHub() { _utilsService = new UtilsService(); _postService = new PostService(); }
/// <summary> /// Init Period Service /// </summary> /// <param name="context">Database Context</param> /// <param name="logger">Logger</param> /// <param name="utils">Utils Service</param> /// <param name="mapper">Mapper</param> /// <param name="commonService">Common Service</param> public PeriodService(DatabaseContext context, ILoggerService logger, IUtilsService utils, IMapper mapper, ICommonService commonService) : base(context, logger, utils, mapper, "Period") { _commonService = commonService; }
public UtilsController(IUtilsService utilsService) { _utilsService = utilsService; }
public UtilsController(IUtilsService utilsService) => this.UtilsService = utilsService ?? throw new ArgumentNullException(nameof(utilsService));