예제 #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>();
 }
 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>();
 }
 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;
 }