Example #1
0
 /// <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);
     }
 }
Example #2
0
 /// <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);
     }
 }
Example #3
0
 public TimerRetention(
     ILogTracer log,
     ITaskOperations taskOps,
     INotificationOperations notificaitonOps,
     IJobOperations jobOps,
     IReproOperations reproOps)
 {
     _log             = log;
     _taskOps         = taskOps;
     _notificaitonOps = notificaitonOps;
     _jobOps          = jobOps;
     _reproOps        = reproOps;
 }
Example #4
0
 /// <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());
 }
Example #5
0
 /// <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());
 }
Example #6
0
 /// <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);
     }
 }
Example #7
0
 /// <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());
 }
Example #8
0
 /// <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());
 }
Example #9
0
 public NotificationOperationsTestHooks(ILogTracer log, IConfigOperations configOps, INotificationOperations notificationOps)
 {
     _log             = log.WithTag("TestHooks", nameof(NotificationOperationsTestHooks));
     _configOps       = configOps;;
     _notificationOps = notificationOps;
 }
Example #10
0
 public QueueFileChanges(ILogTracer log, IStorage storage, INotificationOperations notificationOperations)
 {
     _log     = log;
     _storage = storage;
     _notificationOperations = notificationOperations;
 }