Renamed IServerMethods to `IPipeServerMethods
This commit is contained in:
@@ -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<IServerMethods>(
|
||||
var server = new PipeServer<IPipeServerMethods>(
|
||||
new JsonFieldsPipeSerializer(),
|
||||
pipeName,
|
||||
() => new ServerMethods());
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user