В настоящее время я добавляю видеосервисы в приложение, используя мультимедийные сервисы Azure и службу хранилища Azure с веб-API C#. Процесс загрузки, кажется, работает правильно, и я вижу, где задание успешно завершается от администратора. приставка.
Однако, если я запускаю приложение под отладчиком, я вижу, где сообщения добавляются в очередь для фактической обработки видео, но я никогда не получаю никаких сообщений в очереди уведомлений. Я продолжаю просматривать код, но не вижу ничего, что могло бы показаться неправильным. Кто-нибудь сталкивался с этим раньше или знает, в чем может быть проблема? В настоящее время я тестирую в режиме отладки с моими строками подключения, установленными на 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; }
}