コード例 #1
0
 /// <summary>
 /// List Live Outputs
 /// </summary>
 /// <remarks>
 /// Lists the live outputs of a live event.
 /// </remarks>
 /// <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 <LiveOutput> > ListNextAsync(this ILiveOutputsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #2
0
 /// <summary>
 /// List Live Outputs
 /// </summary>
 /// <remarks>
 /// Lists the live outputs of a live event.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the Azure subscription.
 /// </param>
 /// <param name='accountName'>
 /// The Media Services account name.
 /// </param>
 /// <param name='liveEventName'>
 /// The name of the live event, maximum length is 32.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <LiveOutput> > ListAsync(this ILiveOutputsOperations operations, string resourceGroupName, string accountName, string liveEventName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
コード例 #3
0
        public void Initialize(ILiveEventsOperations sourceOperations, ILiveEventsOperations destinationOperations, ServicePrincipalAuth sourceAuth, ServicePrincipalAuth destinationAuth, Miscellaneous miscellaneous, ILiveOutputsOperations sourceLiveOutputOperations, ILiveOutputsOperations destinationLiveOutputOperations)
        {
            Initialize(sourceOperations, destinationOperations, sourceAuth, destinationAuth, miscellaneous);

            _sourceLiveOutputOperations      = sourceLiveOutputOperations;
            _destinationLiveOutputOperations = destinationLiveOutputOperations;
        }
コード例 #4
0
 /// <summary>
 /// Get Live Output
 /// </summary>
 /// <remarks>
 /// Gets a live output.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the Azure subscription.
 /// </param>
 /// <param name='accountName'>
 /// The Media Services account name.
 /// </param>
 /// <param name='liveEventName'>
 /// The name of the live event, maximum length is 32.
 /// </param>
 /// <param name='liveOutputName'>
 /// The name of the live output.
 /// </param>
 public static LiveOutput Get(this ILiveOutputsOperations operations, string resourceGroupName, string accountName, string liveEventName, string liveOutputName)
 {
     return(operations.GetAsync(resourceGroupName, accountName, liveEventName, liveOutputName).GetAwaiter().GetResult());
 }
コード例 #5
0
 /// <summary>
 /// List Live Outputs
 /// </summary>
 /// <remarks>
 /// Lists the live outputs of a live event.
 /// </remarks>
 /// <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 <LiveOutput> ListNext(this ILiveOutputsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
コード例 #6
0
 /// <summary>
 /// Delete Live Output
 /// </summary>
 /// <remarks>
 /// Deletes a live output. Deleting a live output does not delete the asset the
 /// live output is writing to.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the Azure subscription.
 /// </param>
 /// <param name='accountName'>
 /// The Media Services account name.
 /// </param>
 /// <param name='liveEventName'>
 /// The name of the live event, maximum length is 32.
 /// </param>
 /// <param name='liveOutputName'>
 /// The name of the live output.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this ILiveOutputsOperations operations, string resourceGroupName, string accountName, string liveEventName, string liveOutputName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, accountName, liveEventName, liveOutputName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
コード例 #7
0
 /// <summary>
 /// Delete Live Output
 /// </summary>
 /// <remarks>
 /// Deletes a live output. Deleting a live output does not delete the asset the
 /// live output is writing to.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the Azure subscription.
 /// </param>
 /// <param name='accountName'>
 /// The Media Services account name.
 /// </param>
 /// <param name='liveEventName'>
 /// The name of the live event, maximum length is 32.
 /// </param>
 /// <param name='liveOutputName'>
 /// The name of the live output.
 /// </param>
 public static void BeginDelete(this ILiveOutputsOperations operations, string resourceGroupName, string accountName, string liveEventName, string liveOutputName)
 {
     operations.BeginDeleteAsync(resourceGroupName, accountName, liveEventName, liveOutputName).GetAwaiter().GetResult();
 }
コード例 #8
0
 /// <summary>
 /// Create Live Output
 /// </summary>
 /// <remarks>
 /// Creates a new live output.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group within the Azure subscription.
 /// </param>
 /// <param name='accountName'>
 /// The Media Services account name.
 /// </param>
 /// <param name='liveEventName'>
 /// The name of the live event, maximum length is 32.
 /// </param>
 /// <param name='liveOutputName'>
 /// The name of the live output.
 /// </param>
 /// <param name='parameters'>
 /// Live Output properties needed for creation.
 /// </param>
 public static LiveOutput BeginCreate(this ILiveOutputsOperations operations, string resourceGroupName, string accountName, string liveEventName, string liveOutputName, LiveOutput parameters)
 {
     return(operations.BeginCreateAsync(resourceGroupName, accountName, liveEventName, liveOutputName, parameters).GetAwaiter().GetResult());
 }