Beispiel #1
0
 /// <summary>
 /// Called when a notification is received.
 /// </summary>
 /// <param name="notification">The notification that was received.</param>
 public void OnReceive(HttpPostNotification notification)
 {
     Assert.IsNotNull(notification);
     Assert.AreEqual(1234, notification.Job.Id);
     Assert.AreEqual("web", notification.Output.Label);
     receiverHandle.Set();
 }
Beispiel #2
0
        public void NotificationHttpPostNotificationFromJson()
        {
            HttpPostNotification notification = JsonConvert.DeserializeObject <HttpPostNotification>(NotificationJson);

            Assert.AreEqual(JobState.Processing, notification.Job.State);
            Assert.AreEqual("http://example.com/file.mp4", notification.Output.Url);
        }
 /// <summary>
 /// Called when a notification is received.
 /// </summary>
 /// <param name="notification">The notification that was received.</param>
 public void OnReceive(HttpPostNotification notification)
 {
     Assert.IsNotNull(notification);
     Assert.AreEqual(1234, notification.Job.Id);
     Assert.AreEqual("web", notification.Output.Label);
     receiverHandle.Set();
 }