コード例 #1
0
 public LocalDataProtectionProvider(
     IProtectedData protectedData,
     IDataProtectionProvider dataProtectionProvider,
     IDesktopPlatformService platformService) : base(protectedData, dataProtectionProvider)
 {
     this.platformService = platformService;
 }
コード例 #2
0
        public SteamServiceImpl(IDesktopPlatformService platformService, IHttpService http)
        {
            this.platformService = platformService;
            this.http            = http;
            mSteamDirPath        = platformService.GetSteamDirPath();
            mSteamProgramPath    = platformService.GetSteamProgramPath();
            UserVdfPath          = SteamDirPath == null ? null : Path.Combine(SteamDirPath, "config", "loginusers.vdf");
            AppInfoPath          = SteamDirPath == null ? null : Path.Combine(SteamDirPath, "appcache", "appinfo.vdf");
            LibrarycacheDirPath  = SteamDirPath == null ? null : Path.Combine(SteamDirPath, "appcache", "librarycache");

            if (!File.Exists(UserVdfPath))
            {
                UserVdfPath = null;
            }
            if (!File.Exists(AppInfoPath))
            {
                AppInfoPath = null;
            }
            if (!Directory.Exists(LibrarycacheDirPath))
            {
                LibrarycacheDirPath = null;
            }
        }
コード例 #3
0
 public HostsFileServiceImpl(IDesktopPlatformService s)
 {
     this.s = s;
 }
コード例 #4
0
 public PlatformNotificationServiceImpl(IDesktopPlatformService dps)
 {
     this.dps = dps;
 }