コード例 #1
0
ファイル: Topic.cs プロジェクト: kouweizhong/CodePlexDevLib
 /// <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));
 }
コード例 #2
0
 /// <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));
 }
コード例 #3
0
 /// <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));
 }