public override void AddEndPoint(IRpcServerEndPoint endPoint)
 {
     if (endPoint is LightweightRpcEndPoint lightweightEndPoint)
     {
         this.AddEndPoint(lightweightEndPoint);
     }
     else
     {
         throw new ArgumentException($"End point must implement {nameof(LightweightRpcEndPoint)} or {nameof(LightweightDiscoveryEndPoint)}.");
     }
 }
Esempio n. 2
0
 public override void AddEndPoint(IRpcServerEndPoint endPoint)
 {
     if (endPoint is GrpcServerEndPoint grpcEndPoint)
     {
         this.AddEndPoint(grpcEndPoint);
     }
     else
     {
         throw new ArgumentException($"End point must implement {nameof(GrpcServerEndPoint)}.");
     }
 }
Esempio n. 3
0
 public abstract void AddEndPoint(IRpcServerEndPoint endPoint);
 public void AddEndPoint(IRpcServerEndPoint endPoint)
 {
 }