Exemplo n.º 1
0
        public static bool TryGet(MessageProperties properties, out CorrelationDataMessageProperty property)
        {
            object obj2 = null;

            if (properties.TryGetValue("CorrelationDataMessageProperty", out obj2))
            {
                property = obj2 as CorrelationDataMessageProperty;
            }
            else
            {
                property = null;
            }
            return(property != null);
        }
        public static bool TryGet(MessageProperties properties, out BufferedReceiveMessageProperty property)
        {
            object obj2 = null;

            if (properties.TryGetValue("BufferedReceiveMessageProperty", out obj2))
            {
                property = obj2 as BufferedReceiveMessageProperty;
            }
            else
            {
                property = null;
            }
            return(property != null);
        }
        public static bool TryGet(MessageProperties properties, out CorrelationDataMessageProperty property)
        {
            object value = null;

            if (properties.TryGetValue(PropertyName, out value))
            {
                property = value as CorrelationDataMessageProperty;
            }
            else
            {
                property = null;
            }
            return(property != null);
        }
        public static bool TryGet(MessageProperties properties, out BufferedReceiveMessageProperty property)
        {
            Fx.Assert(properties != null, "The MessageProperties parameter is null");

            object value = null;

            if (properties.TryGetValue(PropertyName, out value))
            {
                property = value as BufferedReceiveMessageProperty;
            }
            else
            {
                property = null;
            }
            return(property != null);
        }
Exemplo n.º 5
0
        public static bool TryGet(MessageProperties properties, out ChannelBindingMessageProperty property)
        {
            object obj2;

            if (properties == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("properties");
            }
            property = null;
            if (properties.TryGetValue(Name, out obj2))
            {
                property = obj2 as ChannelBindingMessageProperty;
                return(property != null);
            }
            return(false);
        }
Exemplo n.º 6
0
        public static bool TryGet(MessageProperties properties, out ReceiveContext property)
        {
            object obj2;

            if (properties == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("properties");
            }
            property = null;
            if (properties.TryGetValue(Name, out obj2))
            {
                property = (ReceiveContext)obj2;
                return(true);
            }
            return(false);
        }
        public static bool TryGet(MessageProperties properties, out CorrelationMessageProperty property)
        {
            if (properties == null)
            {
                throw System.ServiceModel.DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("properties");
            }
            object obj2 = null;

            if (properties.TryGetValue("CorrelationMessageProperty", out obj2))
            {
                property = obj2 as CorrelationMessageProperty;
            }
            else
            {
                property = null;
            }
            return(property != null);
        }
        public static bool TryGet(MessageProperties properties, out ChannelBindingMessageProperty property)
        {
            if (properties == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull(nameof(properties));
            }

            property = null;
            object value;

            if (properties.TryGetValue(ChannelBindingMessageProperty.Name, out value))
            {
                property = value as ChannelBindingMessageProperty;
                return(property != null);
            }

            return(false);
        }
Exemplo n.º 9
0
        public static bool TryGet(MessageProperties properties, out CallbackContextMessageProperty contextMessageProperty)
        {
            if (properties == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("properties");
            }
            object obj2 = null;

            if (properties.TryGetValue("CallbackContextMessageProperty", out obj2))
            {
                contextMessageProperty = obj2 as CallbackContextMessageProperty;
            }
            else
            {
                contextMessageProperty = null;
            }
            return(contextMessageProperty != null);
        }
Exemplo n.º 10
0
        public static bool TryGet(MessageProperties properties, out CorrelationCallbackMessageProperty property)
        {
            if (properties == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("properties");
            }

            object value = null;

            if (properties.TryGetValue(PropertyName, out value))
            {
                property = value as CorrelationCallbackMessageProperty;
            }
            else
            {
                property = null;
            }
            return(property != null);
        }
        public static bool TryGet(MessageProperties properties, out NetworkInterfaceMessageProperty property)
        {
            if (properties == null)
            {
                throw FxTrace.Exception.ArgumentNull("properties");
            }

            object value = null;

            if (properties.TryGetValue(PropertyName, out value))
            {
                property = value as NetworkInterfaceMessageProperty;
            }
            else
            {
                property = null;
            }
            return(property != null);
        }