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; }
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; }
public GetRegistrationCountsAsyncResult(NotificationHubManager manager, string tag, AsyncCallback callback, object state) : base(manager, false, callback, state) { this.tag = tag; base.Start(); }
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; }
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; }
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; }