Skip to content

Commit 855ce67

Browse files
committed
调整命名空间
1 parent a6d0679 commit 855ce67

File tree

24 files changed

+252
-175
lines changed

24 files changed

+252
-175
lines changed

src/c#/GeneralUpdate.Bowl/Bowl.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public Bowl(MonitorParameter parameter = null)
1717
_strategy!.SetParameter(parameter);
1818
}
1919

20-
private void CreateStrategy()
20+
private Bowl CreateStrategy()
2121
{
2222
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
2323
{
@@ -30,6 +30,8 @@ private void CreateStrategy()
3030

3131
if (_strategy == null)
3232
throw new PlatformNotSupportedException("Unsupported operating system");
33+
34+
return this;
3335
}
3436

3537
public Bowl SetParameter(MonitorParameter parameter)
@@ -41,5 +43,9 @@ public Bowl SetParameter(MonitorParameter parameter)
4143
return this;
4244
}
4345

44-
public void Launch() => _strategy.Launch();
46+
public Bowl Launch()
47+
{
48+
_strategy.Launch();
49+
return this;
50+
}
4551
}

src/c#/GeneralUpdate.Client/Program.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,23 @@
44
using GeneralUpdate.Common.Internal;
55
using GeneralUpdate.Common.Internal.Bootstrap;
66
using GeneralUpdate.Common.Shared.Object;
7+
using GeneralUpdate.Differential;
78

89
namespace GeneralUpdate.Client
910
{
1011
internal class Progra
1112
{
1213
private static void Main(string[] args)
1314
{
14-
/*Task.Run(async () =>
15+
Task.Run(async () =>
1516
{
1617
var source = @"D:\packet\app";
1718
var target = @"D:\packet\release";
1819
var patch = @"D:\packet\patch";
1920

2021
await DifferentialCore.Instance?.Clean(source, target, patch);
2122
await DifferentialCore.Instance?.Dirty(source, patch);
22-
});*/
23+
});
2324

2425
/*Task.Run(() =>
2526
{

src/c#/GeneralUpdate.ClientCore/GeneralClientBootstrap.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
using System.Text.Json;
88
using System.Threading.Tasks;
99
using GeneralUpdate.ClientCore.Strategys;
10-
using GeneralUpdate.Common;
10+
using GeneralUpdate.Common.FileBasic;
1111
using GeneralUpdate.Common.Download;
1212
using GeneralUpdate.Common.Internal;
1313
using GeneralUpdate.Common.Internal.Bootstrap;

src/c#/GeneralUpdate.ClientCore/GeneralClientOSS.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
using System.Text.Json;
99
using System.Threading;
1010
using System.Threading.Tasks;
11-
using GeneralUpdate.Common;
11+
using GeneralUpdate.Common.FileBasic;
1212
using GeneralUpdate.Common.Internal;
1313
using GeneralUpdate.Common.Internal.Event;
1414
using GeneralUpdate.Common.Shared.Object;

src/c#/GeneralUpdate.ClientCore/Pipeline/PatchMiddleware.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Collections.Generic;
22
using System.Threading.Tasks;
3-
using GeneralUpdate.Common;
3+
using GeneralUpdate.Common.FileBasic;
44
using GeneralUpdate.Common.Internal.Pipeline;
55
using GeneralUpdate.Differential;
66

src/c#/GeneralUpdate.ClientCore/Strategys/WindowsStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
using System.IO;
44
using System.Threading.Tasks;
55
using GeneralUpdate.ClientCore.Pipeline;
6-
using GeneralUpdate.Common;
6+
using GeneralUpdate.Common.FileBasic;
77
using GeneralUpdate.Common.Internal;
88
using GeneralUpdate.Common.Internal.Event;
99
using GeneralUpdate.Common.Internal.Pipeline;

src/c#/GeneralUpdate.Common/Download/DownloadManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using System.Threading.Tasks;
44
using System.Collections.Immutable;
55
using System.Diagnostics;
6-
using System.Diagnostics.Contracts;
76
using System.Linq;
87

98
namespace GeneralUpdate.Common.Download

src/c#/GeneralUpdate.Common/File/FileNode.cs

Lines changed: 0 additions & 147 deletions
This file was deleted.

src/c#/GeneralUpdate.Common/File/BlackListManager.cs renamed to src/c#/GeneralUpdate.Common/FileBasic/BlackListManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
using System.Collections.Generic;
22
using System.IO;
33

4-
namespace GeneralUpdate.Common;
4+
namespace GeneralUpdate.Common.FileBasic;
55

66
public class BlackListManager
77
{

src/c#/GeneralUpdate.Common/File/ComparisonResult.cs renamed to src/c#/GeneralUpdate.Common/FileBasic/ComparisonResult.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using System.Collections.Generic;
22

3-
namespace GeneralUpdate.Common;
3+
namespace GeneralUpdate.Common.FileBasic;
44

55
/// <summary>
66
/// Result of a comparison between two directories.

0 commit comments

Comments
 (0)