/// <summary> /// Initializes a new instance of the <see cref="Topic"/> class. /// </summary> /// <param name="name">The name.</param> internal Topic(string name) { this.Name = name; this.CreatedAt = DateTime.Now; this.AccessedAt = DateTime.Now; this.UpdatedAt = DateTime.Now; this._producerConsumer = new ProducerConsumer <BrokeredMessage>(message => this.DispatchMessage(message)); }
/// <summary> /// Initializes a new instance of the <see cref="PublisherClient"/> class. /// </summary> /// <param name="publisherName">Name of the publisher.</param> internal PublisherClient(string publisherName) { this.Name = publisherName; this.CreatedAt = DateTime.Now; this.AccessedAt = DateTime.Now; this.UpdatedAt = DateTime.Now; this._producerConsumer = new ProducerConsumer <BrokeredMessage>(message => this.DispatchMessage(message)); }
/// <summary> /// Initializes a new instance of the <see cref="SubscriptionClient"/> class. /// </summary> /// <param name="subscriptionName">Name of the subscription.</param> internal SubscriptionClient(string subscriptionName) { this.Name = subscriptionName; this.CreatedAt = DateTime.Now; this.AccessedAt = DateTime.Now; this.UpdatedAt = DateTime.Now; this._producerConsumer = new ProducerConsumer <BrokeredMessage>(message => this.ConsumeMessage(message)); }