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)}."); } }
public override void AddEndPoint(IRpcServerEndPoint endPoint) { if (endPoint is GrpcServerEndPoint grpcEndPoint) { this.AddEndPoint(grpcEndPoint); } else { throw new ArgumentException($"End point must implement {nameof(GrpcServerEndPoint)}."); } }
public abstract void AddEndPoint(IRpcServerEndPoint endPoint);
public void AddEndPoint(IRpcServerEndPoint endPoint) { }