I am currently adding video services to an application using Azure media services and Azure Storage with C# web api. The upload process seems to be working correctly and I can see where the job completes successfully from the admin. console.
However, if I run the application under the debugger I see where messages are being added to the queue for actually processing the videos but I never get any messages in the notification queue. I keep reviewing the code but I don't see anything that appears to be off. Has anyone encountered this before or have any idea of what the problem could be? I am currently testing in debug mode with my connection strings set to UseDevelopmentStorage=true
.
// create a NotificationEndPoint queue based on the endPointAddress
string endPointAddress = "queuename";
// setup the notificationEndPoint based on the queue and endPointAddress
this.notificationEndPoint = this._context.NotificationEndPoints.Create(Guid.NewGuid().ToString(), NotificationEndPointType.AzureQueue, endPointAddress);
if (this.notificationEndPoint != null)
{
job.JobNotificationSubscriptions.AddNew(NotificationJobState.All, this.notificationEndPoint);
await job.SubmitAsync().ConfigureAwait(false);
.
.
.
Here is the message object:
public class VideoJobNotificationMessage : AzureQueueMessage
{
// MessageVersion is used for version control.
public string MessageVersion { get; set; }
// Type of the event. Valid values are
// JobStateChange and NotificationEndpointRegistration.
public string EventType { get; set; }
// ETag is used to help the customer detect if
// the message is a duplicate of another message previously sent.
public string ETag { get; set; }
// Time of occurrence of the event.
public string TimeStamp { get; set; }
// Collection of values specific to the event.
public IDictionary<string, object> Properties { get; set; }
}