Example #1
0
 public MessagingFactory(Uri serviceUri, MessagingFactorySettings settings)
 {
     Address  = serviceUri ?? throw new ArgumentNullException(nameof(serviceUri));
     Settings = settings ?? throw new ArgumentNullException(nameof(settings));
 }
Example #2
0
        public static Task <MessagingFactory> CreateAsync(Uri serviceUri, MessagingFactorySettings settings)
        {
            var factory = new MessagingFactory(serviceUri, settings);

            return(Task.FromResult(factory));
        }
Example #3
0
 public static MessagingFactory Create(Uri serviceUri, MessagingFactorySettings settings)
 {
     return(new MessagingFactory(serviceUri, settings));
 }