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

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