Beispiel #1
0
        public async ValueTask <App.Dto.Res.Copy.Common.TagGroup> CopyAsync(App.Dto.Req.Copy.Common.TagGroup request, CancellationToken cancellationToken = default)
        {
            CallOptions = CallOptions.WithCancellationToken(cancellationToken);
            CallContext = new CallContext(CallOptions, CallContextFlags.IgnoreStreamTermination);
            App.Dto.Res.Copy.Common.TagGroup output = new App.Dto.Res.Copy.Common.TagGroup();
            try
            {
                using (Channel)
                {
                    var client = Channel.CreateGrpcService <ICommandAsync>();

                    var result = await client.CopyTagGroupAsync(request, CallContext);

                    output = result;
                }
            }
            catch (Exception ex)
            {
                Logger.LogError(GetType().FullName + "." + System.Reflection.MethodBase.GetCurrentMethod()?.Name + " - " + ex.Source + " " + ex.Message + " " + ex.StackTrace);
            }
            return(output);
        }
Beispiel #2
0
 public async ValueTask <App.Dto.Res.Copy.Common.TagGroup> CopyAsync(App.Dto.Req.Copy.Common.TagGroup copyCommonTagGroup, CancellationToken cancellationToken = default)
 {
     return(await _tagGroup.CopyAsync(copyCommonTagGroup, cancellationToken));
 }
Beispiel #3
0
 public App.Dto.Res.Copy.Common.TagGroup CopyTagGroup(App.Dto.Req.Copy.Common.TagGroup request, CallContext context = default)
 {
     return(_commandHandler.ExecuteWithResponse <App.Dto.Req.Copy.Common.TagGroup, App.Dto.Res.Copy.Common.TagGroup>(_loggerFactory, _componentContext, request));
 }
Beispiel #4
0
 public App.Dto.Res.Copy.Common.TagGroup Copy(App.Dto.Req.Copy.Common.TagGroup copyItem, CancellationToken cancellationToken = default)
 {
     return(_tagGroup.Copy(copyItem));
 }
Beispiel #5
0
 public async ValueTask <App.Dto.Res.Copy.Common.TagGroup> CopyTagGroupAsync(App.Dto.Req.Copy.Common.TagGroup request, CallContext context = default)
 {
     return(await _commandHandlerAsync.ExecuteWithResponseAsync <App.Dto.Req.Copy.Common.TagGroup, App.Dto.Res.Copy.Common.TagGroup>(_loggerFactory, _componentContext, request, context.CancellationToken));
 }