public async ValueTask <App.Dto.Res.Export.Logix.LogixTag> ExportAsync(App.Dto.Req.Export.Logix.LogixTag request, CancellationToken cancellationToken = default) { CallOptions = CallOptions.WithCancellationToken(cancellationToken); CallContext = new CallContext(CallOptions, CallContextFlags.IgnoreStreamTermination); App.Dto.Res.Export.Logix.LogixTag output = new App.Dto.Res.Export.Logix.LogixTag(); try { using (Channel) { var client = Channel.CreateGrpcService <ICommandAsync>(); var result = await client.ExportLogixTagAsync(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.Export.Logix.LogixTag ExportLogixTag(App.Dto.Req.Export.Logix.LogixTag request, CallContext context = default) { return(_commandHandler.ExecuteWithResponse <App.Dto.Req.Export.Logix.LogixTag, App.Dto.Res.Export.Logix.LogixTag>(_loggerFactory, _componentContext, request)); }
public async ValueTask <App.Dto.Res.Export.Logix.LogixTag> ExportLogixTagAsync(App.Dto.Req.Export.Logix.LogixTag request, CallContext context = default) { return(await _commandHandlerAsync.ExecuteWithResponseAsync <App.Dto.Req.Export.Logix.LogixTag, App.Dto.Res.Export.Logix.LogixTag>(_loggerFactory, _componentContext, request, context.CancellationToken)); }
public async ValueTask <App.Dto.Res.Export.Logix.LogixTag> ExportAsync(App.Dto.Req.Export.Logix.LogixTag exportItem, CancellationToken cancellationToken = default) { return(await _logixTag.ExportAsync(exportItem, cancellationToken)); }
public App.Dto.Res.Export.Logix.LogixTag Export(App.Dto.Req.Export.Logix.LogixTag exportItem, CancellationToken cancellationToken = default) { return(_logixTag.Export(exportItem)); }