/// <summary> /// This is constructor /// </summary> /// <param name="fileService">This is parameter used to work with file service</param> /// <param name="jsonConverter">This is parameter used to work with json converter service</param> /// <param name="attachFileService">This is parameter used to work with attach file service</param> public AddNoteViewModel(IFileService fileService, IJsonConverterService jsonConverter, IAttachFileService attachFileService) { _fileService = fileService; _jsonConverter = jsonConverter; _attachFileService = attachFileService; SaveNoteCommand = new MvxCommand(SaveNoteAsync); AttachFileCommand = new MvxCommand(AttachFileAsync); }
/// <summary> /// Create a new Service client /// </summary> /// <param name="settings"></param> /// <param name="httpClientFactory"></param> /// <param name="jsonConverterService"></param> /// <param name="validatorService"></param> public ClientService(IOptions <AppSettings> settings, IHttpClientFactory httpClientFactory, IJsonConverterService jsonConverterService, IValidatorService validatorService) { Settings = settings.Value; ApiKey = Settings.ApiToken; HttpClientFactory = httpClientFactory; JsonConverterService = jsonConverterService; ValidatorService = validatorService; }
public DataBaseNotificationService(INotificationService notificationService, IGenericRepository <Notification> notificationGR, IJsonConverterService jsonConverterService, IMapper mapper) { _notificationService = notificationService; _notificationGR = notificationGR; _jsonConverterService = jsonConverterService; _mapper = mapper; }
/// <summary> /// This is constructor /// </summary> /// <param name="fileService">This is parameter used to work with file service</param> /// <param name="jsonConverter">This is parameter used to work with json converter service</param> /// <param name="changeNoteService">This is parameter used to work with change note service</param> public ShowNoteViewModel(IFileService fileService, IJsonConverterService jsonConverter, IChangeNoteService changeNoteService) { _fileService = fileService; _jsonConverter = jsonConverter; _changeNoteService = changeNoteService; SaveNoteCommand = new MvxCommand(SaveNoteAsync); EditNoteCommand = new MvxCommand(EditNote); DeleteNoteCommand = new MvxCommand(DeleteNoteAsync); AttachFileCommand = new MvxCommand(AttachFile); }
public DirectMessageService(IGenericRepository <DirectMessage> directMessageGR, IGenericRepository <DirectChat> directChatGR, IDataBaseNotificationService dataBaseNotificationService, IUserService userService, IJsonConverterService jsonConverterService, IChatEventService chatEventService, IMapper mapper) { _directMessageGR = directMessageGR; _directChatGR = directChatGR; _dataBaseNotificationService = dataBaseNotificationService; _userService = userService; _jsonConverterService = jsonConverterService; _chatEventService = chatEventService; _mapper = mapper; }
/// <summary> /// This is constructor /// </summary> /// <param name="fileService">This is parameter used to work with file service</param> /// <param name="jsonConverter">This is parameter used to work with json converter service</param> /// <param name="searchNotesService">This is parameter used to work with search note service</param> /// <param name="sortNotesService">This is parameter used to work with sort note service</param> public MainPageViewModel(IFileService fileService, IJsonConverterService jsonConverter, ISearchNotesService searchNotesService, ISortNotesService sortNotesService) { _fileService = fileService; _jsonConverter = jsonConverter; _searchNotesService = searchNotesService; _sortNotesService = sortNotesService; _commands = new MainPageCommands(); _commands.ShowInfoCommand = new MvxCommand(() => ShowViewModel <ShowInfoViewModel>()); _commands.AddNoteCommand = new MvxCommand(AddNote); _commands.SortNotesCommand = new MvxCommand(SortNotes); _commands.SelectNoteCommand = new MvxCommand <object>(SelectNote); _commands.SearchNoteCommand = new MvxCommand <object>(SearchNote); }
/// <summary> /// Constructs a <see cref="StandardSerializerConfigService"/> /// given an <see cref="IJsonConverterService"/>. /// </summary> /// <param name="converterService"> /// Service that returns a collection of JsonConverter objects. /// </param> public StandardSerializerConfigService(IJsonConverterService converterService) { this.converterService = converterService; }
/// <summary> /// This is constructor /// </summary> /// <param name="jsonConverter">This is parameter used to work with json converter service</param> public FileService(IJsonConverterService jsonConverter) { _jsonConverter = jsonConverter; }
public SomeService(IHttpContextAccessor httpContextAccessor, IJsonConverterService jsonConverterService) { _jsonConverterService = jsonConverterService; _jsonConverterService.Context = httpContextAccessor.HttpContext; }