/// <summary> /// Creates a new instance using the provided <see cref="ServiceReference"/>. /// </summary> /// <param name="serviceReference"></param> /// <param name="serviceProxyFactory">Optionak</param> public ServiceReferenceWrapper(ServiceReference serviceReference, IServiceProxyFactory serviceProxyFactory = null) { _serviceProxyFactory = serviceProxyFactory ?? new ServiceProxyFactory(); ServiceReference = serviceReference ?? throw new ArgumentNullException(nameof(serviceReference)); }
/// <summary> /// Creates a new instance using the provided <see cref="ServiceReference"/>. /// </summary> /// <param name="serviceReference"></param> /// <param name="routingKey">Optional routing key to filter messages based on content. 'Key=Value' where Key is a message property path and Value is the value to match with message payload content.</param> public ServiceReferenceWrapper(ServiceReference serviceReference, string routingKey = null) : base(routingKey) { ServiceReference = serviceReference ?? throw new ArgumentNullException(nameof(serviceReference)); }