Beispiel #1
0
        public IEnumerable <Dto.HeartBeat> SendHeartBeat(CancellationToken cancellationToken = default)
        {
            CallOptions = CallOptions.WithCancellationToken(cancellationToken);
            CallContext = new CallContext(CallOptions, CallContextFlags.IgnoreStreamTermination);

            using (Channel)
            {
                IBiz client = Channel.CreateGrpcService <IBiz>();

                return(client.SendHeartBeat(CallContext));
            }
        }