Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 public FeatureCommandFactory(ILog log, IMenuCommandService menuCommandService, IMessageService messageService, IUtilsService utilsService)
 {
     _log = log;
     _menuCommandService = menuCommandService;
     _messageService     = messageService;
     _utilsService       = utilsService;
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
        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;
        }
Exemplo n.º 5
0
 /// <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;
 }
Exemplo n.º 6
0
 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;
 }
Exemplo n.º 7
0
 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;
 }
Exemplo n.º 8
0
 /// <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;
 }
Exemplo n.º 9
0
 public AlbumController(IOptions <LimitSettings> limitSettings,
                        IAlbumRepository albumRepo, IMapper mapper, IUtilsService utilsService,
                        IFileRepository fileRepo)
 {
     _limitSettings = limitSettings;
     _albumRepo     = albumRepo;
     _mapper        = mapper;
     _utilsService  = utilsService;
     _fileRepo      = fileRepo;
 }
Exemplo n.º 10
0
 /// <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;
 }
Exemplo n.º 11
0
 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;
 }
Exemplo n.º 12
0
 /// <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;
 }
Exemplo n.º 13
0
 /// <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;
 }
Exemplo n.º 14
0
 /// <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;
 }
Exemplo n.º 15
0
 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;
 }
Exemplo n.º 16
0
 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;
 }
Exemplo n.º 17
0
 /// <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"
     }
 })
 {
 }
Exemplo n.º 18
0
 /// <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;
 }
Exemplo n.º 19
0
 /// <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"
     }
 })
 {
 }
Exemplo n.º 20
0
 /// <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"
     }
 })
 {
 }
Exemplo n.º 21
0
 /// <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;
 }
Exemplo n.º 22
0
 /// <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"
     }
 })
 {
 }
Exemplo n.º 23
0
 /// <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"
     }
 })
 {
 }
Exemplo n.º 24
0
 /// <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")
 {
 }
Exemplo n.º 25
0
 /// <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")
 {
 }
Exemplo n.º 26
0
 /// <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;
 }
Exemplo n.º 27
0
 public ChatHub()
 {
     _utilsService = new UtilsService();
     _postService  = new PostService();
 }
Exemplo n.º 28
0
 /// <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;
 }
Exemplo n.º 29
0
 public UtilsController(IUtilsService utilsService)
 {
     _utilsService = utilsService;
 }
Exemplo n.º 30
0
 public UtilsController(IUtilsService utilsService)
 => this.UtilsService = utilsService ?? throw new ArgumentNullException(nameof(utilsService));