public SetupApplicationViewModel(IGlobalSettingsService globalSettingsService)
 {
     _storage = IsolatedStorageFile.GetUserStoreForApplication();
     CacheModules = globalSettingsService.IsCachingEnabled;
     Quota = _storage.Quota / 1048576;
     _globalSettingsService = globalSettingsService;
 }
Beispiel #2
0
        public BaseModule(IEventBus eventBus, Services.IGlobalSettingsService globalSettingsService, string modulePath, bool verifyConfigured) : base(modulePath)
        {
            EventBus = eventBus;
            GlobalSettingsService = globalSettingsService;

            WireSetupPipeline(verifyConfigured);
        }
 public ModuleLoadService(IServiceLocator serviceLocator, IAssemblySource assemblySource, IAssemblyStorageService assemblyStorageService,ErrorService errorService, IGlobalSettingsService globalSettingsService)
 {
     _serviceLocator = serviceLocator;
     _assemblySource = assemblySource;
     _assemblyStorageService = assemblyStorageService;
     _errorService = errorService;
     _globalSettingsService = globalSettingsService;
 }
 public GlobalSettingsServiceTests()
 {
     _globalSettingsRepository = A.Fake<IGlobalSettingsRepository>(opts =>
     {
         opts.Strict();
     });
     _SUT = new GlobalSettingsService(_globalSettingsRepository);
 }
        public MainMasterDetailPageMasterViewModel(INavigationService navigationService, IPageDialogService pageDialogService, ISettingsService settingsService, IEventAggregator eventAggregator,
                                                   IdentityService identityService, IGlobalSettingsService globalSettingsService)
            : base(navigationService, pageDialogService, settingsService, eventAggregator, identityService)
        {
            _globalSettingsService = globalSettingsService;

            SettingsCommand = new DelegateCommand(async() => await NavigateSettings());
            GuidanceCommand = new DelegateCommand(async() => await GuidanceDocument());
            HandoverCommand = new DelegateCommand(async() => await NavigateHandover(), () => User.NurseId.HasValue);
            LogoutCommand   = new DelegateCommand(async() => await LogoutAsync());
        }
Beispiel #6
0
        protected SessionManager(ISessionFactory nhibernateSessionFactory, IGlobalSettingsService globalSettingsService, IHmaService hmaService, int serverId, Provider provider, IServerStatusService serverStatusService)
        {
            NhibernateSessionFactory = nhibernateSessionFactory;
            GlobalSettingsService = globalSettingsService;
            _hmaService = hmaService;
            _serverId = serverId;
            _provider = provider;
            _serverStatusService = serverStatusService;

            Mediator.Instance.OnSessionPause += (s, e) =>
            {
                OnSessionPaused(s, e.Provider);
            };
        }
Beispiel #7
0
        public EngagerManager
        (
            HotmailSessionManager hotmailSessionManager,
            YahooSessionManager yahooSessionManager,
            AolSessionManager aolSessionManager,

            IGlobalSettingsService globalSettingsService, 
            IHmaService hmaService
        )
        {
            HotmailSessionManager = hotmailSessionManager;
            YahooSessionManager = yahooSessionManager;
            AolSessionManager = aolSessionManager;

            this.globalSettingsService = globalSettingsService;
            this.hmaService = hmaService;
        }
Beispiel #8
0
        public AppletModule(IEventBus eventBus, IGlobalSettingsService globalSettingsService, IPackageService packageService)
            : base(eventBus, globalSettingsService, "/applet/{id}", true)
        {
            _packageService = packageService;

            Get["/"] = Dashboard;

            Get["/appSetting/new"] = AddAppSetting;
            Get["/appSetting/{key}/edit"] = EditAppSetting;
            Post["/appSetting"] = SaveAppSetting;
            Get["/appSetting/{key}/delete"] = DeleteAppSettingPrompt;
            Post["/appSetting/{key}/delete"] = DeleteAppSettingConfirmed;

            Get["/connectionStrings/new"] = AddConnectionString;
            Get["/connectionStrings/{name}/edit"] = EditConnectionString;
            Post["/connectionStrings"] = SaveConnectionString;
            Get["/connectionStrings/{name}/delete"] = DeleteConnectionStringPrompt;
            Post["/connectionStrings/{name}/delete"] = DeleteConnectionStringConfirmed;
        }
Beispiel #9
0
 public PeopleController(CompucareWardContext context, IGlobalSettingsService globalSettingsService)
 {
     _context = context;
     _globalSettingsService = globalSettingsService;
 }
 public GlobalSettingsController(IGlobalSettingsService globalSettingsService)
 {
     _globalSettingsService = globalSettingsService;
 }
Beispiel #11
0
 public HotmailSessionManager(ISessionFactory nhibernateSessionFactory, IGlobalSettingsService globalSettingsService, IHmaService hmaService, int serverId, IServerStatusService serverStatusService) 
     : base(nhibernateSessionFactory, globalSettingsService, hmaService, serverId, Provider.Hotmail,serverStatusService)
 {
 }
 public InpatientBookingsController(CompucareWardContext context, IInpatientBookingServiceInternal inpatientBookingService, IGlobalSettingsService globalSettingsService)
 {
     _context = context;
     _inpatientBookingService = inpatientBookingService;
     _globalSettingsService   = globalSettingsService;
 }
Beispiel #13
0
 public NetworkService(IGlobalSettingsService globalSettingsService)
 {
     _globalSettingsService = globalSettingsService;
 }