コード例 #1
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);
            if (!disposing)
            {
                return;
            }

            OnFileStreamSent();

            var clostream = _uploadStream;

            _uploadPendingTask.ContinueWith(task =>
            {
                clostream?.Dispose();
            }).Wait();

            if (_performAsSplitted)
            {
                var header = new HeaderFileContent
                {
                    CreationDate = DateTime.Now,
                    Name         = _origfile.Name,
                    Size         = _origfile.Size,
                    PublicKey    = _cryptInfo?.PublicKey
                };
                _cloud.UploadFileJson(_origfile.FullPath, header, true);
            }

            OnServerFileProcessed();
            OnFileUploaded(_files);
        }
コード例 #2
0
        protected override void Dispose(bool disposing)
        {
            base.Dispose(disposing);
            if (!disposing)
            {
                return;
            }

            _uploadStream?.Dispose();

            if (_performAsSplitted)
            {
                var header = new HeaderFileContent
                {
                    CreationDate = DateTime.Now,
                    Name         = _origfile.Name,
                    Size         = _origfile.Size,
                    PublicKey    = _cryptInfo?.PublicKey
                };
                _cloud.UploadFileJson(_origfile.FullPath, header, true);
            }

            OnFileUploaded(_files);
        }
コード例 #3
0
 public static void TryProcess(HeaderFileContent content, string line) =>
 content.Comment = FileLoaderCommon.ConcatenateWithNewLine(content.Comment, line);
コード例 #4
0
ファイル: BrainVisionPackage.cs プロジェクト: dmedine/BVTools
 public void UpdateMissingKeysWithDefaultValues()
 => HeaderFileContent.UpdateMissingKeysWithDefaultValues();