Ejemplo n.º 1
0
 public LocalDataProtectionProvider(
     IProtectedData protectedData,
     IDataProtectionProvider dataProtectionProvider,
     IDesktopPlatformService platformService) : base(protectedData, dataProtectionProvider)
 {
     this.platformService = platformService;
 }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 3
0
 public HostsFileServiceImpl(IDesktopPlatformService s)
 {
     this.s = s;
 }
Ejemplo n.º 4
0
 public PlatformNotificationServiceImpl(IDesktopPlatformService dps)
 {
     this.dps = dps;
 }