Browse Source

Added default parameter to Connect function for cancellation token

Kenric Nugteren 2 years ago
parent
commit
c6fb663724

+ 1 - 1
InABox.Client.RPC/Transports/Pipe/RPCClientPipeTransport.cs

@@ -20,7 +20,7 @@ namespace InABox.Rpc
             _pipe.ExceptionOccurred += PipeExceptionOccurred;
             _pipe.ExceptionOccurred += PipeExceptionOccurred;
         }
         }
 
 
-        public override bool Connect(CancellationToken ct)
+        public override bool Connect(CancellationToken ct = default)
         {
         {
             _pipe.ConnectAsync(ct).Wait();
             _pipe.ConnectAsync(ct).Wait();
             return _pipe.IsConnected;
             return _pipe.IsConnected;

+ 1 - 1
InABox.Client.RPC/Transports/Socket/RPCClientSocketTransport.cs

@@ -198,7 +198,7 @@ namespace InABox.Rpc
             openEvent.Set();
             openEvent.Set();
         }
         }
 
 
-        public override bool Connect(CancellationToken ct)
+        public override bool Connect(CancellationToken ct = default)
         {
         {
             if (_socket != null)
             if (_socket != null)
             {
             {