Skip to content

Commit bc04344

Browse files
fixed #1 and Logger added
1 parent ceeb88c commit bc04344

25 files changed

+3866
-98
lines changed

WindowsFormApplication/ClipSyncWindowsFormApplication/App.config renamed to ClipSyncWindowsFormApplication/App.config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<add key="recieve_copied_text_signalr_method_name" value="ReceiveCopiedText" />
1111
<add key="send_copied_text_signalr_method_name" value="SendCopiedText" />
1212
<add key="copied_watermark" value="- Copied By ClipSync" />
13-
<add key="number_of_seconds_interval_between_copy" value="3" />
13+
<add key="number_of_seconds_interval_between_copy" value="1" />
1414
<add key="ClientSettingsProvider.ServiceUri" value="" />
1515
</appSettings>
1616
<startup>
@@ -28,11 +28,11 @@
2828
</dependentAssembly>
2929
<dependentAssembly>
3030
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
31-
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
31+
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
3232
</dependentAssembly>
3333
<dependentAssembly>
3434
<assemblyIdentity name="Microsoft.Owin.Security" publicKeyToken="31bf3856ad364e35" culture="neutral" />
35-
<bindingRedirect oldVersion="0.0.0.0-4.1.0.0" newVersion="4.1.0.0" />
35+
<bindingRedirect oldVersion="0.0.0.0-4.1.1.0" newVersion="4.1.1.0" />
3636
</dependentAssembly>
3737
<dependentAssembly>
3838
<assemblyIdentity name="System.Web.Cors" publicKeyToken="31bf3856ad364e35" culture="neutral" />
@@ -44,7 +44,7 @@
4444
</dependentAssembly>
4545
<dependentAssembly>
4646
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
47-
<bindingRedirect oldVersion="0.0.0.0-4.0.6.0" newVersion="4.0.6.0" />
47+
<bindingRedirect oldVersion="0.0.0.0-5.0.0.0" newVersion="5.0.0.0" />
4848
</dependentAssembly>
4949
<dependentAssembly>
5050
<assemblyIdentity name="System.Threading.Tasks.Extensions" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />

WindowsFormApplication/ClipSyncWindowsFormApplication/Assets/clip_sync_logo_2.ico renamed to ClipSyncWindowsFormApplication/Assets/clip_sync_logo_2.ico

File renamed without changes.

WindowsFormApplication/ClipSyncWindowsFormApplication/Assets/clip_sync_logo_2.png renamed to ClipSyncWindowsFormApplication/Assets/clip_sync_logo_2.png

File renamed without changes.

WindowsFormApplication/ClipSyncWindowsFormApplication/ClipSync.csproj renamed to ClipSyncWindowsFormApplication/ClipSync.csproj

Lines changed: 34 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -81,38 +81,41 @@
8181
<Reference Include="Microsoft.AspNet.SignalR.Core, Version=2.4.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
8282
<HintPath>..\packages\Microsoft.AspNet.SignalR.Core.2.4.1\lib\net45\Microsoft.AspNet.SignalR.Core.dll</HintPath>
8383
</Reference>
84-
<Reference Include="Microsoft.Owin, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
85-
<HintPath>..\packages\Microsoft.Owin.4.1.0\lib\net45\Microsoft.Owin.dll</HintPath>
84+
<Reference Include="Microsoft.Owin, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
85+
<HintPath>..\packages\Microsoft.Owin.4.1.1\lib\net45\Microsoft.Owin.dll</HintPath>
8686
</Reference>
87-
<Reference Include="Microsoft.Owin.Cors, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
88-
<HintPath>..\packages\Microsoft.Owin.Cors.4.1.0\lib\net45\Microsoft.Owin.Cors.dll</HintPath>
87+
<Reference Include="Microsoft.Owin.Cors, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
88+
<HintPath>..\packages\Microsoft.Owin.Cors.4.1.1\lib\net45\Microsoft.Owin.Cors.dll</HintPath>
8989
</Reference>
90-
<Reference Include="Microsoft.Owin.Host.HttpListener, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
91-
<HintPath>..\packages\Microsoft.Owin.Host.HttpListener.4.1.0\lib\net45\Microsoft.Owin.Host.HttpListener.dll</HintPath>
90+
<Reference Include="Microsoft.Owin.Host.HttpListener, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
91+
<HintPath>..\packages\Microsoft.Owin.Host.HttpListener.4.1.1\lib\net45\Microsoft.Owin.Host.HttpListener.dll</HintPath>
9292
</Reference>
93-
<Reference Include="Microsoft.Owin.Hosting, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
94-
<HintPath>..\packages\Microsoft.Owin.Hosting.4.1.0\lib\net45\Microsoft.Owin.Hosting.dll</HintPath>
93+
<Reference Include="Microsoft.Owin.Hosting, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
94+
<HintPath>..\packages\Microsoft.Owin.Hosting.4.1.1\lib\net45\Microsoft.Owin.Hosting.dll</HintPath>
9595
</Reference>
96-
<Reference Include="Microsoft.Owin.Security, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
97-
<HintPath>..\packages\Microsoft.Owin.Security.4.1.0\lib\net45\Microsoft.Owin.Security.dll</HintPath>
96+
<Reference Include="Microsoft.Owin.Security, Version=4.1.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
97+
<HintPath>..\packages\Microsoft.Owin.Security.4.1.1\lib\net45\Microsoft.Owin.Security.dll</HintPath>
9898
</Reference>
9999
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
100100
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
101101
</Reference>
102+
<Reference Include="NLog, Version=4.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
103+
<HintPath>..\packages\NLog.4.7.6\lib\net45\NLog.dll</HintPath>
104+
</Reference>
102105
<Reference Include="Owin, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f0ebd12fd5e55cc5, processorArchitecture=MSIL">
103106
<HintPath>..\packages\Owin.1.0\lib\net40\Owin.dll</HintPath>
104107
</Reference>
105108
<Reference Include="System" />
106109
<Reference Include="System.Buffers, Version=4.0.3.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
107-
<HintPath>..\packages\System.Buffers.4.5.0\lib\netstandard2.0\System.Buffers.dll</HintPath>
110+
<HintPath>..\packages\System.Buffers.4.5.1\lib\net461\System.Buffers.dll</HintPath>
108111
</Reference>
109112
<Reference Include="System.Collections.Specialized, Version=4.0.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
110113
<HintPath>..\packages\System.Collections.Specialized.4.3.0\lib\net46\System.Collections.Specialized.dll</HintPath>
111114
<Private>True</Private>
112115
<Private>True</Private>
113116
</Reference>
114117
<Reference Include="System.ComponentModel.Annotations, Version=4.2.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
115-
<HintPath>..\packages\System.ComponentModel.Annotations.4.7.0\lib\net461\System.ComponentModel.Annotations.dll</HintPath>
118+
<HintPath>..\packages\System.ComponentModel.Annotations.5.0.0\lib\net461\System.ComponentModel.Annotations.dll</HintPath>
116119
</Reference>
117120
<Reference Include="System.ComponentModel.Composition" />
118121
<Reference Include="System.ComponentModel.DataAnnotations" />
@@ -124,8 +127,9 @@
124127
<Private>True</Private>
125128
<Private>True</Private>
126129
</Reference>
127-
<Reference Include="System.IO.Pipelines, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
128-
<HintPath>..\packages\System.IO.Pipelines.4.7.0\lib\netstandard2.0\System.IO.Pipelines.dll</HintPath>
130+
<Reference Include="System.IO.Compression" />
131+
<Reference Include="System.IO.Pipelines, Version=5.0.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
132+
<HintPath>..\packages\System.IO.Pipelines.5.0.1\lib\net461\System.IO.Pipelines.dll</HintPath>
129133
</Reference>
130134
<Reference Include="System.Linq, Version=4.1.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
131135
<HintPath>..\packages\System.Linq.4.3.0\lib\net463\System.Linq.dll</HintPath>
@@ -136,7 +140,7 @@
136140
<HintPath>..\packages\Microsoft.PowerShell.5.ReferenceAssemblies.1.1.0\lib\net4\System.Management.Automation.dll</HintPath>
137141
</Reference>
138142
<Reference Include="System.Memory, Version=4.0.1.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
139-
<HintPath>..\packages\System.Memory.4.5.3\lib\netstandard2.0\System.Memory.dll</HintPath>
143+
<HintPath>..\packages\System.Memory.4.5.4\lib\net461\System.Memory.dll</HintPath>
140144
</Reference>
141145
<Reference Include="System.Net.Http.WebRequest" />
142146
<Reference Include="System.Net.NameResolution, Version=4.0.1.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
@@ -163,8 +167,8 @@
163167
<Private>True</Private>
164168
<Private>True</Private>
165169
</Reference>
166-
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=4.0.6.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
167-
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.4.7.0\lib\netstandard2.0\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
170+
<Reference Include="System.Runtime.CompilerServices.Unsafe, Version=5.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
171+
<HintPath>..\packages\System.Runtime.CompilerServices.Unsafe.5.0.0\lib\net45\System.Runtime.CompilerServices.Unsafe.dll</HintPath>
168172
</Reference>
169173
<Reference Include="System.Runtime.Extensions, Version=4.1.1.1, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
170174
<HintPath>..\packages\System.Runtime.Extensions.4.3.1\lib\net462\System.Runtime.Extensions.dll</HintPath>
@@ -198,20 +202,22 @@
198202
<Private>True</Private>
199203
<Private>True</Private>
200204
</Reference>
201-
<Reference Include="System.Text.Encodings.Web, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
202-
<HintPath>..\packages\System.Text.Encodings.Web.4.7.0\lib\netstandard2.0\System.Text.Encodings.Web.dll</HintPath>
205+
<Reference Include="System.ServiceModel" />
206+
<Reference Include="System.Text.Encodings.Web, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
207+
<HintPath>..\packages\System.Text.Encodings.Web.5.0.0\lib\net461\System.Text.Encodings.Web.dll</HintPath>
203208
</Reference>
204209
<Reference Include="System.Text.RegularExpressions, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
205210
<HintPath>..\packages\System.Text.RegularExpressions.4.3.1\lib\net463\System.Text.RegularExpressions.dll</HintPath>
206211
<Private>True</Private>
207212
<Private>True</Private>
208213
</Reference>
209-
<Reference Include="System.Threading.Channels, Version=4.0.2.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
210-
<HintPath>..\packages\System.Threading.Channels.4.7.0\lib\netstandard2.0\System.Threading.Channels.dll</HintPath>
214+
<Reference Include="System.Threading.Channels, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
215+
<HintPath>..\packages\System.Threading.Channels.5.0.0\lib\net461\System.Threading.Channels.dll</HintPath>
211216
</Reference>
212217
<Reference Include="System.Threading.Tasks.Extensions, Version=4.2.0.1, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51, processorArchitecture=MSIL">
213-
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.3\lib\netstandard2.0\System.Threading.Tasks.Extensions.dll</HintPath>
218+
<HintPath>..\packages\System.Threading.Tasks.Extensions.4.5.4\lib\net461\System.Threading.Tasks.Extensions.dll</HintPath>
214219
</Reference>
220+
<Reference Include="System.Transactions" />
215221
<Reference Include="System.Web.Cors, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
216222
<HintPath>..\packages\Microsoft.AspNet.Cors.5.2.7\lib\net45\System.Web.Cors.dll</HintPath>
217223
</Reference>
@@ -254,6 +260,12 @@
254260
<DependentUpon>Resources.resx</DependentUpon>
255261
<DesignTime>True</DesignTime>
256262
</Compile>
263+
<Content Include="NLog.config">
264+
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
265+
</Content>
266+
<None Include="NLog.xsd">
267+
<SubType>Designer</SubType>
268+
</None>
257269
<None Include="packages.config" />
258270
<None Include="Properties\Settings.settings">
259271
<Generator>SettingsSingleFileGenerator</Generator>

WindowsFormApplication/ClipSyncWindowsFormApplication/ClipSyncController.Designer.cs renamed to ClipSyncWindowsFormApplication/ClipSyncController.Designer.cs

File renamed without changes.

WindowsFormApplication/ClipSyncWindowsFormApplication/ClipSyncController.cs renamed to ClipSyncWindowsFormApplication/ClipSyncController.cs

Lines changed: 42 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using ClipSync.Helpers;
22
using Microsoft.AspNet.SignalR.Client;
33
using Microsoft.Owin.Hosting;
4+
using NLog;
45
using System;
56
using System.Collections.Generic;
67
using System.Configuration;
8+
using System.Diagnostics;
79
using System.Runtime.InteropServices;
810
using System.Windows.Forms;
911

@@ -41,6 +43,15 @@ public partial class ClipSyncControlForm : Form {
4143
/// </summary>
4244
public string uid = "";
4345

46+
/// <summary>
47+
/// General Logger Target
48+
/// </summary>
49+
public Logger generaLogger = LogManager.GetLogger("GeneralLog");
50+
/// <summary>
51+
/// Copy History Logger Target
52+
/// </summary>
53+
public Logger copyHistoryLogger = LogManager.GetLogger("CopyHistory");
54+
4455
/// <summary>
4556
/// Default Constructor
4657
/// </summary>
@@ -65,6 +76,7 @@ private void ClipSyncControlForm_Load(object sender, EventArgs e) {
6576

6677
} catch (Exception ex) {
6778
this.LogWriter(ex.ToString());
79+
this.generaLogger.Error(ex);
6880
}
6981
}
7082

@@ -128,6 +140,7 @@ private void LoginButton_Click(object sender, EventArgs e) {
128140
isSignalRConnected = false;
129141
Login_Button.Enabled = true;
130142
this.LogWriter("Exception in connecting to SignalR Hub : " + ex.ToString());
143+
this.generaLogger.Error(ex);
131144
}
132145

133146
if (!isSignalRConnected) {
@@ -182,10 +195,11 @@ private void StartServerButton_Click(object sender, EventArgs e) {
182195
this.LogWriter("You need to run as administrator");
183196
this.LogWriter("Only server address localhost is allowed without administrator permissions");
184197
MessageBox.Show("You need to run as administrator", "Error");
185-
Console.WriteLine(ex.ToString());
198+
this.generaLogger.Error(ex);
186199
this.startServerButton.Enabled = true;
187200
} catch (Exception ex) {
188201
this.LogWriter(ex.ToString());
202+
this.generaLogger.Error(ex);
189203
this.startServerButton.Enabled = true;
190204
}
191205
}
@@ -218,10 +232,11 @@ private void OpenPortButton_Click(object sender, EventArgs e) {
218232
} catch (System.Reflection.TargetInvocationException ex) {
219233
this.LogWriter("You need to run as administrator");
220234
MessageBox.Show("You need to run as administrator", "Error");
221-
Console.WriteLine(ex.ToString());
235+
this.generaLogger.Error(ex);
222236
} catch (Exception ex) {
223237
this.OpenPortButton.Enabled = true;
224238
this.LogWriter(ex.ToString());
239+
this.generaLogger.Error(ex);
225240
}
226241
}
227242

@@ -237,6 +252,9 @@ internal void LogWriter(string t) {
237252
));
238253
return;
239254
}
255+
256+
this.generaLogger.Info(t);
257+
240258
consoleTextBox.AppendText(Environment.NewLine + Environment.NewLine + t);
241259
consoleTextBox.SelectionStart = consoleTextBox.Text.Length;
242260
consoleTextBox.ScrollToCaret();
@@ -256,28 +274,34 @@ private void AddClipBoardListener() {
256274
/// </summary>
257275
/// <param name="m"></param>
258276
protected override void WndProc(ref Message m) {
259-
if (m.Msg == NativeMethods.WM_CLIPBOARDUPDATE) {
260-
261-
IDataObject iData = Clipboard.GetDataObject(); // Clipboard's data
277+
try {
262278

263279
if (m.Msg == NativeMethods.WM_CLIPBOARDUPDATE) {
264-
string copied_content = (string)iData.GetData(DataFormats.Text);
265-
//do something with it
266-
if (copied_content != null && !copied_content.Contains(ConfigurationManager.AppSettings["copied_watermark"]) && copied_content.Length > 0) {
267-
double lastTime = TimeSpan.Parse(mTime).Seconds;
268-
mTime = DateTime.Now.ToLongTimeString();
269-
if ((TimeSpan.Parse(mTime).Seconds - lastTime) > Convert.ToInt32(ConfigurationManager.AppSettings["number_of_seconds_interval_between_copy"])) {
270-
this.LogWriter(copied_content);
271-
_hub.Invoke(ConfigurationManager.AppSettings["send_copied_text_signalr_method_name"], copied_content);
280+
281+
IDataObject iData = Clipboard.GetDataObject(); // Clipboard's data
282+
283+
if (m.Msg == NativeMethods.WM_CLIPBOARDUPDATE) {
284+
string copied_content = (string)iData.GetData(DataFormats.Text);
285+
//do something with it
286+
if (copied_content != null && !copied_content.Contains(ConfigurationManager.AppSettings["copied_watermark"]) && copied_content.Length > 0) {
287+
double lastTime = TimeSpan.Parse(mTime).Seconds;
288+
mTime = DateTime.Now.ToLongTimeString();
289+
if ((TimeSpan.Parse(mTime).Seconds - lastTime) > Convert.ToInt32(ConfigurationManager.AppSettings["number_of_seconds_interval_between_copy"])) {
290+
this.LogWriter(copied_content);
291+
_hub.Invoke(ConfigurationManager.AppSettings["send_copied_text_signalr_method_name"], copied_content);
292+
}
272293
}
294+
} else if (iData.GetDataPresent(DataFormats.Bitmap)) {
295+
//Bitmap image = (Bitmap)iData.GetData(DataFormats.Bitmap); // Clipboard image
296+
//do something with it
273297
}
274-
} else if (iData.GetDataPresent(DataFormats.Bitmap)) {
275-
//Bitmap image = (Bitmap)iData.GetData(DataFormats.Bitmap); // Clipboard image
276-
//do something with it
277298
}
278-
}
279299

280-
base.WndProc(ref m);
300+
base.WndProc(ref m);
301+
} catch (Exception ex) {
302+
Debug.WriteLine(ex);
303+
this.generaLogger.Error(ex);
304+
}
281305
}
282306

283307

WindowsFormApplication/ClipSyncWindowsFormApplication/ClipSyncController.resx renamed to ClipSyncWindowsFormApplication/ClipSyncController.resx

File renamed without changes.

WindowsFormApplication/ClipSyncWindowsFormApplication/Helpers/ClipBoardHelper.cs renamed to ClipSyncWindowsFormApplication/Helpers/ClipBoardHelper.cs

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
using System.Threading;
2+
using NLog;
23

34
namespace ClipSync.Helpers {
45

56
/// <summary>
67
/// Windows ClipBoard Helper
78
/// </summary>
89
public static class ClipBoardHelper {
10+
11+
/// <summary>
12+
/// Copy History Logger Target
13+
/// </summary>
14+
public static Logger copyHistoryLogger = LogManager.GetLogger("CopyHistory");
15+
16+
917
/// <summary>
1018
/// Set the text value to Windows ClipBoard
1119
/// </summary>
@@ -15,12 +23,14 @@ public static void SetText(string p_Text) {
1523
p_Text = "";
1624
}
1725

26+
copyHistoryLogger.Info(p_Text);
27+
1828
Thread STAThread = new Thread(
19-
delegate () {
20-
// Use a fully qualified name for Clipboard otherwise it
21-
// will end up calling itself.
22-
System.Windows.Forms.Clipboard.SetText(p_Text);
23-
});
29+
delegate () {
30+
// Use a fully qualified name for Clipboard otherwise it
31+
// will end up calling itself.
32+
System.Windows.Forms.Clipboard.SetText(p_Text);
33+
});
2434
STAThread.SetApartmentState(ApartmentState.STA);
2535
STAThread.Start();
2636
STAThread.Join();
@@ -42,6 +52,8 @@ public static string GetText() {
4252
STAThread.Start();
4353
STAThread.Join();
4454

55+
copyHistoryLogger.Info(ReturnValue);
56+
4557
return ReturnValue;
4658
}
4759
}

0 commit comments

Comments
 (0)