コード例 #1
0
        public NoteBlockViewModel(NoteBlockModel model, IAppStore appStore)
        {
            this._model    = model;
            this._appStore = appStore;

            this.EnableAutoPropertyChangedEvent(appStore);
        }
コード例 #2
0
        public ApiKeyHandler(IOptionsMonitor <ApiKeyOptions> options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock, IAppStore appStore, IUserStore userStore)
            : base(options, logger, encoder, clock)
        {
            this.appStore = appStore;

            this.userStore = userStore;
        }
コード例 #3
0
        public MainWindowViewModel(IAppStore store, IAppActions actions)
        {
            this.Store   = store;
            this.Actions = actions;

            this.EnableAutoPropertyChangedEvent(store);
            this.EnableAutoCanExecuteChangedEvent(store);

            this.CompositeDisposable.Add(new PropertyChangedWeakEventListener(
                                             store,
                                             (_, e) =>
            {
                switch (e.PropertyName)
                {
                case nameof(IAppStore.VoiceAnalysisResult):
                    // 結果が更新されたら NoteBlockViewModel を作り直す
                    this.NoteBlocks = this.Store.VoiceAnalysisResult == null
                                ? ImmutableArray <NoteBlockViewModel> .Empty
                                : ImmutableArray.CreateRange(
                        this.Store.VoiceAnalysisResult.NoteBlocks,
                        x => new NoteBlockViewModel(x, this.Store)
                        );
                    break;

                case nameof(IAppStore.CorrectNoteBlocks):
                    // 正解データも同様に
                    this.CorrectNoteBlocks = ImmutableArray.CreateRange(
                        this.Store.CorrectNoteBlocks,
                        x => new CorrectNoteBlockViewModel(x, this.Store)
                        );
                    break;
                }
            }
                                             ));
        }
コード例 #4
0
        public EmailVerificationUpdater(IAppStore appStore, IEmailServer emailServer, ISemanticLog log)
        {
            this.appStore    = appStore;
            this.emailServer = emailServer;

            this.log = log;
        }
コード例 #5
0
 public TrackingController(
     IAppStore appStore,
     IUserNotificationService userNotificationService,
     IUserNotificationStore userNotificationStore)
 {
     this.appStore = appStore;
     this.userNotificationService = userNotificationService;
     this.userNotificationStore   = userNotificationStore;
 }
コード例 #6
0
 public MobilePushChannel(ISemanticLog log, ILogStore logStore,
                          IAppStore appStore,
                          IUserNotificationQueue userNotificationQueue,
                          IUserNotificationStore userNotificationStore,
                          IUserStore userStore)
 {
     this.appStore = appStore;
     this.log      = log;
     this.logStore = logStore;
     this.userNotificationQueue = userNotificationQueue;
     this.userNotificationStore = userNotificationStore;
     this.userStore             = userStore;
 }
コード例 #7
0
        public EditCorrectScoreWindowViewModel(IAppStore store, IAppActions actions)
        {
            this.Store   = store;
            this.Actions = actions;

            this.EnableAutoPropertyChangedEvent(store);
            this.EnableAutoCanExecuteChangedEvent(store);
            this.EnableValidation();

            this._startPosition = store.CorrectScoreStartPositionInAnalysisUnits.ToString();

            this.TempoSettings = ViewModelHelper.CreateReadOnlyDispatcherCollection(
                store.TempoSettings, x => new TempoSettingViewModel(x), DispatcherHelper.UIDispatcher);
        }
コード例 #8
0
 public MessagingChannel(ILogger <MessagingChannel> log, ILogStore logStore,
                         IAppStore appStore,
                         IIntegrationManager integrationManager,
                         IMessagingFormatter messagingFormatter,
                         IMessagingTemplateStore messagingTemplateStore,
                         IUserNotificationQueue userNotificationQueue,
                         IUserNotificationStore userNotificationStore)
 {
     this.appStore               = appStore;
     this.log                    = log;
     this.logStore               = logStore;
     this.integrationManager     = integrationManager;
     this.messagingFormatter     = messagingFormatter;
     this.messagingTemplateStore = messagingTemplateStore;
     this.userNotificationQueue  = userNotificationQueue;
     this.userNotificationStore  = userNotificationStore;
 }
コード例 #9
0
 public EmailChannel(ISemanticLog log, ILogStore logStore,
                     IAppStore appStore,
                     IEmailFormatter emailFormatter,
                     IEmailServer emailServer,
                     IUserNotificationQueue userNotificationQueue,
                     IUserNotificationStore userNotificationStore,
                     IUserStore userStore)
 {
     this.appStore              = appStore;
     this.emailFormatter        = emailFormatter;
     this.emailServer           = emailServer;
     this.log                   = log;
     this.logStore              = logStore;
     this.userNotificationQueue = userNotificationQueue;
     this.userNotificationStore = userNotificationStore;
     this.userStore             = userStore;
 }
コード例 #10
0
 public SmsChannel(ILogger <SmsChannel> log, ILogStore logStore,
                   IAppStore appStore,
                   IIntegrationManager integrationManager,
                   ISmsFormatter smsFormatter,
                   ISmsTemplateStore smsTemplateStore,
                   IUserNotificationQueue userNotificationQueue,
                   IUserNotificationStore userNotificationStore)
 {
     this.appStore           = appStore;
     this.integrationManager = integrationManager;
     this.log                   = log;
     this.logStore              = logStore;
     this.smsFormatter          = smsFormatter;
     this.smsTemplateStore      = smsTemplateStore;
     this.userNotificationQueue = userNotificationQueue;
     this.userNotificationStore = userNotificationStore;
 }
コード例 #11
0
 public MobilePushChannel(ILogger <MobilePushChannel> log, ILogStore logStore,
                          IAppStore appStore,
                          IIntegrationManager integrationManager,
                          IUserNotificationQueue userNotificationQueue,
                          IUserNotificationStore userNotificationStore,
                          IUserStore userStore,
                          IClock clock)
 {
     this.appStore              = appStore;
     this.log                   = log;
     this.logStore              = logStore;
     this.integrationManager    = integrationManager;
     this.userNotificationQueue = userNotificationQueue;
     this.userNotificationStore = userNotificationStore;
     this.userStore             = userStore;
     this.clock                 = clock;
 }
コード例 #12
0
 public UserNotificationService(IEnumerable <ICommunicationChannel> channels,
                                IAppStore appStore,
                                ILogStore logStore,
                                IUserEventQueue userEventQueue,
                                IUserNotificationFactory userNotificationFactory,
                                IUserNotificationStore userNotificationsStore,
                                IUserStore userStore,
                                IClock clock)
 {
     this.appStore                = appStore;
     this.channels                = channels;
     this.logStore                = logStore;
     this.userEventQueue          = userEventQueue;
     this.userNotificationFactory = userNotificationFactory;
     this.userNotificationsStore  = userNotificationsStore;
     this.userStore               = userStore;
     this.clock = clock;
 }
コード例 #13
0
 public EmailChannel(ILogger <EmailChannel> log, ILogStore logStore,
                     IAppStore appStore,
                     IIntegrationManager integrationManager,
                     IEmailFormatter emailFormatter,
                     IEmailTemplateStore emailTemplateStore,
                     IUserNotificationQueue userNotificationQueue,
                     IUserNotificationStore userNotificationStore,
                     IUserStore userStore)
 {
     this.appStore           = appStore;
     this.emailFormatter     = emailFormatter;
     this.emailTemplateStore = emailTemplateStore;
     this.log                   = log;
     this.logStore              = logStore;
     this.integrationManager    = integrationManager;
     this.userNotificationQueue = userNotificationQueue;
     this.userNotificationStore = userNotificationStore;
     this.userStore             = userStore;
 }
コード例 #14
0
 public UserNotificationService(IEnumerable <ICommunicationChannel> channels,
                                IAppStore appStore,
                                ILogStore logStore,
                                IMessageProducer <ConfirmMessage> confirmProducer,
                                IUserEventQueue userEventQueue,
                                IUserNotificationFactory userNotificationFactory,
                                IUserNotificationStore userNotificationsStore,
                                IUserStore userStore,
                                ILogger <UserNotificationService> log,
                                IClock clock)
 {
     this.appStore                = appStore;
     this.channels                = channels;
     this.log                     = log;
     this.logStore                = logStore;
     this.confirmProducer         = confirmProducer;
     this.userEventQueue          = userEventQueue;
     this.userNotificationFactory = userNotificationFactory;
     this.userNotificationsStore  = userNotificationsStore;
     this.userStore               = userStore;
     this.clock                   = clock;
 }
コード例 #15
0
        public CorrectNoteBlockViewModel(CorrectNoteBlockModel model, IAppStore appStore)
        {
            this._model    = model;
            this._appStore = appStore;

            this.CompositeDisposable.Add(new PropertyChangedWeakEventListener(
                                             model,
                                             (_, e) =>
            {
                switch (e.PropertyName)
                {
                case nameof(CorrectNoteBlockModel.StartPositionInAnalysisUnits):
                    this.RaisePropertyChanged(nameof(this.Margin));
                    break;

                case nameof(CorrectNoteBlockModel.LengthInAnalysisUnits):
                    this.RaisePropertyChanged(nameof(this.Width));
                    break;
                }
            }
                                             ));

            this.CompositeDisposable.Add(new PropertyChangedWeakEventListener(
                                             appStore,
                                             (_, e) =>
            {
                switch (e.PropertyName)
                {
                case nameof(IAppStore.ScoreScale):
                    this.RaisePropertyChanged(nameof(this.Margin));
                    this.RaisePropertyChanged(nameof(this.Width));
                    break;
                }
            }
                                             ));
        }
コード例 #16
0
 public Device(IManufacturerFactory factory)
 {
     _user     = factory.CreateUser();
     _appStore = factory.CreateAppStore();
 }
コード例 #17
0
ファイル: ContextService.cs プロジェクト: yyou/yaringa
 public ContextService(IAppStore applicationStore)
 {
     _applicationStore = applicationStore;
 }
コード例 #18
0
 public TenantSettingValueProvider(IAppStore appStore, ICurrentTenant currentTenant)
     : base(appStore)
 {
     CurrentTenant = currentTenant;
 }
コード例 #19
0
 public CallbacksController(IAppStore appStore)
 {
     this.appStore = appStore;
 }
コード例 #20
0
 public GlobalAppValueProvider(IAppStore settingStore)
     : base(settingStore)
 {
 }
コード例 #21
0
 public DefaultValueAppValueProvider(IAppStore settingStore)
     : base(settingStore)
 {
 }
コード例 #22
0
 public AppsController(IAppStore appStore, IUserResolver userResolver)
 {
     this.appStore     = appStore;
     this.userResolver = userResolver;
 }
コード例 #23
0
 public HomeController(IAppStore appStore)
 {
     _appStore = appStore;
 }
コード例 #24
0
ファイル: SettingsService.cs プロジェクト: yyou/yaringa
 public SettingsService(IAppStore appStore)
 {
     _appStore = appStore;
 }
コード例 #25
0
 protected AppValueProvider(IAppStore appStore)
 {
     AppStore = appStore;
 }
コード例 #26
0
 public ValuesController(IAppStore appStore)
 {
     _appStore = appStore;
 }
コード例 #27
0
 public AppsController(IAppStore appStore, IUserResolver userResolver, IIntegrationManager integrationManager)
 {
     this.appStore           = appStore;
     this.userResolver       = userResolver;
     this.integrationManager = integrationManager;
 }