コード例 #1
0
        public UpdatePnsHandleAsyncResult(NotificationHubManager manager, string originalPnsHandle, string newPnsHandle, AsyncCallback callback, object state) : base(manager, true, callback, state)
        {
            UpdatePnsHandlePayload updatePnsHandlePayload = new UpdatePnsHandlePayload()
            {
                OriginalPnsHandle = originalPnsHandle,
                NewPnsHandle      = newPnsHandle
            };

            this.payload = updatePnsHandlePayload;
        }
コード例 #2
0
 private NotificationHubClient(string connectionString, string notificationHubPath)
 {
     if (string.IsNullOrWhiteSpace(connectionString))
     {
         throw new ArgumentNullException("connectionString");
     }
     if (string.IsNullOrWhiteSpace(notificationHubPath))
     {
         throw new ArgumentNullException("notificationHubPath");
     }
     this.manager             = new NotificationHubManager(connectionString, notificationHubPath);
     this.notificationHubPath = notificationHubPath;
 }
コード例 #3
0
 public GetRegistrationCountsAsyncResult(NotificationHubManager manager, string tag, AsyncCallback callback, object state) : base(manager, false, callback, state)
 {
     this.tag = tag;
     base.Start();
 }
コード例 #4
0
 public SendNotificationAsyncResult(NotificationHubManager manager, Notification notification, bool testSend, string tagExpression, AsyncCallback callback, object state) : base(manager, true, callback, state)
 {
     this.notification  = notification;
     this.testSend      = testSend;
     this.tagExpression = tagExpression;
 }
コード例 #5
0
 public GetNotificationAsyncResult(NotificationHubManager manager, string notificationId, AsyncCallback callback, object state) : base(manager, false, callback, state)
 {
     this.notificationId = notificationId;
     base.Start();
 }
 public CancelScheduledNotificationAsyncResult(NotificationHubManager manager, string scheduledNotificationId, AsyncCallback callback, object state) : base(manager, true, callback, state)
 {
     this.scheduledNotificationId = scheduledNotificationId;
 }
 public NotificationRequestAsyncResult(NotificationHubManager manager, bool needRequestStream, AsyncCallback callback, object state) : base(ConnectConstants.ConnectionInitiateTimeout, callback, state)
 {
     this.TrackingContext   = Microsoft.ServiceBus.Tracing.TrackingContext.GetInstance(Guid.NewGuid(), manager.notificationHubPath);
     this.Manager           = manager;
     this.needRequestStream = needRequestStream;
 }
コード例 #8
0
 public ScheduleNotificationAsyncResult(NotificationHubManager manager, Notification notification, DateTimeOffset scheduledTime, string tagExpression, AsyncCallback callback, object state) : base(manager, true, callback, state)
 {
     this.notification  = notification;
     this.tagExpression = tagExpression;
     this.scheduledTime = scheduledTime;
 }