public static void Execute(this IBlobNotificationStrategy strategy) { if (strategy == null) { throw new ArgumentNullException("strategy"); } strategy.ExecuteAsync(CancellationToken.None).GetAwaiter().GetResult(); }
public static void Register(this IBlobNotificationStrategy strategy, IStorageBlobContainer container, ITriggerExecutor <IStorageBlob> triggerExecutor) { if (strategy == null) { throw new ArgumentNullException("strategy"); } strategy.RegisterAsync(container, triggerExecutor, CancellationToken.None).GetAwaiter().GetResult(); }