コード例 #1
0
 public MasterViewModel(
     IMvxMessenger messenger,
     ISecurityService securityService,
     IWebNavigation webNavigation,
     ISystemInfo systemInfo,
     IAppVersionService appVersionService,
     IStudentDataService studentDataService,
     IRefreshDataService refreshDataService,
     IAbsenceDataService absenceDataService,
     IEvaluationDataService evaluationDataService,
     IEventDataService eventDataService,
     ILessonDataService lessonDataService,
     INoteDataService noteDataService,
     IUzenetDataService uzenetDataService,
     IExamDataService examDataService)
 {
     this._messenger             = messenger;
     this._securityService       = securityService;
     this._webNavigation         = webNavigation;
     this._systemInfo            = systemInfo;
     this._appVersionService     = appVersionService;
     this._studentDataService    = studentDataService;
     this._refreshDataService    = refreshDataService;
     this._absenceDataService    = absenceDataService;
     this._evaluationDataService = evaluationDataService;
     this._eventDataService      = eventDataService;
     this._lessonDataService     = lessonDataService;
     this._noteDataService       = noteDataService;
     this._uzenetDataService     = uzenetDataService;
     this._examDataService       = examDataService;
 }
 public HabitatFitnessEventsController([NotNull] IEventDataService dataService, [NotNull] IItemScoringService itemScoringService, [NotNull] IItemSerializer itemSerializer, [NotNull] IStringValueListFacetService facetService)
 {
     this.dataService        = dataService;
     this.itemSerializer     = itemSerializer;
     this.itemScoringService = itemScoringService;
     this.facetService       = facetService;
 }
コード例 #3
0
 public PresentationDataService(
     ISharingService sharingService,
     IContentReviewDataService contentReviewDataService,
     IEventDataService eventDataService)
 {
     _sharingService           = sharingService;
     _contentReviewDataService = contentReviewDataService;
     _eventDataService         = eventDataService;
 }
コード例 #4
0
 public EventController(IRepositoryWrapper repository,
                        IEventDataService eventDataService,
                        IMediator mediator,
                        IUserEventsService eventsService)
 {
     _repository       = repository;
     _eventDataService = eventDataService;
     _mediator         = mediator;
     _eventsService    = eventsService;
 }
コード例 #5
0
 public ListItemCreator(Profile profile)
 {
     this._profile               = profile;
     this._absenceDataService    = (IAbsenceDataService)Mvx.get_IoCProvider().Resolve <IAbsenceDataService>();
     this._evaluationDataService = (IEvaluationDataService)Mvx.get_IoCProvider().Resolve <IEvaluationDataService>();
     this._eventDataService      = (IEventDataService)Mvx.get_IoCProvider().Resolve <IEventDataService>();
     this._lessonDataService     = (ILessonDataService)Mvx.get_IoCProvider().Resolve <ILessonDataService>();
     this._noteDataService       = (INoteDataService)Mvx.get_IoCProvider().Resolve <INoteDataService>();
     this._examDataService       = (IExamDataService)Mvx.get_IoCProvider().Resolve <IExamDataService>();
 }
コード例 #6
0
 public RefreshDataService()
 {
     this._profileDataService        = (IProfileDataService)Mvx.get_IoCProvider().Resolve <IProfileDataService>();
     this._absenceDataService        = (IAbsenceDataService)Mvx.get_IoCProvider().Resolve <IAbsenceDataService>();
     this._evaluationDataService     = (IEvaluationDataService)Mvx.get_IoCProvider().Resolve <IEvaluationDataService>();
     this._noteDataService           = (INoteDataService)Mvx.get_IoCProvider().Resolve <INoteDataService>();
     this._lessonDataService         = (ILessonDataService)Mvx.get_IoCProvider().Resolve <ILessonDataService>();
     this._eventDataService          = (IEventDataService)Mvx.get_IoCProvider().Resolve <IEventDataService>();
     this._subjectAverageDataService = (ISubjectAverageDataService)Mvx.get_IoCProvider().Resolve <ISubjectAverageDataService>();
     this._studentDataService        = (IStudentDataService)Mvx.get_IoCProvider().Resolve <IStudentDataService>();
     this._uzenetDataService         = (IUzenetDataService)Mvx.get_IoCProvider().Resolve <IUzenetDataService>();
     this._examDataService           = (IExamDataService)Mvx.get_IoCProvider().Resolve <IExamDataService>();
     this._mobileApi       = (IMobileApi)Mvx.get_IoCProvider().Resolve <IMobileApi>();
     this._globalMobileApi = (IGlobalMobileApi)Mvx.get_IoCProvider().Resolve <IGlobalMobileApi>();
     this._messenger       = (IMvxMessenger)Mvx.get_IoCProvider().Resolve <IMvxMessenger>();
 }
コード例 #7
0
 public RootContentViewModel(
     IRefreshDataService refreshDataService,
     IMvxMessenger messenger,
     IPushNotificationService pushNotificationService,
     ISettingsDataService settingsDataService,
     IAbsenceDataService absenceDataService,
     IAbsenceDbDataService absenceDbDataService,
     IEvaluationDataService evaluationDataService,
     IEvaluationDbDataService evaluationDbDataService,
     IEventDataService eventDataService,
     IExamDataService examDataService,
     IExamDbDataService examDbDataService,
     INoteDataService noteDataService,
     INoteDbDataService noteDbDataService,
     ILessonDataService lessonDataService,
     ILessonDbDataService lessonDbDataService,
     IUzenetDataService uzenetDataService,
     IRatingDataService ratingDataService,
     IPushNotificationPlatformSpecificService pushNotificationPlatformSpecificService,
     IFirebaseAnalytics firebaseAnalytics,
     IFirebaseRemoteConfigurationService remoteConfigurationService)
 {
     this._refreshDataService      = refreshDataService;
     this._messenger               = messenger;
     this._pushNotificationService = pushNotificationService;
     this._settingsDataService     = settingsDataService;
     this._absenceDataService      = absenceDataService;
     this._absenceDbDataService    = absenceDbDataService;
     this._evaluationDataService   = evaluationDataService;
     this._evaluationDbDataService = evaluationDbDataService;
     this._eventDataService        = eventDataService;
     this._examDataService         = examDataService;
     this._examDbDataService       = examDbDataService;
     this._noteDataService         = noteDataService;
     this._noteDbDataService       = noteDbDataService;
     this._lessonDataService       = lessonDataService;
     this._lessonDbDataService     = lessonDbDataService;
     this._uzenetDataService       = uzenetDataService;
     this._pushNotificationPlatformSpecificService = pushNotificationPlatformSpecificService;
     this._firebaseAnalytics          = firebaseAnalytics;
     this._ratingDataService          = ratingDataService;
     this._remoteConfigurationService = remoteConfigurationService;
 }
コード例 #8
0
        public async Task Process(string streamData, ClientWebSocket ws)
        {
            var payload = JsonConvert.DeserializeObject <Payload>(streamData);

            if (payload.SequenceNumber.HasValue)
            {
                _sessionService.LastSequenceNumber = payload.SequenceNumber.Value;
            }
            await _loggingService.LogAsync("Recieved opcode: " + payload.Opcode);

            await _loggingService.LogAsync("Recieved data: " + payload.Data.ToString());

            // We want to create a new scope when we process a payload so we can resolve scoped services like DbContexts and DispatchData.
            using (var scope = _serviceScopeFactory.CreateScope())
            {
                IEventDataService eventDataService = _eventDataServiceFactory.BuildEventDataService(scope, payload.Opcode);
                await eventDataService.RespondAsync(ws, payload, _token);
            }
        }
コード例 #9
0
 public AuthDbDataService()
 {
     this._mobileApi                  = (IDbMobileApi)Mvx.get_IoCProvider().Resolve <IDbMobileApi>();
     this._tokenValidator             = (ITokenValidatorDb)Mvx.get_IoCProvider().Resolve <ITokenValidatorDb>();
     this._messenger                  = (IMvxMessenger)Mvx.get_IoCProvider().Resolve <IMvxMessenger>();
     this._secureStore                = (ISecureStore)Mvx.get_IoCProvider().Resolve <ISecureStore>();
     this._profileDataService         = (IProfileDbDataService)Mvx.get_IoCProvider().Resolve <IProfileDbDataService>();
     this._absenceDataService         = (IAbsenceDbDataService)Mvx.get_IoCProvider().Resolve <IAbsenceDbDataService>();
     this._evaluationDataService      = (IEvaluationDataService)Mvx.get_IoCProvider().Resolve <IEvaluationDataService>();
     this._noteDataService            = (INoteDbDataService)Mvx.get_IoCProvider().Resolve <INoteDbDataService>();
     this._lessonDataService          = (ILessonDataService)Mvx.get_IoCProvider().Resolve <ILessonDataService>();
     this._subjectAverageDataService  = (ISubjectAverageDataService)Mvx.get_IoCProvider().Resolve <ISubjectAverageDataService>();
     this._studentDataService         = (IStudentDataService)Mvx.get_IoCProvider().Resolve <IStudentDataService>();
     this._eventDataService           = (IEventDataService)Mvx.get_IoCProvider().Resolve <IEventDataService>();
     this._teacherHomeWorkDataService = (ITeacherHomeWorkDataService)Mvx.get_IoCProvider().Resolve <ITeacherHomeWorkDataService>();
     this._studentHomeWorkDataService = (IStudentHomeWorkDataService)Mvx.get_IoCProvider().Resolve <IStudentHomeWorkDataService>();
     this._cacheDataService           = (ICacheDataService)Mvx.get_IoCProvider().Resolve <ICacheDataService>();
     this._uzenetDataService          = (IUzenetDataService)Mvx.get_IoCProvider().Resolve <IUzenetDataService>();
     this._examDataService            = (IExamDataService)Mvx.get_IoCProvider().Resolve <IExamDataService>();
     this._instituteDataService       = (IInstituteDataService)Mvx.get_IoCProvider().Resolve <IInstituteDataService>();
 }
コード例 #10
0
 public EventDetailViewModel()
 {
     this._messenger        = (IMvxMessenger)Mvx.get_IoCProvider().Resolve <IMvxMessenger>();
     this._eventDataService = (IEventDataService)Mvx.get_IoCProvider().Resolve <IEventDataService>();
 }
コード例 #11
0
 public EventsViewModel(IMvxMessenger messenger, IEventDataService eventDataService)
 {
     this._messenger        = messenger;
     this._eventDataService = eventDataService;
 }
コード例 #12
0
 public EventsViewModel(IGithubClientService githubClientService, IEventDataService eventDataService, IMvxMessenger messenger, IDialogService dialogService) : base(githubClientService, messenger, dialogService)
 {
     _eventDataService = eventDataService;
 }
 public HabitatFitnessEventsController([NotNull] IEventDataService dataService, IItemScoringService itemScoringService, IItemSerializer itemSerializer)
 {
     this.dataService        = dataService;
     this.itemSerializer     = itemSerializer;
     this.itemScoringService = itemScoringService;
 }
コード例 #14
0
 public EventDataController(IEventDataService eventDataService)
 {
     _eventDataService = eventDataService;
 }
コード例 #15
0
 public EventController(IEventDataService eventService, IUrlHelper uriHelper)
 {
     _eventService = eventService;
     _urlHelper    = uriHelper;
 }