Ejemplo n.º 1
0
 private void ApplyRequestEndFilterSafe(ExecutionContext context)
 {
     try
     {
         ApplyRequestEndFilter(context);
     }
     catch (Exception ex)
     {
         Dictionary <string, string> addtionalInfo = GetClientInfo(context);
         addtionalInfo["ErrorCode"] = "FXD301041";
         log.Error("Client Request End Filter execute failed.", ex, addtionalInfo);
     }
 }
Ejemplo n.º 2
0
        protected internal Dictionary <string, string> GetClientInfo(ExecutionContext context)
        {
            Dictionary <string, string> clientInfo = GetClientInfo();

            clientInfo["Format"]         = context.Format;
            clientInfo["Operation"]      = context.Operation;
            clientInfo["InvocationMode"] = context.ExecutionMode;
            if (IsSLBService && context.ServiceUrl != null)
            {
                clientInfo["ServiceUrl"] = context.ServiceUrl;
            }
            return(clientInfo);
        }
Ejemplo n.º 3
0
        private void ApplyRequestEndFilter(ExecutionContext context)
        {
            Action <ExecutionContext> localFilter = LocalRequestEndFilter;

            if (localFilter != null)
            {
                localFilter(context);
            }

            Action <ExecutionContext> filter = RequestEndFilter;

            if (filter != null)
            {
                filter(context);
            }
        }