public MainWindowViewModel() { _service = new MemoService(); // 初期化時に、すべての属性付きプロパティのデータ検証を行う Validate(); }
public MemoController(IServiceProvider serviceProvider) { _identityService = serviceProvider.GetService <IIdentityService>(); _validateService = serviceProvider.GetService <IValidateService>(); _service = serviceProvider.GetService <IMemoService>(); _mapper = serviceProvider.GetService <IMapper>(); }
public MemoController(IMemoService memoService, IMapper mapper, UserManager <IdentityUser> userManager, IStringLocalizer <MemoController> localizer, ISettingsService settingsService) { _memoService = memoService; _mapper = mapper; _userManager = userManager; _localizer = localizer; _settingsService = settingsService; }
public GamesController( IGamesService gamesService, IQuizService quizService, IHangmanService hangmanService, IFlashcardsService flashcardsService, IMemoService memoService) { GamesService = gamesService; QuizService = quizService; HangmanService = hangmanService; FlashcardsService = flashcardsService; MemoService = memoService; }
public SessionViewModel(string user, ClientConfiguration configuration) { User = user; _proxy = configuration.ProxyBuilder() .Url("http://localhost:5000") .UseSession() .Recoverable(5, TimeSpan.FromSeconds(1)) .Build <IMemoService>(); Memos = new ObservableCollection <string>(); LoadCommand = new RelayCommand(async() => { Memos.Clear(); foreach (string memo in await _proxy.GetAllMemosAsync()) { Memos.Add(memo); } }); AddCommand = new RelayCommand(async() => { await _proxy.AddMemoAsync(Memo); Memos.Add(Memo); }, () => !string.IsNullOrEmpty(Memo)); TestCommand = new RelayCommand(async() => { int repeats = Repeats; long elapsed = await Task.Run(async() => { Stopwatch watch = Stopwatch.StartNew(); for (int i = 0; i < repeats; i++) { await _proxy.GetAllMemosAsync(); } return(watch.ElapsedMilliseconds); }); MessageBox.Show($"Requesting all memos {repeats} times has taken {elapsed}ms.", "Performance Result", MessageBoxButton.OK); }); }
public UserSettingsModel(IOptions <RequestLocalizationOptions> locOptions, ISettingsService serviceSettings, UserManager <IdentityUser> userManager, IMemoService memoService, IMapper mapper) { _locOptions = locOptions; _serviceSettings = serviceSettings; _userManager = userManager; _memoService = memoService; _mapper = mapper; Zones = TimeZoneInfo.GetSystemTimeZones().Select(z => new SelectListItem { Value = z.Id, Text = z.Id }).ToList(); Cultures = _locOptions.Value.SupportedUICultures.Select(x => new SelectListItem { Value = x.Name, Text = x.Name }).ToList(); DateFormats = Dates.Select(d => new SelectListItem { Value = d, Text = d }).ToList(); TimeFormats = Times.Select(t => new SelectListItem { Value = t, Text = t }).ToList(); }
public DoctorsController(IDoctorService doctors, IMemoService memo, IPacientService pacients) { this._doctors = doctors; this._memo = memo; this._pacients = pacients; }
public PacientsController(IPacientService pacients, IMemoService memo) { this._pacients = pacients; this._memo = memo; }
public MemoController(IMemoService memoService) { _memoService = memoService; }
public MemoController(IStockDetailsService objStockDetailsService, IMemoService objMemoService, IUserDetailService objUDSvc) { this.objStockDetailsService = objStockDetailsService as StockDetailsService; this.objMemoService = objMemoService as MemoService; this.objUDSvc = objUDSvc as UserDetailService; }
public SignalRHelper(IMemoService memoService) { _memoService = memoService; }
public AdminController(IMemoService memoService, UserManager <IdentityUser> userManager, RoleManager <IdentityRole> roleManager) { _memoService = memoService; _userManager = userManager; _roleManager = roleManager; }
public ReportsController(IMemoService memoService) { _memoService = memoService; }
public MainWindowViewModel(IMemoService service) { _service = service; }
public MainWindowViewModel() { _service = new MemoService(base.ViewModelState); }
public MemoController(IMemoService memoService, INoteService noteService) { _memoService = memoService; _noteService = noteService; }