public static async Task Run( [QueueTrigger("events", Connection = "AzureStorage")] EventPublishedNotification myQueueItem, ILogger log, [Inject] IHandlerFactory factory) { await factory.Dispatch(myQueueItem); }