/// <summary> /// Lists a collection of properties defined within a service instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='top'> /// Number of records to return. /// </param> /// <param name='skip'> /// Number of records to skip. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <NotificationContract> > ListByServiceAsync(this INotificationOperations operations, string resourceGroupName, string serviceName, int?top = default(int?), int?skip = default(int?), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServiceWithHttpMessagesAsync(resourceGroupName, serviceName, top, skip, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Create or Update API Management publisher notification. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='notificationName'> /// Notification Name Identifier. Possible values include: /// 'RequestPublisherNotificationMessage', /// 'PurchasePublisherNotificationMessage', /// 'NewApplicationNotificationMessage', 'BCC', /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', /// 'QuotaLimitApproachingPublisherNotificationMessage' /// </param> /// <param name='ifMatch'> /// ETag of the Entity. Not required when creating an entity, but required when /// updating an entity. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <NotificationContract> CreateOrUpdateAsync(this INotificationOperations operations, string resourceGroupName, string serviceName, string notificationName, string ifMatch = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, serviceName, notificationName, ifMatch, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
public TimerRetention( ILogTracer log, ITaskOperations taskOps, INotificationOperations notificaitonOps, IJobOperations jobOps, IReproOperations reproOps) { _log = log; _taskOps = taskOps; _notificaitonOps = notificaitonOps; _jobOps = jobOps; _reproOps = reproOps; }
/// <summary> /// Gets the details of the Notification specified by its identifier. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='notificationName'> /// Notification Name Identifier. Possible values include: /// 'RequestPublisherNotificationMessage', /// 'PurchasePublisherNotificationMessage', /// 'NewApplicationNotificationMessage', 'BCC', /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', /// 'QuotaLimitApproachingPublisherNotificationMessage' /// </param> public static NotificationContract Get(this INotificationOperations operations, string resourceGroupName, string serviceName, string notificationName) { return(operations.GetAsync(resourceGroupName, serviceName, notificationName).GetAwaiter().GetResult()); }
/// <summary> /// Lists a collection of properties defined within a service instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='top'> /// Number of records to return. /// </param> /// <param name='skip'> /// Number of records to skip. /// </param> public static IPage <NotificationContract> ListByService(this INotificationOperations operations, string resourceGroupName, string serviceName, int?top = default(int?), int?skip = default(int?)) { return(operations.ListByServiceAsync(resourceGroupName, serviceName, top, skip).GetAwaiter().GetResult()); }
/// <summary> /// Lists a collection of properties defined within a service instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <NotificationContract> > ListByServiceNextAsync(this INotificationOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServiceNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Lists a collection of properties defined within a service instance. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <NotificationContract> ListByServiceNext(this INotificationOperations operations, string nextPageLink) { return(operations.ListByServiceNextAsync(nextPageLink).GetAwaiter().GetResult()); }
/// <summary> /// Create or Update API Management publisher notification. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='serviceName'> /// The name of the API Management service. /// </param> /// <param name='notificationName'> /// Notification Name Identifier. Possible values include: /// 'RequestPublisherNotificationMessage', /// 'PurchasePublisherNotificationMessage', /// 'NewApplicationNotificationMessage', 'BCC', /// 'NewIssuePublisherNotificationMessage', 'AccountClosedPublisher', /// 'QuotaLimitApproachingPublisherNotificationMessage' /// </param> /// <param name='ifMatch'> /// ETag of the Entity. Not required when creating an entity, but required when /// updating an entity. /// </param> public static NotificationContract CreateOrUpdate(this INotificationOperations operations, string resourceGroupName, string serviceName, string notificationName, string ifMatch = default(string)) { return(operations.CreateOrUpdateAsync(resourceGroupName, serviceName, notificationName, ifMatch).GetAwaiter().GetResult()); }
public NotificationOperationsTestHooks(ILogTracer log, IConfigOperations configOps, INotificationOperations notificationOps) { _log = log.WithTag("TestHooks", nameof(NotificationOperationsTestHooks)); _configOps = configOps;; _notificationOps = notificationOps; }
public QueueFileChanges(ILogTracer log, IStorage storage, INotificationOperations notificationOperations) { _log = log; _storage = storage; _notificationOperations = notificationOperations; }