public static void AddOutgoingCorrelationCallbackData(CorrelationCallbackMessageProperty callback, Message message, bool client)
 {
     if (client)
     {
         callback.AddData(CorrelationName, () => GetCallbackContextCorrelationData(message));
     }
     else
     {
         callback.AddData(CorrelationName, () => GetContextCorrelationData(message));
     }
 }
 public static void AddOutgoingCorrelationCallbackData(CorrelationCallbackMessageProperty callback, Message message, bool client)
 {
     if (client)
     {
         callback.AddData(CorrelationName, () => GetCallbackContextCorrelationData(message));
     }
     else
     {
         callback.AddData(CorrelationName, () => GetContextCorrelationData(message));
     }
 }
 public static void AddOutgoingCorrelationCallbackData(CorrelationCallbackMessageProperty callback, Message message, bool client)
 {
     Func<string> func = null;
     Func<string> func2 = null;
     if (client)
     {
         if (func == null)
         {
             func = () => GetCallbackContextCorrelationData(message);
         }
         callback.AddData(CorrelationName, func);
     }
     else
     {
         if (func2 == null)
         {
             func2 = () => GetContextCorrelationData(message);
         }
         callback.AddData(CorrelationName, func2);
     }
 }
示例#4
0
        public static void AddOutgoingCorrelationCallbackData(CorrelationCallbackMessageProperty callback, Message message, bool client)
        {
            Func <string> func  = null;
            Func <string> func2 = null;

            if (client)
            {
                if (func == null)
                {
                    func = () => GetCallbackContextCorrelationData(message);
                }
                callback.AddData(CorrelationName, func);
            }
            else
            {
                if (func2 == null)
                {
                    func2 = () => GetContextCorrelationData(message);
                }
                callback.AddData(CorrelationName, func2);
            }
        }