public MessagingFactory(Uri serviceUri, MessagingFactorySettings settings) { Address = serviceUri ?? throw new ArgumentNullException(nameof(serviceUri)); Settings = settings ?? throw new ArgumentNullException(nameof(settings)); }
public static Task <MessagingFactory> CreateAsync(Uri serviceUri, MessagingFactorySettings settings) { var factory = new MessagingFactory(serviceUri, settings); return(Task.FromResult(factory)); }
public static MessagingFactory Create(Uri serviceUri, MessagingFactorySettings settings) { return(new MessagingFactory(serviceUri, settings)); }