public MainViewModel( IPhotoImporter photoImporter, ILocalStorage localStorage) { _photoImporter = photoImporter; _localStorage = localStorage; }
public SimpleLocalStorageEntityRepo(ILocalStorage applicationDataHelper, IStorageFileRepo localStorageFileRepo) { _applicationDataHelper = applicationDataHelper; _localStorageFileRepo = localStorageFileRepo; _init(); }
public PlayerDataUpdater(IProgressRepository progressRepository, IProgressBuilder progressBuilder, ILocalStorage localStorage, IBalanceUpdater balanceUpdater) { _progressRepository = progressRepository; _progressBuilder = progressBuilder; _localStorage = localStorage; _balanceUpdater = balanceUpdater; }
public GalleryViewModel(IPhotoImporter photoImporter, ILocalStorage localStorage) { this.photoImporter = photoImporter; this.localStorage = localStorage; Task.Run(Initialize); }
public JobWorkers(ISLogger logger, IResourceManager resourceManager, IUnitOfWork unitOfWork, SQLTaskScheduler scheduler, IEncryptionManager encryptionManager) { this.logger = logger; this.resourceManager = resourceManager; this.unitOfWork = unitOfWork; this.scheduler = scheduler; this.encryptionManager = encryptionManager; ILocalStorage localDb = ServiceLocator.Current.GetInstance <ILocalStorage>(); // BaseJobUpdater fullJobUpdater = new FullJobUpdater(instanceInfoUpdater, logger, unitOfWork, connManager, instanceDataCollector); // BaseJobUpdater statusJobUpdater = new StatusJobUpdater(instanceInfoUpdater, logger, unitOfWork, connManager, instanceDataCollector); BaseJobSaver fullJobSaver = new FullJobSaver(logger, localDb, scheduler); BaseJobSaver statusJobSaver = new StatusJobSaver(logger, localDb, scheduler); BaseJobSaver removeJobSaver = new RemoveJobSaver(logger, localDb, scheduler); saveWorkers.Add(JobType.UpdateInfoType.Full, fullJobSaver); saveWorkers.Add(JobType.UpdateInfoType.CheckStatus, statusJobSaver); saveWorkers.Add(JobType.UpdateInfoType.RemoveInstances, removeJobSaver); //updateWorkers.Add(JobType.UpdateInfoType.Full, fullJobUpdater); // updateWorkers.Add(JobType.UpdateInfoType.CheckStatus, statusJobUpdater); }
public ApiAuthenticationStateProvider( ILocalStorage localStorage, ISessionStorage sessionStorage) { this.localStorage = localStorage; this.sessionStorage = sessionStorage; }
/// <summary> /// 注册本地存储对象 /// </summary> /// <param name="storage">Storage.</param> private void RegisterLocalStorage(ILocalStorage storage) { if (!storageList.Contains(storage)) { storageList.Add(storage); } }
public JobWorkers(ISLogger logger, IResourceManager resourceManager, IUnitOfWork unitOfWork, SQLTaskScheduler scheduler, IEncryptionManager encryptionManager) { this.logger = logger; this.resourceManager = resourceManager; this.unitOfWork = unitOfWork; this.scheduler = scheduler; this.encryptionManager = encryptionManager; /* * InstanceInfoUpdater instanceInfoUpdater = new InstanceInfoUpdater(logger); * IInstanceDataCollector instanceDataCollector = DependencyConfig.Initialize().Resolve<IInstanceDataCollector>( * new ParameterOverride("connManager", connManager), * new ParameterOverride("resourceManager", resourceManager), * new ParameterOverride("logger", logger)); */ ILocalStorage localDb = ServiceLocator.Current.GetInstance <ILocalStorage>(); // BaseJobUpdater fullJobUpdater = new FullJobUpdater(instanceInfoUpdater, logger, unitOfWork, connManager, instanceDataCollector); // BaseJobUpdater statusJobUpdater = new StatusJobUpdater(instanceInfoUpdater, logger, unitOfWork, connManager, instanceDataCollector); BaseJobSaver fullJobSaver = new FullJobSaver(logger, localDb, scheduler); BaseJobSaver statusJobSaver = new StatusJobSaver(logger, localDb, scheduler); saveWorkers.Add(JobType.UpdateInfoType.Full, fullJobSaver); saveWorkers.Add(JobType.UpdateInfoType.CheckStatus, statusJobSaver); //updateWorkers.Add(JobType.UpdateInfoType.Full, fullJobUpdater); // updateWorkers.Add(JobType.UpdateInfoType.CheckStatus, statusJobUpdater); }
public WpfStatusControlProvider(IEndpointCommandSender sender, ILocalStorage localStorage, ISecurityService securityService) { _sender = sender; _localStorage = localStorage; _securityService = securityService; _control = new WpfStatusControl(_sender, _localStorage, _securityService); }
public static void Delete(this ILocalStorage localStorage, params string[] keys) { foreach (var key in keys) { localStorage.Delete(key); } }
public StirTrekService(HttpClient httpClient, ILocalStorage localStorage) { _httpClient = httpClient; _localStorage = localStorage; _fullSchedule = new List <TimeSlotModel>(); }
public CodeSampleRepository(HttpClient httpClient, IJSRuntime runtime, ILocalStorage localStorage, NavigationManager navigationManager) { LocalStorage = localStorage; _httpClient = httpClient; _navigationManager = navigationManager; LoadCSharpSamples(); LoadVbSamples(); }
public PXPluginContext() { LocalStorage = new LocalStorageProperty (( () => LocalStorageData, value => LocalStorageData = value )); }
public AppState(HttpClient httpClient, ILocalStorage localStorage, IUriHelper uriHelper) { _httpClient = httpClient; _localStorage = localStorage; _uriHelper = uriHelper; }
public PXTriggerContext() { LocalStorage = new LocalStorageProperty (( () => LocalStorageData, value => LocalStorageData = value )); }
public TestUnfuddle(IBoardSubscriptionManager subscriptions, IConfigurationProvider <Configuration> configurationProvider, ILocalStorage <AppSettings> localStorage, ILeanKitClientFactory leanKitClientFactory, IRestClient restClient) : base(subscriptions, configurationProvider, localStorage, leanKitClientFactory, restClient) { }
public ProgressFetcher(ILocalStorage local, IProgressRepository progressRepository, IProgressBuilder progressBuilder) { _localStorage = local; _progressRepository = progressRepository; _progressBuilder = progressBuilder; }
public MainWindow() { InitializeComponent(); storage = new JsonLocalStorage((Books)this.Resources["books"]); storage.LoadBooks(); statusBarLeft.Content = string.Format("{0} books in library.", storage.Count()); SetStatusbarStats(); }
public void SetupMethod() { driver.Url = html5Page; hasWebStorageDriver = driver as IHasWebStorage; if (hasWebStorageDriver != null && hasWebStorageDriver.HasWebStorage) { storage = hasWebStorageDriver.WebStorage.LocalStorage; } }
public GitHubIssues(IBoardSubscriptionManager subscriptions, IConfigurationProvider<Configuration> configurationProvider, ILocalStorage<AppSettings> localStorage, ILeanKitClientFactory leanKitClientFactory, IRestClient restClient) : base(subscriptions, configurationProvider, localStorage, leanKitClientFactory) { _restClient = restClient; }
public LocalDataService(ILocalStorage localStorage, string flightsFileName, string lookupsFileName, string userFileName) : base() { _localStorage = localStorage; _flightsFileName = flightsFileName; _lookupsFileName = lookupsFileName; _userFileName = userFileName; }
public BalanceHandler( ITransactionRepository transactionRepository, ILocalStorage localStorage, INotificationsCenter notificationCenter) { _transactionRepository = transactionRepository; _localStorage = localStorage; _notificationCenter = notificationCenter; }
public TestUnfuddle(IBoardSubscriptionManager subscriptions, IConfigurationProvider <Configuration> configurationProvider, ILocalStorage <AppSettings> localStorage, ILeanKitClientFactory leanKitClientFactory, IRestClient restClient) : base(subscriptions, configurationProvider, localStorage, leanKitClientFactory, restClient) { QueryDate = DateTime.UtcNow.AddMinutes(-1); }
public GitHubIssues(IBoardSubscriptionManager subscriptions, IConfigurationProvider <Configuration> configurationProvider, ILocalStorage <AppSettings> localStorage, ILeanKitClientFactory leanKitClientFactory, IRestClient restClient) : base(subscriptions, configurationProvider, localStorage, leanKitClientFactory) { _restClient = restClient; }
public Dataset(string datasetName, CognitoAWSCredentials cognitoCredentials, ILocalStorage local, IRemoteDataStorage remote) { this._datasetName = datasetName; this._cognitoCredentials = cognitoCredentials; this._local = local; this._remote = remote; _logger = Logger.GetLogger(this.GetType()); UnityMainThreadDispatcher.OnRefresh += HandleConnectivityRefresh; }
public VirtualVolume( Settings.VirtualVolume settings, IRestClient restClient, ILocalStorage localStorage) { _settings = settings; _restClient = restClient; _localStorage = localStorage; }
public NewsAppViewModel(NewsService newsService, ILocalStorage localStorage, Sections sections) { _newsService = newsService; //ref to class who has the list of names in dictionary _sections = sections; _localStorage = localStorage; SelectedSection = _sections.GetSectionNames()[0]; SectionChanged += SectionUpdate; }
/// <summary> /// Creates a new Dataset /// </summary> /// <param name="datasetName">The name of the dataset</param> /// <param name="cognitoCredentials">The Cognito Credentials associated with the dataset</param> /// <param name="local">Local storage, can be InMemoryStorage or SQLiteStorage or Some Custom Storage Class which implements <see cref="Amazon.CognitoSync.SyncManager.ILocalStorage"/></param> /// <param name="remote">Remote storage</param> internal Dataset(string datasetName, CognitoAWSCredentials cognitoCredentials, ILocalStorage local, CognitoSyncStorage remote) { this._datasetName = datasetName; this._cognitoCredentials = cognitoCredentials; this._local = local; this._remote = remote; _logger = Logger.GetLogger(this.GetType()); DatasetSetupInternal(); }
public CoachPlayersPage( ILocalStorage localStorage, ICoachRepository coachRepository, IPlayerRepository playerRepository, IUserTypeRepository userTypeRepository) { _localStorage = localStorage; _playerRepository = playerRepository; _userTypeRepository = userTypeRepository; }
public SqliteRepository(ISQLitePlatform platform, ILocalStorage storage, DbPath dbpath, string dbfile = "data.db") { string dbFullPath = Path.Combine(dbpath.Path, dbfile); this.connectionString = new SQLiteConnectionString(dbFullPath, true, openFlags: SQLiteOpenFlags.ReadWrite | SQLiteOpenFlags.Create | SQLiteOpenFlags.FullMutex | SQLiteOpenFlags.SharedCache); this.platform = platform; this.storage = storage; this.dbPath = Path.GetDirectoryName(this.connectionString.DatabasePath); }
public ProgressBuilder(ILocalStorage local, IGoalsRepository goalsRepository, IProgressRepository progressRepository, ISleepRepository sleepRepository) { _localStorage = local; _goalsRepository = goalsRepository; _progressRepository = progressRepository; _sleepRepository = sleepRepository; }
public HomeViewModel(IEntityCache cache, ILocalStorage storage, ILocationService locationService, ILocationTrackingSensor sensor) { _cache = cache; _storage = storage; _locationService = locationService; _sensor = sensor; Title = "Home"; NextPageCommand = new Command(_nextPage); ShowNativeViewCommand = new Command(_onShowNativeView); RepeatersCommand = new Command(_onRepeaters); }
public CognitoSyncManager(CognitoAWSCredentials cognitoCredentials, AmazonCognitoSyncConfig config) { if (cognitoCredentials == null) { throw new ArgumentNullException("cognitoCredentials"); } if (string.IsNullOrEmpty(cognitoCredentials.IdentityPoolId)) { throw new ArgumentNullException("cognitoCredentials.IdentityPoolId"); } this.cognitoCredentials = cognitoCredentials; Local = new SQLiteLocalStorage(System.IO.Path.Combine(Application.persistentDataPath, DATABASE_NAME)); remote = new CognitoSyncStorage(cognitoCredentials, config); cognitoCredentials.IdentityChangedEvent += this.IdentityChanged; _logger = Logger.GetLogger(this.GetType()); }
public Tfs(IBoardSubscriptionManager subscriptions, IConfigurationProvider<Configuration> configurationProvider, ILocalStorage<AppSettings> localStorage, ILeanKitClientFactory leanKitClientFactory, ICredentials projectCollectionNetworkCredentials, BasicAuthCredential basicAuthCredential, TfsClientCredentials tfsClientCredentials, TfsTeamProjectCollection projectCollection, TswaClientHyperlinkService projectHyperlinkService, WorkItemStore projectCollectionWorkItemStore, List<Microsoft.TeamFoundation.Server.Identity> tfsUsers) : base(subscriptions, configurationProvider, localStorage, leanKitClientFactory) { _projectCollectionNetworkCredentials = projectCollectionNetworkCredentials; _projectCollection = projectCollection; _projectHyperlinkService = projectHyperlinkService; _projectCollectionWorkItemStore = projectCollectionWorkItemStore; _basicAuthCredential = basicAuthCredential; _tfsClientCredentials = tfsClientCredentials; _tfsUsers = tfsUsers; }
public TestGitHubPulls(IBoardSubscriptionManager subscriptions, IConfigurationProvider<Configuration> configurationProvider, ILocalStorage<AppSettings> localStorage, ILeanKitClientFactory leanKitClientFactory, IRestClient restClient) : base(subscriptions, configurationProvider, localStorage, leanKitClientFactory, restClient) { QueryDate = DateTime.UtcNow.AddMinutes(-1); }
public WPApplicationState(ILocalStorage storage, IJsonSerializer serializer) { this.LocalStorage = storage; this.Serializer = serializer; }
public WPDeviceState(ILocalStorage storage, IJsonSerializer serializer) { this.LocalStorage = storage; this.Serializer = serializer; }
/// <summary> /// Creates an instance of CognitoSyncManager using cognito credentials and a configuration object /// <code> /// CognitoSyncManager cognitoSyncManager = new CognitoSyncManager(credentials,new AmazonCognitoSyncConfig { RegionEndpoint = RegionEndpoint.USEAST1}) /// </code> /// </summary> /// <param name="cognitoCredentials"><see cref="Amazon.CognitoIdentity.CognitoAWSCredentials"/></param> /// <param name="config"><see cref="Amazon.CognitoSync.AmazonCognitoSyncConfig"/></param> public CognitoSyncManager(CognitoAWSCredentials cognitoCredentials, AmazonCognitoSyncConfig config) { if (cognitoCredentials == null) { throw new ArgumentNullException("cognitoCredentials"); } #if BCL ValidateParameters(); #endif this.CognitoCredentials = cognitoCredentials; Local = new SQLiteLocalStorage(); Remote = new CognitoSyncStorage(cognitoCredentials, config); cognitoCredentials.IdentityChangedEvent += this.IdentityChanged; _logger = Logger.GetLogger(this.GetType()); }
protected override void OnCreateMockObjects() { MockBoardSubscriptionManager = new Mock<IBoardSubscriptionManager>(); MockConfigurationProvider = new Mock<IConfigurationProvider<Configuration>>(); MockLocalStorage = new Mock<ILocalStorage<AppSettings>>(); MockLeanKitClientFactory = new Mock<ILeanKitClientFactory>(); MockLeanKitApi = new Mock<ILeanKitApi>(); SubscriptionManager = MockBoardSubscriptionManager.Object; ConfigurationProvider = MockConfigurationProvider.Object; LocalStorage = MockLocalStorage.Object; LeanKitClientFactory = MockLeanKitClientFactory.Object; LeanKitApi = MockLeanKitApi.Object; }
public TestUnfuddle(IBoardSubscriptionManager subscriptions, IConfigurationProvider<Configuration> configurationProvider, ILocalStorage<AppSettings> localStorage, ILeanKitClientFactory leanKitClientFactory, IRestClient restClient) : base(subscriptions, configurationProvider, localStorage, leanKitClientFactory, restClient) { }
public XWorkflowHub(IDeviceNetworkStatus networkStatus, IEntitySerialiser entitySerialiser, ILocalStorage localStorage) { _networkStatus = networkStatus; _entitySerialiser = entitySerialiser; _localStorage = localStorage; }
protected TargetBase(IBoardSubscriptionManager subscriptions, IConfigurationProvider<Configuration> configurationProvider, ILocalStorage<AppSettings> localStorage, ILeanKitClientFactory leanKitClientFactory) { Subscriptions = subscriptions; ConfigurationProvider = configurationProvider; LocalStorage = localStorage; LeanKitClientFactory = leanKitClientFactory; LoadConfiguration(); if (Configuration == null) return; try { Init(); } catch (Exception e) { Log.Error("Exception for Init: " + e.Message); } }
public Jira(IBoardSubscriptionManager subscriptions, IConfigurationProvider<Configuration> configurationProvider, ILocalStorage<AppSettings> localStorage, ILeanKitClientFactory leanKitClientFactory, IRestClient restClient, IJiraConnection jiraConnection) : base(subscriptions, configurationProvider, localStorage, leanKitClientFactory) { _restClient = restClient; _jiraConnection = jiraConnection; }
public void SetupMethod() { driver.Url = simpleTestPage; storage = ((RemoteWebDriver)driver).WebStorage.GetLocalStorage(); }
protected TargetBase(IBoardSubscriptionManager subscriptions) { Subscriptions = subscriptions; ConfigurationProvider = new ConfigurationProvider(); LocalStorage = new LocalStorage<AppSettings>(); LeanKitClientFactory = new LeanKitClientFactory(); LoadConfiguration(); if (Configuration == null) return; try { Init(); } catch (Exception e) { Log.Error("Exception for Init: " + e.Message); } }
/// <summary> /// Initializes a new instance of the <see cref="FloatingWindow" /> class. /// </summary> public FloatingWindow() { DefaultStyleKey = typeof(FloatingWindow); resizeController = new ResizeController(this); resizeController.ResizingArea = ResizingAreaThickness; snapinController = new SnapinController(); inertiaController = new InertiaController(); localStorage = new LocalStorage(); bitmapHelper = new BitmapHelper(); this.SetVisible(false); }
public TestTarget(IBoardSubscriptionManager subscriptions, IConfigurationProvider<Configuration> configurationProvider, ILocalStorage<AppSettings> localStorage, ILeanKitClientFactory leanKitClientFactory) : base(subscriptions, configurationProvider, localStorage, leanKitClientFactory) { }
/// <summary> /// Loads a new storage subsystem from a named library /// </summary> /// <param name="dllName">Storage Library</param> /// <returns>Successful or not</returns> public bool LoadStorageDLL(string dllName) { try { Assembly pluginAssembly = Assembly.LoadFrom(dllName); ILocalStorage store = null; foreach (Type pluginType in pluginAssembly.GetTypes()) { if (pluginType.IsPublic) { if (!pluginType.IsAbstract) { Type typeInterface = pluginType.GetInterface("ILocalStorage", true); if (typeInterface != null) { ILocalStorage plug = (ILocalStorage)Activator.CreateInstance(pluginAssembly.GetType(pluginType.ToString())); store = plug; store.Initialise(this.m_datastore); break; } typeInterface = null; } } } pluginAssembly = null; this.localStorage = store; return (store == null); } catch (Exception e) { OpenSim.Framework.Console.MainConsole.Instance.WriteLine("World.cs: LoadStorageDLL() - Failed with exception " + e.ToString()); return false; } }