Skip to content

Commit

Permalink
调整命名空间
Browse files Browse the repository at this point in the history
  • Loading branch information
JusterZhu committed Nov 10, 2024
1 parent a6d0679 commit 855ce67
Show file tree
Hide file tree
Showing 24 changed files with 252 additions and 175 deletions.
10 changes: 8 additions & 2 deletions src/c#/GeneralUpdate.Bowl/Bowl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public Bowl(MonitorParameter parameter = null)
_strategy!.SetParameter(parameter);
}

private void CreateStrategy()
private Bowl CreateStrategy()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Expand All @@ -30,6 +30,8 @@ private void CreateStrategy()

if (_strategy == null)
throw new PlatformNotSupportedException("Unsupported operating system");

return this;
}

public Bowl SetParameter(MonitorParameter parameter)
Expand All @@ -41,5 +43,9 @@ public Bowl SetParameter(MonitorParameter parameter)
return this;
}

public void Launch() => _strategy.Launch();
public Bowl Launch()
{
_strategy.Launch();
return this;
}
}
5 changes: 3 additions & 2 deletions src/c#/GeneralUpdate.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,23 @@
using GeneralUpdate.Common.Internal;
using GeneralUpdate.Common.Internal.Bootstrap;
using GeneralUpdate.Common.Shared.Object;
using GeneralUpdate.Differential;

namespace GeneralUpdate.Client
{
internal class Progra
{
private static void Main(string[] args)
{
/*Task.Run(async () =>
Task.Run(async () =>
{
var source = @"D:\packet\app";
var target = @"D:\packet\release";
var patch = @"D:\packet\patch";

await DifferentialCore.Instance?.Clean(source, target, patch);
await DifferentialCore.Instance?.Dirty(source, patch);
});*/
});

/*Task.Run(() =>
{
Expand Down
2 changes: 1 addition & 1 deletion src/c#/GeneralUpdate.ClientCore/GeneralClientBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using System.Text.Json;
using System.Threading.Tasks;
using GeneralUpdate.ClientCore.Strategys;
using GeneralUpdate.Common;
using GeneralUpdate.Common.FileBasic;
using GeneralUpdate.Common.Download;
using GeneralUpdate.Common.Internal;
using GeneralUpdate.Common.Internal.Bootstrap;
Expand Down
2 changes: 1 addition & 1 deletion src/c#/GeneralUpdate.ClientCore/GeneralClientOSS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
using System.Text.Json;
using System.Threading;
using System.Threading.Tasks;
using GeneralUpdate.Common;
using GeneralUpdate.Common.FileBasic;
using GeneralUpdate.Common.Internal;
using GeneralUpdate.Common.Internal.Event;
using GeneralUpdate.Common.Shared.Object;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using GeneralUpdate.Common;
using GeneralUpdate.Common.FileBasic;
using GeneralUpdate.Common.Internal.Pipeline;
using GeneralUpdate.Differential;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.IO;
using System.Threading.Tasks;
using GeneralUpdate.ClientCore.Pipeline;
using GeneralUpdate.Common;
using GeneralUpdate.Common.FileBasic;
using GeneralUpdate.Common.Internal;
using GeneralUpdate.Common.Internal.Event;
using GeneralUpdate.Common.Internal.Pipeline;
Expand Down
1 change: 0 additions & 1 deletion src/c#/GeneralUpdate.Common/Download/DownloadManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using System.Threading.Tasks;
using System.Collections.Immutable;
using System.Diagnostics;
using System.Diagnostics.Contracts;
using System.Linq;

namespace GeneralUpdate.Common.Download
Expand Down
147 changes: 0 additions & 147 deletions src/c#/GeneralUpdate.Common/File/FileNode.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.IO;

namespace GeneralUpdate.Common;
namespace GeneralUpdate.Common.FileBasic;

public class BlackListManager
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Collections.Generic;

namespace GeneralUpdate.Common;
namespace GeneralUpdate.Common.FileBasic;

/// <summary>
/// Result of a comparison between two directories.
Expand Down
Loading

0 comments on commit 855ce67

Please sign in to comment.