public async ValueTask <bool> RemoveAsync(App.Dto.Req.Remove.Common.Connection request, CancellationToken cancellationToken = default) { CallOptions = CallOptions.WithCancellationToken(cancellationToken); CallContext = new CallContext(CallOptions, CallContextFlags.IgnoreStreamTermination); var output = false; try { using (Channel) { var client = Channel.CreateGrpcService <ICommandAsync>(); var result = await client.RemoveConnectionAsync(request, CallContext); output = result.Result; } } catch (Exception ex) { Logger.LogError(GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod()?.Name + " - " + ex.Source + " " + ex.Message + " " + ex.StackTrace); } return(output); }
public async ValueTask <bool> RemoveAsync(App.Dto.Req.Remove.Common.Connection removeCommonConnection, CancellationToken cancellationToken = default) { return(await _connection.RemoveAsync(removeCommonConnection, cancellationToken)); }
public bool Remove(App.Dto.Req.Remove.Common.Connection removeItem, CancellationToken cancellationToken = default) { return(_connection.Remove(removeItem)); }
public App.Dto.Res.Remove.Common.Connection RemoveConnection(App.Dto.Req.Remove.Common.Connection request, CallContext context = default) { return(_commandHandler.ExecuteWithResponse <App.Dto.Req.Remove.Common.Connection, App.Dto.Res.Remove.Common.Connection>(_loggerFactory, _componentContext, request)); }
public async ValueTask <App.Dto.Res.Remove.Common.Connection> RemoveConnectionAsync(App.Dto.Req.Remove.Common.Connection request, CallContext context = default) { return(await _commandHandlerAsync.ExecuteWithResponseAsync <App.Dto.Req.Remove.Common.Connection, App.Dto.Res.Remove.Common.Connection>(_loggerFactory, _componentContext, request, context.CancellationToken)); }