Пример #1
0
        public DemoServiceLocatorMaster(UserContext context)
            : base(context)
        {
            userService   = new DemoUserService(this);
            schoolService = new DemoSchoolService(this);
            chalkableDepartmentService = new DemoChalkableDepartmentService(this);
            categoryService            = new DemoCategoryService(this);
            developerService           = new DemoDeveloperService(this);
            districtService            = new DemoDistrictService(this);
            emailService             = new DemoEmailService(this);
            backgroundTaskService    = new DemoBackgroundTaskService(this);
            applicationService       = new DemoApplicationService(this);
            applicationUploadService = new DemoApplicationUploadService(this);

            preferenceService         = new PreferenceService(this);
            personPictureService      = new PersonPictureService(this);
            departmentIconService     = new DepartmentIconService(this);
            applicationPictureService = new ApplicationPictureService(this);
            dbService           = new DbService(Context != null ? Context.MasterConnectionString : null);
            userTrackingService = new NullTrackingService();
        }
Пример #2
0
 public ServiceLocatorMaster(UserContext context) : base(context)
 {
     userService                     = new UserService(this);
     schoolService                   = new SchoolService(this);
     backgroundTaskService           = new BackgroundTaskService(this);
     preferenceService               = new PreferenceService(this);
     chalkableDepartmentService      = new ChalkableDepartmentService(this);
     personPictureService            = new PersonPictureService(this);
     departmentIconService           = new DepartmentIconService(this);
     customReportTemplateIconService = new CustomReportTemplateIconService(this);
     districtService                 = new DistrictService(this);
     applicationService              = new ApplicationService(this);
     categoryService                 = new CategoryService(this);
     applicationUploadService        = new ApplicationUploadService(this);
     EmailService                    = new EmailService(this);
     developerService                = new DeveloperService(this);
     applicationPictureService       = new ApplicationPictureService(this);
     DbService                   = new DbService(Context?.MasterConnectionString);
     userTrackingService         = new MixPanelService(Settings.MixPanelToken);
     dbMaintenanceService        = new DbMaintenanceService(this);
     academicBenchmarkService    = new AcademicBenchmarkService(this);
     customReportTemplateService = new CustomReportTemplateService(this);
 }