public Task <Empty> EmptyCall(ServerCallContext context, Empty request) { return(Task.FromResult(Empty.DefaultInstance)); }
public Task <Empty> EmptyCallAsync(Empty request, CancellationToken token = default(CancellationToken)) { var call = new Grpc.Core.Call <Empty, Empty>(emptyCallMethod, channel); return(Calls.AsyncUnaryCall(call, request, token)); }
public Empty EmptyCall(Empty request, CancellationToken token = default(CancellationToken)) { var call = new Grpc.Core.Call <Empty, Empty>(emptyCallMethod, channel); return(Calls.BlockingUnaryCall(call, request, token)); }
public void EmptyCall(Empty request, IObserver <Empty> responseObserver) { responseObserver.OnNext(Empty.DefaultInstance); responseObserver.OnCompleted(); }
public Task <Empty> EmptyCallAsync(Empty request, CancellationToken token = default(CancellationToken)) { var call = CreateCall(ServiceName, EmptyCallMethod); return(Calls.AsyncUnaryCall(call, request, token)); }
public Empty EmptyCall(Empty request, CancellationToken token = default(CancellationToken)) { var call = CreateCall(ServiceName, EmptyCallMethod); return(Calls.BlockingUnaryCall(call, request, token)); }