TryGetEndpointAddress() public static method

public static TryGetEndpointAddress ( object message, Uri &address ) : bool
message object
address System.Uri
return bool
Ejemplo n.º 1
0
        public static bool TryGetDestinationAddress(object message, out Uri destinationAddress)
        {
            if (message == null)
            {
                throw new ArgumentNullException(nameof(message));
            }

            return(EndpointConventionCache.TryGetEndpointAddress(message, out destinationAddress));
        }
Ejemplo n.º 2
0
            bool IEndpointConventionCache <TMessage> .TryGetEndpointAddress(out Uri address)
            {
                if (typeof(TAdapter).IsAssignableFrom(typeof(TMessage)))
                {
                    return(EndpointConventionCache <TAdapter> .TryGetEndpointAddress(out address));
                }

                address = default;
                return(false);
            }
Ejemplo n.º 3
0
            bool IEndpointConventionCache <TMessage> .TryGetEndpointAddress(TMessage message, out Uri address)
            {
                var messageOfT = message as TAdapter;

                if (messageOfT != null)
                {
                    return(EndpointConventionCache <TAdapter> .TryGetEndpointAddress(messageOfT, out address));
                }

                address = default(Uri);
                return(false);
            }
Ejemplo n.º 4
0
 public static bool TryGetDestinationAddress(Type messageType, out Uri destinationAddress)
 {
     return(EndpointConventionCache.TryGetEndpointAddress(messageType, out destinationAddress));
 }
Ejemplo n.º 5
0
 public static bool TryGetDestinationAddress <T>(out Uri destinationAddress)
     where T : class
 {
     return(EndpointConventionCache <T> .TryGetEndpointAddress(out destinationAddress));
 }