diff --git a/PipeClient/Program.cs b/PipeClient/Program.cs index 029fcd8..705df82 100644 --- a/PipeClient/Program.cs +++ b/PipeClient/Program.cs @@ -14,7 +14,7 @@ Log("Client started."); string pipeName = $"PipeDemo-{Environment.ProcessId}-{Guid.NewGuid():N}"; Process? serverProcess = null; -PipeClient client = null!; +PipeClient client = null!; try { @@ -161,7 +161,7 @@ async Task StartServerAndConnectAsync(string pipeName) }; serverProcess = process; - client = new PipeClient(new JsonFieldsPipeSerializer(), pipeName); + client = new PipeClient(new JsonFieldsPipeSerializer(), pipeName); using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10)); await client.ConnectAsync(cts.Token); } diff --git a/PipeServer/Program.cs b/PipeServer/Program.cs index 4cbd5ec..5cfa278 100644 --- a/PipeServer/Program.cs +++ b/PipeServer/Program.cs @@ -9,7 +9,7 @@ Console.WriteLine($"Server started. Pipe: {pipeName}"); // Exceptions in handler methods are caught by PipeMethodCalls and sent to the client // (client receives PipeInvokeFailedException with the server exception details). -var server = new PipeServer( +var server = new PipeServer( new JsonFieldsPipeSerializer(), pipeName, () => new ServerMethods()); diff --git a/PipeServer/ServerMethods.cs b/PipeServer/ServerMethods.cs index 64cf518..fca373b 100644 --- a/PipeServer/ServerMethods.cs +++ b/PipeServer/ServerMethods.cs @@ -4,7 +4,7 @@ using System.Numerics; namespace Server; -public class ServerMethods : IServerMethods +public class ServerMethods : IPipeServerMethods { public int Add(int a, int b) => a + b; diff --git a/PipeShared/IServerMethods.cs b/PipeShared/IPipeServerMethods.cs similarity index 92% rename from PipeShared/IServerMethods.cs rename to PipeShared/IPipeServerMethods.cs index 2b9efbe..5bc1fe1 100644 --- a/PipeShared/IServerMethods.cs +++ b/PipeShared/IPipeServerMethods.cs @@ -2,7 +2,7 @@ using System.Numerics; namespace PipeShared; -public interface IServerMethods +public interface IPipeServerMethods { int Add(int a, int b); Vector3 AddVector(Vector3 a, Vector3 b);