コード例 #1
0
ファイル: SplitterSink.cs プロジェクト: Aviuz/JsonLogger
        private async Task Split()
        {
            string destinationFilePath = Path.Combine(
                targetDirectory,
                $"{DateTime.Now:dd.MM.yyyy HH.mm}{fileControllerWatched.GetExtension()}"
                );

            var   task = fileControllerWatched.TransferTo(destinationFilePath);
            await task;
        }