Skip to content

Commit

Permalink
Sync with Zily changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeliux committed Nov 8, 2023
1 parent 78f7210 commit 00d88ee
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/CommonTK.Console.Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,11 @@ public static void Run(CommandLineOptions options)
if (options.Zily)
{
var pipe = new NamedPipeClientStream(options.PipeName);
var side = new ZilyClientSide();
var client = new ZilyStream(pipe, side);
var side = new ZilyClientSide(pipe);

pipe.Connect();
side.Connect();
client.Listen(!options.Verbose);
side.Listen(!options.Verbose);
}
else
{
Expand Down
6 changes: 3 additions & 3 deletions src/CommonTK.Console/ConsoleManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private static void DisableCloseButton()
/// <summary>
/// Gets the named pipe that used for communicating with the console client.
/// </summary>
public static ZilyStream Pipe { get; private set; }
public static ZilySide Pipe { get; private set; }

/// <summary>
/// Checks if The Application has Console.
Expand Down Expand Up @@ -230,8 +230,8 @@ private static void CreateClient()
.CreateLogger();

var server = new NamedPipeServerStream(PipeServerName, PipeDirection.InOut);
ZilyPipeServerSide side = new ZilyPipeServerSide();
Pipe = new ZilyStream(server, side);
ZilyPipeServerSide side = new ZilyPipeServerSide(server);
Pipe = side;

string args = $"-p {PipeServerName} --zily";
#if DEBUG
Expand Down

0 comments on commit 00d88ee

Please sign in to comment.