• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IStorageService类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中IStorageService的典型用法代码示例。如果您正苦于以下问题:C# IStorageService类的具体用法?C# IStorageService怎么用?C# IStorageService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



IStorageService类属于命名空间,在下文中一共展示了IStorageService类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: MainViewModel

 public MainViewModel(IStorageService storageService)
 {
     if (!IsInDesignModeStatic)
     {
         _storageService = storageService;
     }
 }
开发者ID:ThierryTournier,项目名称:MVVM-PCL-DI,代码行数:7,代码来源:MainViewModel.cs


示例2: ItemRepository

        public ItemRepository(IStorageService storageService)
        {
            _storageService = storageService.Local;
            _storageFolder = ApplicationData.Current.LocalFolder;

            LoadItems().ConfigureAwait(false);
        }
开发者ID:gep13,项目名称:Emby.WindowsPhone,代码行数:7,代码来源:ItemRepository.cs


示例3: HomeViewModel

 public HomeViewModel(IStorageService storageService, IMvxMessenger messenger, IPopupHelper helper, IMessageService messageService)
     : base(messenger, helper)
 {
     _storageService = storageService;
     _messageService = messageService;
     SelectContactCommand = new MvxCommand<ContactListItem>(SelectContactCommandAction);
 }
开发者ID:QRyptoWire,项目名称:qrypto-wire,代码行数:7,代码来源:HomeViewModel.cs


示例4: ApiController

		public ApiController(IErpService service, IStorageService storage) : base(service)
		{
			Storage = storage;
			recMan = new RecordManager(service);
			secMan = new SecurityManager(service);
			entityManager = new EntityManager(storage);
		}
开发者ID:jango2015,项目名称:WebVella-ERP,代码行数:7,代码来源:ApiController.cs


示例5: SettingsRepository

#pragma warning disable 4014
        public SettingsRepository(IStorageService storageService, ISqliteService sqliteService, IPlatformCodeService platformCodeService)
        {
            _storageService = storageService;
            _sqliteService = sqliteService;
            _platformCodeService = platformCodeService;
            Initialize();
        }
开发者ID:famoser,项目名称:OfflineMedia,代码行数:8,代码来源:SettingsRepository.cs


示例6: CssStatsStorageService

 public CssStatsStorageService(IStorageService storageService, IDateTimeProvider dateTimeProvider, IHumanInterface ux, ICssStatsFileNameEvaluator cssStatsFileNameEvaluator)
 {
     CssStatsFileNameEvaluator = cssStatsFileNameEvaluator;
     Ux = ux;
     DateTimeProvider = dateTimeProvider;
     StorageService = storageService;
 }
开发者ID:nathanmurados,项目名称:MetricsEvaluator,代码行数:7,代码来源:CssStatsStorageService.cs


示例7: NowPlayingViewModel

        /// <summary>
        /// Initializes a new instance of the PlaylistViewModel class.
        /// </summary>
        public NowPlayingViewModel(INavigationService navigationService, IConnectionManager connectionManager, IStorageService storageService)
            :base (navigationService, connectionManager)
        {
            _playlistChecker = new DispatcherTimer { Interval = new TimeSpan(0, 0, 3) };
            _playlistChecker.Tick += PlaylistCheckerOnTick;

            Playlist = new ObservableCollection<PlaylistItem>();
            SelectedItems = new List<PlaylistItem>();
            if (IsInDesignMode)
            {
                Playlist = new ObservableCollection<PlaylistItem>
                {
                    new PlaylistItem {Artist = "John Williams", Album = "Jurassic Park OST", Id = 1, IsPlaying = true, TrackName = "Jurassic Park Theme"},
                    new PlaylistItem {Artist = "John Williams", Album = "Jurassic Park OST", Id = 2, IsPlaying = false, TrackName = "Journey to the Island"},
                    new PlaylistItem {Artist = "John Williams", Album = "Jurassic Park OST", Id = 10, IsPlaying = false, TrackName = "Incident at Isla Nublar"}
                };
                NowPlayingItem = Playlist[0];
            }
            else
            {
                _playlistHelper = new PlaylistHelper(storageService);
                BackgroundAudioPlayer.Instance.PlayStateChanged += OnPlayStateChanged;
                GetPlaylistItems();
                IsPlaying = BackgroundAudioPlayer.Instance.PlayerState == PlayState.Playing;
            }
        }
开发者ID:gep13,项目名称:Emby.WindowsPhone,代码行数:29,代码来源:PlaylistViewModel.cs


示例8: OpenWeatherMapService

        public OpenWeatherMapService(
            IOutdoorTemperatureService outdoorTemperatureService,
            IOutdoorHumidityService outdoorHumidityService,
            IDaylightService daylightService,
            IWeatherService weatherService,
            IDateTimeService dateTimeService, 
            ISchedulerService schedulerService, 
            ISystemInformationService systemInformationService,
            ISettingsService settingsService, 
            IStorageService storageService)
        {
            if (outdoorTemperatureService == null) throw new ArgumentNullException(nameof(outdoorTemperatureService));
            if (outdoorHumidityService == null) throw new ArgumentNullException(nameof(outdoorHumidityService));
            if (daylightService == null) throw new ArgumentNullException(nameof(daylightService));
            if (weatherService == null) throw new ArgumentNullException(nameof(weatherService));
            if (dateTimeService == null) throw new ArgumentNullException(nameof(dateTimeService));
            if (systemInformationService == null) throw new ArgumentNullException(nameof(systemInformationService));
            if (settingsService == null) throw new ArgumentNullException(nameof(settingsService));
            if (storageService == null) throw new ArgumentNullException(nameof(storageService));

            _outdoorTemperatureService = outdoorTemperatureService;
            _outdoorHumidityService = outdoorHumidityService;
            _daylightService = daylightService;
            _weatherService = weatherService;
            _dateTimeService = dateTimeService;
            _systemInformationService = systemInformationService;
            _storageService = storageService;

            settingsService.CreateSettingsMonitor<OpenWeatherMapServiceSettings>(s => Settings = s);

            LoadPersistedData();

            schedulerService.RegisterSchedule("OpenWeatherMapServiceUpdater", TimeSpan.FromMinutes(5), Refresh);
        }
开发者ID:chkr1011,项目名称:CK.HomeAutomation,代码行数:34,代码来源:OpenWeatherMapService.cs


示例9: NewWorkoutViewModel

        public NewWorkoutViewModel(INavigationService navigationService, IStorageService storageService)
        {
            NavigationService = navigationService;
            StorageService = storageService;

            Exercises = new ObservableCollection<ExerciseConfiguration>();
        }
开发者ID:SamirHafez,项目名称:HSTraining,代码行数:7,代码来源:NewWorkoutViewModel.cs


示例10: SettingsViewModelBase

 protected SettingsViewModelBase(ISettingsRepository settingsRepository, IStorageService storageService)
 {
     _settingsRepository = settingsRepository;
     _storageService = storageService;
     
     if (!IsInDesignMode)
         Initialize();
     else
     {
         Name = "DesignName";
         Colors = new ObservableCollection<Color>()
         {
             new Color("F44336", "Red"),
             new Color("E91E63", "Pink"),
             new Color("9C27B0", "Purple"),
             new Color("673AB7", "Deep Purple"),
             new Color("F44336", "Red"),
             new Color("E91E63", "Pink"),
             new Color("9C27B0", "Purple"),
             new Color("673AB7", "Deep Purple"),
             new Color("F44336", "Red"),
             new Color("E91E63", "Pink"),
             new Color("9C27B0", "Purple"),
             new Color("673AB7", "Deep Purple")
         };
         SelectedColor = Colors[2];
     }
 }
开发者ID:famoser,项目名称:BeerCompanion,代码行数:28,代码来源:SettingsViewModelBase.cs


示例11: ProgramSettingsManager

 public ProgramSettingsManager(ISystemEnvironment systemEnvironment, ILogService logService,
     IStorageService storageService)
 {
     _systemEnvironment = systemEnvironment;
     _storageService = storageService;
     _logService = logService;
 }
开发者ID:Jusas,项目名称:DSImager,代码行数:7,代码来源:ProgramSettingsManager.cs


示例12: MoviesViewModel

 public MoviesViewModel()
 {
     movieService = ServiceContainer.Resolve<IMovieService>();
     messageDialog = ServiceContainer.Resolve<IMessageDialog>();
     storageService = ServiceContainer.Resolve<IStorageService>();
     NeedsUpdate = true;
 }
开发者ID:valdetero,项目名称:VideoCatalogue,代码行数:7,代码来源:MoviesViewModel.cs


示例13: ShellForm

        public ShellForm(IKernel kernel)
        {
            Asserter.AssertIsNotNull(kernel, "kernel");

            _kernel = kernel;
            _applicationService = _kernel.Get<IApplicationService>();
            _storageService = _kernel.Get<IStorageService>();
            _settingsService = _kernel.Get<ISettingsService>();
            _siteService = _kernel.Get<ISiteService>();
            _controller = _kernel.Get<ShellController>();

            Asserter.AssertIsNotNull(_applicationService, "_applicationService");
            Asserter.AssertIsNotNull(_storageService, "_storageService");
            Asserter.AssertIsNotNull(_settingsService, "_settingsService");
            Asserter.AssertIsNotNull(_siteService, "_siteService");

            InitializeComponent();

            _siteService.Register(SiteNames.ContentSite, contentPanel);
            _siteService.Register(SiteNames.NavigationSite, navigationPanel);
            _siteService.Register(SiteNames.ContentActionsSite, contentActionPanel);

            SetStyle(ControlStyles.OptimizedDoubleBuffer |
                     ControlStyles.AllPaintingInWmPaint |
                     ControlStyles.ResizeRedraw, true);
        }
开发者ID:jeffboulanger,项目名称:connectuo,代码行数:26,代码来源:ShellForm.cs


示例14: NotificationService

        public NotificationService(
            IDateTimeService dateTimeService, 
            IApiService apiService, 
            ISchedulerService schedulerService, 
            ISettingsService settingsService,
            IStorageService storageService,
            IResourceService resourceService)
        {
            if (dateTimeService == null) throw new ArgumentNullException(nameof(dateTimeService));
            if (apiService == null) throw new ArgumentNullException(nameof(apiService));
            if (schedulerService == null) throw new ArgumentNullException(nameof(schedulerService));
            if (settingsService == null) throw new ArgumentNullException(nameof(settingsService));
            if (storageService == null) throw new ArgumentNullException(nameof(storageService));
            if (resourceService == null) throw new ArgumentNullException(nameof(resourceService));

            _dateTimeService = dateTimeService;
            _storageService = storageService;
            _resourceService = resourceService;

            settingsService.CreateSettingsMonitor<NotificationServiceSettings>(s => Settings = s);

            apiService.StatusRequested += HandleApiStatusRequest;

            schedulerService.RegisterSchedule("NotificationCleanup", TimeSpan.FromMinutes(15), Cleanup);
        }
开发者ID:chkr1011,项目名称:CK.HomeAutomation,代码行数:25,代码来源:NotificationService.cs


示例15: MainModel

        public MainModel(IGoogleAuthService googleAuthService, IStorageService storageService, ISystemTrayService systemTrayService)
        {
            _googleAuthService = googleAuthService;
            _storageService = storageService;
            _systemTrayService = systemTrayService;

            Load();
        }
开发者ID:Hitchhikrr,项目名称:GDrive,代码行数:8,代码来源:MainModel.cs


示例16: JavaScriptStatsStorageService

 public JavaScriptStatsStorageService(IStorageService storageService, IDateTimeProvider dateTimeProvider, IHumanInterface ux, IRelevantAttributesEvaluator relevantAttributesEvaluator, IJavaScriptStatsFileNameEvaluator javaScriptStatsFileNameEvaluator)
 {
     JavaScriptStatsFileNameEvaluator = javaScriptStatsFileNameEvaluator;
     StorageService = storageService;
     DateTimeProvider = dateTimeProvider;
     Ux = ux;
     RelevantAttributesEvaluator = relevantAttributesEvaluator;
 }
开发者ID:nathanmurados,项目名称:MetricsEvaluator,代码行数:8,代码来源:JavaScriptStatsStorageService.cs


示例17: TileService

 public TileService(
     IStorageService storageService,
     ISettingsService settingsService)
 {
     _storageService = storageService;
     _settingsService = settingsService;
     _logger = new WinLogger("TileService");
 }
开发者ID:ScottIsAFool,项目名称:Speader,代码行数:8,代码来源:TileService.cs


示例18: BeforeEachTest

 public void BeforeEachTest()
 {
     _firstInput = 0;
     _secondInput = 0;
     var mocker = new RhinoAutoMocker<Calculator>();
     _calculator = mocker.ClassUnderTest;
     _storageService = mocker.Get<IStorageService>();
 }
开发者ID:BarakUgav61,项目名称:Scratch,代码行数:8,代码来源:CalculatorTests.cs


示例19: Kernel

        public Kernel(IStorageService storageImpl, IReaderService readerImpl)
        {
            this.storageService = storageImpl;
            this.readerService = readerImpl;

            sleepTime = Convert.ToInt32(Properties.Settings.Default["ScanForTasksSleep"]);
            Console.CancelKeyPress += Console_CancelKeyPress;
        }
开发者ID:badelatschenfutzie,项目名称:tlKernel,代码行数:8,代码来源:Kernel.cs


示例20: SettingsViewModel

 public SettingsViewModel(ISubsonicService subsonicService, IToastNotificationService notificationService,
     IStorageService storageService, ICustomFrameAdapter navigationService)
 {
     _subsonicService = subsonicService;
     _notificationService = notificationService;
     _storageService = storageService;
     _navigationService = navigationService;
 }
开发者ID:hyptechdev,项目名称:SubSonic8,代码行数:8,代码来源:SettingsViewModel.cs



注:本文中的IStorageService类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IStore类代码示例发布时间:2022-05-24
下一篇:
C# IStorageProviderSession类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap