public App.Dto.Res.Update.Logix.LogixConnection Update(App.Dto.Req.Update.Logix.LogixConnection request, CancellationToken cancellationToken = default) { CallOptions = CallOptions.WithCancellationToken(cancellationToken); CallContext = new CallContext(CallOptions, CallContextFlags.IgnoreStreamTermination); App.Dto.Res.Update.Logix.LogixConnection output = new App.Dto.Res.Update.Logix.LogixConnection(); try { using (Channel) { var client = Channel.CreateGrpcService <ICommand>(); var result = client.UpdateLogixConnection(request, CallContext); output = result; } } catch (Exception ex) { Logger.LogError(GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod()?.Name + " - " + ex.Source + " " + ex.Message + " " + ex.StackTrace); } return(output); }
public App.Dto.Res.Update.Logix.LogixConnection UpdateLogixConnection(App.Dto.Req.Update.Logix.LogixConnection request, CallContext context = default) { return(_commandHandler.ExecuteWithResponse <App.Dto.Req.Update.Logix.LogixConnection, App.Dto.Res.Update.Logix.LogixConnection>(_loggerFactory, _componentContext, request)); }
public async ValueTask <App.Dto.Res.Update.Logix.LogixConnection> UpdateAsync(App.Dto.Req.Update.Logix.LogixConnection updateConnection, CancellationToken cancellationToken = default) { return(await _logixConnection.UpdateAsync(updateConnection, cancellationToken)); }
public async ValueTask <App.Dto.Res.Update.Logix.LogixConnection> UpdateLogixConnectionAsync(App.Dto.Req.Update.Logix.LogixConnection request, CallContext context = default) { return(await _commandHandlerAsync.ExecuteWithResponseAsync <App.Dto.Req.Update.Logix.LogixConnection, App.Dto.Res.Update.Logix.LogixConnection>(_loggerFactory, _componentContext, request, context.CancellationToken)); }
public App.Dto.Res.Update.Logix.LogixConnection Update(App.Dto.Req.Update.Logix.LogixConnection updateItem, CancellationToken cancellationToken = default) { return(_logixConnection.Update(updateItem)); }