Ejemplo n.º 1
0
        public async Task <ServerResponse <IssuerData> > AddIssuerCommerce(IssuerData commerce)
        {
            var currentSynchronizationContext = SynchronizationContext.Current;

            try
            {
                SynchronizationContext.SetSynchronizationContext(new OperationContextSynchronizationContext(InnerChannel));
                return(await WrapperTS(Channel.AddIssuerCommerce, commerce));
            }
            finally
            {
                SynchronizationContext.SetSynchronizationContext(currentSynchronizationContext);
            }
        }
 public async Task <ServerResponse <IssuerData> > AddIssuerCommerce(IssuerData commerce)
 {
     return(await OnlyRunOnIntranet(() => _cl.AddIssuerCommerce(commerce)));
 }