private IAsyncResult BeginCreateSender(TimeSpan timeout, AsyncCallback callback, object state)
        {
            base.ThrowIfDisposed();
            if (!this.openOnceManager.ShouldOpen)
            {
                return(this.OnBeginCreateSender(timeout, callback, state));
            }
            OpenOnceManager     openOnceManager     = this.openOnceManager;
            AsyncCallback       asyncCallback       = callback;
            object              obj                 = state;
            VolatileTopicClient volatileTopicClient = this;

            return(openOnceManager.Begin <MessageSender>(asyncCallback, obj, (AsyncCallback c, object s) => this.OnBeginCreateSender(timeout, c, s), new Func <IAsyncResult, MessageSender>(volatileTopicClient.OnEndCreateSender)));
        }
 public CloseAsyncResult(VolatileTopicClient owner, bool shouldAbort, TimeSpan timeout, AsyncCallback callback, object state) : base(timeout, callback, state)
 {
     this.owner       = owner;
     this.shouldAbort = shouldAbort;
 }
 public static VolatileTopicClient Create(string path, string clientId)
 {
     return(VolatileTopicClient.Create(path, clientId, null));
 }
 public static VolatileTopicClient CreateFromConnectionString(string connectionString, string path, string clientId)
 {
     return(VolatileTopicClient.CreateFromConnectionString(connectionString, path, clientId, null));
 }
 public static VolatileTopicClient Create(string path)
 {
     return(VolatileTopicClient.Create(path, null, null));
 }