/// <summary> /// Map the message type to the specified address /// </summary> /// <typeparam name="T"></typeparam> /// <param name="destinationAddress"></param> public static void Map <T>(Uri destinationAddress) where T : class { EndpointConventionCache <T> .Map((out Uri address) => { address = destinationAddress; return(true); }); }
/// <summary> /// Map the message type to the endpoint returned by the specified method /// </summary> /// <typeparam name="T"></typeparam> /// <param name="endpointAddressProvider"></param> public static void Map <T>(EndpointAddressProvider <T> endpointAddressProvider) where T : class { EndpointConventionCache <T> .Map(endpointAddressProvider); }
/// <summary> /// Map the message type to the specified address /// </summary> /// <typeparam name="T"></typeparam> /// <param name="destinationAddress"></param> public static void Map <T>(Uri destinationAddress) where T : class { EndpointConventionCache <T> .Map(destinationAddress); }