MiniRefactoring

pull/1/head
unknown 3 years ago
parent 6e8d6bfac6
commit 90359e5d60

@ -17,6 +17,13 @@
<PackageReleaseNotes>Move to new ZeroLevelVersion</PackageReleaseNotes>
</PropertyGroup>
<ItemGroup>
<None Include="..\zero.png" Link="zero.png">
<PackagePath></PackagePath>
<Pack>True</Pack>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Data.Common" Version="4.3.0" />
<PackageReference Include="System.Data.SqlClient" Version="4.8.2" />
@ -27,11 +34,4 @@
<ProjectReference Include="..\ZeroLevel\ZeroLevel.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="E:\Desktop\Developing\NUGET\zero.png">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
</Project>

@ -1,5 +1,5 @@
using System.Data.SQLite;
using System;
using System;
using System.Data.SQLite;
using System.IO;
using ZeroLevel.Services.FileSystem;

@ -27,7 +27,7 @@ Based on System.Data.SQLite.Core</Description>
</ItemGroup>
<ItemGroup>
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.113.1" />
<PackageReference Include="System.Data.SQLite.Core" Version="1.0.114.3" />
</ItemGroup>
<ItemGroup>

@ -78,7 +78,9 @@ namespace ZeroLevel.Services.FileSystem
{
return;
}
OnStartMovingFilesToTemporary?.Invoke(files.Length);
foreach (Action<int> startFilesMoveingCallback in OnStartMovingFilesToTemporary.GetInvocationList())
startFilesMoveingCallback.BeginInvoke(files.Length, null, null);
foreach (var file in files)
{
if (!File.Exists(file))
@ -100,7 +102,9 @@ namespace ZeroLevel.Services.FileSystem
Log.SystemWarning($"[PeriodicFileSystemWatcher.CheckSourceFolder] Failed to move file '{file}' to temporary directory '{_temporaryFolder}'. Without system error!");
continue;
}
OnMovingFileToTemporary?.Invoke(file, tempFile);
foreach (Action<string,string> moveFileToTempCallback in OnMovingFileToTemporary.GetInvocationList())
moveFileToTempCallback.BeginInvoke(file, tempFile, null, null);
}
catch (Exception ex)
{
@ -110,7 +114,7 @@ namespace ZeroLevel.Services.FileSystem
Log.Debug($"[PeriodicFileSystemWatcher.CheckSourceFolder] Handle file {file}");
try
{
_callback(new FileMeta(Path.GetFileName(file), tempFile));
_callback.Invoke(new FileMeta(Path.GetFileName(file), tempFile));
}
catch (Exception ex)
{
@ -128,7 +132,8 @@ namespace ZeroLevel.Services.FileSystem
Log.SystemError(ex, $"[PeriodicFileSystemWatcher.CheckSourceFolder] Fault delete file {tempFile}");
}
}
OnCompleteMovingFilesToTemporary?.Invoke();
foreach (Action completeFileMovingCallback in OnCompleteMovingFilesToTemporary.GetInvocationList())
completeFileMovingCallback.BeginInvoke(null, null);
}
/// <summary>

@ -60,6 +60,7 @@ namespace ZeroLevel.Services.Network.Proxies
}
catch (Exception ex)
{
Log.SystemError(ex, "[Proxy.CreateProxyConnection]");
}
}
@ -71,7 +72,9 @@ namespace ZeroLevel.Services.Network.Proxies
_incomingSocket.Dispose();
}
catch (Exception ex)
{ }
{
Log.SystemError(ex, "[Proxy.Dispose]");
}
}
}
}

@ -1,7 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Text.RegularExpressions;

Loading…
Cancel
Save

Powered by TurnKey Linux.