From ffe0e5354160025abebbea79d537c944f3b24f0a Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Thu, 6 Jun 2024 23:19:50 -0500 Subject: [PATCH] remove comments --- .../Files/BotSharpFileService.Conversation.cs | 25 ------------------- 1 file changed, 25 deletions(-) diff --git a/src/Infrastructure/BotSharp.Core/Files/BotSharpFileService.Conversation.cs b/src/Infrastructure/BotSharp.Core/Files/BotSharpFileService.Conversation.cs index 7c626ddf..bb294fec 100644 --- a/src/Infrastructure/BotSharp.Core/Files/BotSharpFileService.Conversation.cs +++ b/src/Infrastructure/BotSharp.Core/Files/BotSharpFileService.Conversation.cs @@ -207,20 +207,8 @@ public partial class BotSharpFileService var dir = GetConversationFileDirectory(conversationId, messageId, createNewDir: true); if (!ExistDirectory(dir)) return false; - //var contextId = string.Empty; - //var web = _services.GetRequiredService(); - //var isNeedScreenShot = files.Any(x => _allowScreenShotTypes.Contains(Path.GetExtension(x.FileName))); - //var preFixPath = Path.Combine(_baseDir, CONVERSATION_FOLDER, conversationId, FILE_FOLDER, messageId); - try { - //if (isNeedScreenShot) - //{ - // var state = _services.GetRequiredService(); - // contextId = state.GetConversationId() ?? Guid.NewGuid().ToString(); - // await web.LaunchBrowser(contextId, string.Empty); - //} - for (int i = 0; i < files.Count; i++) { var file = files[i]; @@ -238,21 +226,8 @@ public partial class BotSharpFileService } File.WriteAllBytes(Path.Combine(subDir, file.FileName), bytes); - - //if (isNeedScreenShot && _allowScreenShotTypes.Contains(fileType)) - //{ - // var path = Path.Combine(preFixPath, fileName); - // await web.GoToPage(contextId, path); - // path = Path.Combine(preFixPath, $"{Guid.NewGuid()}.{i + 1}.png"); - // await web.ScreenshotAsync(contextId, path); - //} } - //if (isNeedScreenShot) - //{ - // await web.CloseBrowser(contextId); - //} - return true; } catch (Exception ex)