Renamed IServerMethods to `IPipeServerMethods
This commit is contained in:
@@ -14,7 +14,7 @@ Log("Client started.");
|
||||
string pipeName = $"PipeDemo-{Environment.ProcessId}-{Guid.NewGuid():N}";
|
||||
|
||||
Process? serverProcess = null;
|
||||
PipeClient<IServerMethods> client = null!;
|
||||
PipeClient<IPipeServerMethods> client = null!;
|
||||
|
||||
try
|
||||
{
|
||||
@@ -161,7 +161,7 @@ async Task StartServerAndConnectAsync(string pipeName)
|
||||
};
|
||||
serverProcess = process;
|
||||
|
||||
client = new PipeClient<IServerMethods>(new JsonFieldsPipeSerializer(), pipeName);
|
||||
client = new PipeClient<IPipeServerMethods>(new JsonFieldsPipeSerializer(), pipeName);
|
||||
using var cts = new CancellationTokenSource(TimeSpan.FromSeconds(10));
|
||||
await client.ConnectAsync(cts.Token);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user