Exemple #1
0
 /// <summary>The constructor to initialize a <c>new BackgroundThread</c>.</summary>
 /// <param name=""></param>
 public BackgroundThread(CryptoServices Cryptography)
 {
     _Cryptography  = Cryptography;
     _abCopyBuffer  = new byte[PairOfFiles.ciBytesPerProgressUnit];
     _TextConverter = new TextConverter();
     _quCommands    = new ConcurrentQueue <BackgroundMessage>();
     _quReturn      = new ConcurrentQueue <BackgroundMessage>();
     Reset();
 }
Exemple #2
0
 /// <summary></summary>
 protected Drive()
 {
     _isCanSetupEncryptedDirectory = _isReadOnly = _isReady = _isSource = false;
     _cDirectorySeparator          = '\\';
     _abCopyBuffer      = new byte[PairOfFiles.ciBytesPerProgressUnit];
     _iLevelsInRootPath = -1;
     _kTotalSize        = -1;
     _sFormat           = _sName = _sRootPath = _sSettingsDirectory = _sTemporaryDirectory = _sTemporaryFilePath = _sVolumeLabel = string.Empty;
     _Type             = DriveType.Unknown;
     _eEncryptionType  = nEncryptionType.DirectoryUnencrypted;
     _ltEncryptedPairs = new List <PairOfFiles>();
     _TextConverter    = new TextConverter();
     _Cryptography     = null;
 }
Exemple #3
0
 /// <summary></summary>
 /// <param name=""></param>
 /// <param name=""></param>
 public Drive(CryptoServices Cryptography, bool isSource) : this()
 {
     _Cryptography = Cryptography;
     _isSource     = isSource;
 }