Exemple #1
0
        private async Task <ServiceCallResult> CallNext(INodeClientContainer nodeClientContainer, ServiceCallInfo info, Dictionary <string, string> crossProcessBag, ITrace trace)
        {
            if (info.Attachments == null)
            {
                info.Attachments = new Dictionary <string, byte[]>();
            }

            info.Attachments.Add(Constants.CrossProcessBagKey, await serializer.SerializeAsync(crossProcessBag));

            try
            {
                return(await Next.CallAsync(nodeClientContainer, info));
            }
            catch (Exception ex)
            {
                trace.AnnotateWith(PredefinedTag.Error, ex.Message);
                throw ex;
            }
        }