public async ValueTask <bool> ModifyFieldAsync(App.Dto.Req.ModifyField.Logix.LogixTag 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.ModifyLogixTagFieldAsync(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 App.Dto.Res.ModifyField.Logix.LogixTag ModifyLogixTagField(App.Dto.Req.ModifyField.Logix.LogixTag request, CallContext context = default) { return(_commandHandler.ExecuteWithResponse <App.Dto.Req.ModifyField.Logix.LogixTag, App.Dto.Res.ModifyField.Logix.LogixTag>(_loggerFactory, _componentContext, request)); }
public async ValueTask <App.Dto.Res.ModifyField.Logix.LogixTag> ModifyLogixTagFieldAsync(App.Dto.Req.ModifyField.Logix.LogixTag request, CallContext context = default) { return(await _commandHandlerAsync.ExecuteWithResponseAsync <App.Dto.Req.ModifyField.Logix.LogixTag, App.Dto.Res.ModifyField.Logix.LogixTag>(_loggerFactory, _componentContext, request, context.CancellationToken)); }
public async ValueTask <bool> ModifyFieldAsync(App.Dto.Req.ModifyField.Logix.LogixTag modifyTagField, CancellationToken cancellationToken = default) { return(await _logixTag.ModifyFieldAsync(modifyTagField, cancellationToken)); }
public bool ModifyField(App.Dto.Req.ModifyField.Logix.LogixTag modifyTagField, CancellationToken cancellationToken = default) { return(_logixTag.ModifyField(modifyTagField)); }