Example #1
0
 public SessionAuth(IFileSystemShim fsShim, ISerializer serializer)
 {
     _fs         = fsShim;
     _serialzr   = serializer;
     var dir     = _fs.GetSpecialDir(SpecialDir.LocalApplicationData)
                                                 .Bslash(ParentDir);
     SessionFile = _fs.File(dir.Bslash("d7.session"));
 }
Example #2
0
        public D7CachedNodesRepoBase(IFileSystemShim fileSystemShim, ISerializer serializer, ISessionClient client, IBasicAuthenticationKey credentials)
        {
            _fs      = fileSystemShim;
            _serialr = serializer;
            SetClient(client, credentials);

            _cacheLoaded += OnCacheLoaded_RefreshCache;
        }
Example #3
0
 internal D7FileDownloader(string targetDir, string subUrlPattern, IFileSystemShim fsShim, ID7Client d7Client)
 {
     _client     = ForwardLogs(d7Client);
     _fs         = ForwardLogs(fsShim);
     _foldr      = _fs.Folder(targetDir);
     _urlPattern = subUrlPattern;
     _suffix     = "_" + DateTime.Now.TimeOfDay.TotalMinutes;
     DeleteOldReplacements();
 }
Example #4
0
 internal D7FileDownloader(string targetDir, string subUrlPattern, IFileSystemShim fsShim, ID7Client d7Client)
 {
     _client     = ForwardLogs(d7Client);
     _fs         = ForwardLogs(fsShim);
     _foldr      = _fs.Folder(targetDir);
     _urlPattern = subUrlPattern;
     _suffix     = "_" + DateTime.Now.TimeOfDay.TotalMinutes;
     DeleteOldReplacements();
 }
Example #5
0
        public FileShim(IFileSystemShim fsShim, string filePath)
        {
            this._fs  = fsShim;
            this.Name = this._fs.GetFileNameWithoutPath(filePath);
            this._dir = this._fs.GetParentDir(filePath);
            this.Path = this._dir.Bslash(this.Name);

            this.DefaultLevel = L4j.Trace;
        }
Example #6
0
        public SessionAuth(IFileSystemShim fsShim, ISerializer serializer)
        {
            _fs       = fsShim;
            _serialzr = serializer;
            var dir = _fs.GetSpecialDir(SpecialDir.LocalApplicationData)
                      .Bslash(ParentDir);

            SessionFile = _fs.File(dir.Bslash("d7.session"));
        }
Example #7
0
        //private bool _loginStarted = false;
        //private static readonly Object obj = new Object();


        public D7ServicesClient(IFileSystemShim fsShim, ISerializer serializer)
        {
            _fsShim   = fsShim;
            _serialzr = ForwardLogs(serializer);
            _client   = ForwardLogs(new RestSharpClientShim());
            _auth     = ForwardLogs(new SessionAuth(fsShim, serializer));
            _batchr   = ForwardLogs(new BatchSender(_client, _auth));

            _client.ResponseReceived += (s, e) 
                => RaiseResponseReceived(e.Value);
        }
Example #8
0
 public D7CachedNodesRepoBase(IFileSystemShim fileSystemShim, ISerializer serializer, IClientSource clientSource)
     : this(fileSystemShim, serializer, clientSource.Client, clientSource.AuthKey)
 {
 }
Example #9
0
 public LoginCfgFile(IFileSystemShim fileSystemShim, ISerializer serializer)
 {
     _fs      = ForwardLogs(fileSystemShim);
     _serialr = ForwardLogs(serializer);
     _creds   = new LoginCredentials();
 }
Example #10
0
 public LogScrollerVM(IFileSystemShim fileSystemShim)
 {
     _fs = fileSystemShim;
 }
Example #11
0
 public BinUploaderCfgFile(IFileSystemShim fileSystemShim, ISerializer serializer)
     : base(fileSystemShim, serializer)
 {
 }
Example #12
0
 public BinUpdaterCfgFile(IFileSystemShim fileSystemShim, ISerializer serializer) 
     : base(fileSystemShim, serializer) { }
Example #13
0
 public FolderShim(IFileSystemShim fsShim, string folderPath)
 {
     this._fs  = fsShim;
     this.Path = folderPath;
 }
Example #14
0
 public static bool IsBlank <T>(T objWithAttributes, IFileSystemShim fsShim)
 => DataError.Info(objWithAttributes, fsShim).IsBlank();
Example #15
0
 public static string Info <T>(T objWithAttributes, string columnName, IFileSystemShim fsShim)
 => Validator(fsShim).GetErrorMessage(objWithAttributes, columnName);
Example #16
0
 public static string Info <T>(T objWithAttributes, IFileSystemShim fsShim)
 => Validator(fsShim).GetAllErrors(objWithAttributes);
Example #17
0
 public BatchFileShim(IFileSystemShim fileSystemShim)
 {
     _fs = ForwardLogs(fileSystemShim);
 }
Example #18
0
 public D7MonolithCacheReader(IFileSystemShim fsShim, ISerializer serializer) : base(fsShim, serializer)
 {
     _cacheSubDir = "Monolithic Cache";
 }
Example #19
0
 public SqlServerKeyFile(IFileSystemShim fsShim, ISerializer serializer)
 {
     _fs      = fsShim;
     _serialr = serializer;
 }
Example #20
0
 private static AttributeValidator Validator(IFileSystemShim fsShim)
 => new AttributeValidator
 {
     FsShim = fsShim
 };
Example #21
0
 public D7FileSynchronizer(IFileSystemShim fsShim)
 {
     _fs = ForwardLogs(fsShim);
 }
Example #22
0
 public BatchFileShim(IFileSystemShim fileSystemShim)
 {
     _fs = ForwardLogs(fileSystemShim);
 }
Example #23
0
 public SqlServerKeyFile(IFileSystemShim fsShim, ISerializer serializer)
 {
     _fs      = fsShim;
     _serialr = serializer;
 }
Example #24
0
 public LocalFileSeeker(IFileSystemShim fsShim)
 {
     _fsShim = ForwardLogs(fsShim);
 }
Example #25
0
 public D7FileSynchronizer(IFileSystemShim fsShim)
 {
     _fs = ForwardLogs(fsShim);
 }
Example #26
0
 public LogScrollerVM(IFileSystemShim fileSystemShim)
 {
     _fs = fileSystemShim;
 }
Example #27
0
 public D7BasicCacheReader(IFileSystemShim fsShim, ISerializer serializer) : base(fsShim, serializer)
 {
     LowRetryIntervalSeconds = -1;
 }
Example #28
0
 public LocalFileSeeker(IFileSystemShim fsShim)
 {
     _fsShim = ForwardLogs(fsShim);
 }