Exemplo n.º 1
0
 /// <summary>
 /// Creates new Filter
 /// </summary>
 /// <param name="name">filter name</param>
 /// <param name="timeRange">streaming time range</param>
 /// <param name="trackConditions">filter track conditions</param>
 /// <param name="firstQuality">first quality</param>
 /// <returns>The created filter.</returns>
 public IStreamingAssetFilter Create(
     string name,
     PresentationTimeRange timeRange,
     IList <FilterTrackSelectStatement> trackConditions,
     FirstQuality firstQuality = null)
 {
     return(AsyncHelper.Wait(CreateAsync(name, timeRange, trackConditions, firstQuality)));
 }
 /// <summary>
 /// Get metrics for a Media Services Channel.
 /// </summary>
 /// <param name="endpointAddress">The Telemetry endpoint address</param>
 /// <param name="storageAccountKey">The Storage account key.</param>
 /// <param name="mediaServicesAccountId">The Media Services account Id.</param>
 /// <param name="channelId">The Channel ID</param>
 /// <param name="start">The start time.</param>
 /// <param name="end">The end time.</param>
 /// <returns>The Channel metrics for the given channel within the given time range.</returns>
 public ICollection <IChannelHeartbeat> GetChannelMetrics(
     string endpointAddress,
     string storageAccountKey,
     string mediaServicesAccountId,
     string channelId,
     DateTime start,
     DateTime end)
 {
     return(AsyncHelper.Wait(GetChannelMetricsAsync(
                                 endpointAddress,
                                 storageAccountKey,
                                 mediaServicesAccountId,
                                 channelId,
                                 start,
                                 end)));
 }
 /// <summary>
 /// Get metrics for a Media Services Streaming EndPoint.
 /// </summary>
 /// <param name="endpointAddress">The Telemetry endpoint address</param>
 /// <param name="storageAccountKey">The Storage account key.</param>
 /// <param name="mediaServicesAccountId">The Media Services account Id.</param>
 /// <param name="streamingEndPointId">The Streaming EndPoint ID</param>
 /// <param name="start">The start time.</param>
 /// <param name="end">The end time.</param>
 /// <returns>The Streaming EndPoint metrics for the given channel within the given time range.</returns>
 public ICollection <IStreamingEndPointRequestLog> GetStreamingEndPointMetrics(
     string endpointAddress,
     string storageAccountKey,
     string mediaServicesAccountId,
     string streamingEndPointId,
     DateTime start,
     DateTime end)
 {
     return(AsyncHelper.Wait(GetStreamingEndPointMetricsAsync(
                                 endpointAddress,
                                 storageAccountKey,
                                 mediaServicesAccountId,
                                 streamingEndPointId,
                                 start,
                                 end)));
 }
 /// <summary>
 /// Create a new channel.
 /// </summary>
 /// <param name="options"> Channel creation options </param>
 /// <returns>The created channel.</returns>
 public IChannel Create(ChannelCreationOptions options)
 {
     return(AsyncHelper.Wait(CreateAsync(options)));
 }
 /// <summary>
 /// Sends create channel operation to the service and returns. Use Operations collection to get operation's status.
 /// </summary>
 /// <param name="options"> Channel creation options </param>
 /// <returns>Operation info that can be used to track the operation.</returns>
 public IOperation SendCreateOperation(ChannelCreationOptions options)
 {
     return(AsyncHelper.Wait(SendCreateOperationAsync(options)));
 }
 /// <summary>
 /// Creates a new streaming endpoint.
 /// </summary>
 /// <param name="options">Streaming endpoint creation options</param>
 /// <returns>The created streaming endpoint.</returns>
 public IStreamingEndpoint Create(StreamingEndpointCreationOptions options)
 {
     return(AsyncHelper.Wait(CreateAsync(options)));
 }
 /// <summary>
 /// Sends create streaming endpoint operation to the service and returns. Use Operations collection to get operation's status.
 /// </summary>
 /// <param name="options">Streaming endpoint creation options</param>
 /// <returns>Operation info that can be used to track the operation.</returns>
 public IOperation SendCreateOperation(StreamingEndpointCreationOptions options)
 {
     return(AsyncHelper.Wait(SendCreateOperationAsync(options)));
 }
 /// <summary>
 /// Hide the currently running slate if any.
 /// </summary>
 public void HideSlate()
 {
     AsyncHelper.Wait(HideSlateAsync());
 }
Exemplo n.º 9
0
 /// <summary>
 /// Stops the channel.
 /// </summary>
 public void Stop()
 {
     AsyncHelper.Wait(StopAsync());
 }
Exemplo n.º 10
0
 /// <summary>
 /// Starts the channel.
 /// </summary>
 public void Start()
 {
     AsyncHelper.Wait(StartAsync());
 }
 /// <summary>
 /// Creates new Program.
 /// </summary>
 /// <param name="options">Program creation options.</param>
 /// <returns>The created program.</returns>
 public IProgram Create(ProgramCreationOptions options)
 {
     return(AsyncHelper.Wait(CreateAsync(options)));
 }
 /// <summary>
 /// Creates new Filter
 /// </summary>
 /// <param name="name">filter name</param>
 /// <param name="timeRange">streaming time range</param>
 /// <param name="trackConditions">filter track conditions</param>
 /// <returns>The created filter.</returns>
 public IStreamingFilter Create(string name, PresentationTimeRange timeRange, IList <FilterTrackSelectStatement> trackConditions)
 {
     return(AsyncHelper.Wait(CreateAsync(name, timeRange, trackConditions)));
 }
 /// <summary>
 /// Ends the ad marker on the channel.
 /// </summary>
 /// <param name="cueId">The cue id of the ad marker to end.</param>
 public void EndAdvertisement(int cueId)
 {
     AsyncHelper.Wait(EndAdvertisementAsync(cueId));
 }
 /// <summary>
 /// Start an Ad marker on the channel.
 /// </summary>
 /// <param name="duration">The duration of the ad marker.</param>
 /// <param name="cueId">optional cue id to use for the ad marker.</param>
 /// <param name="showSlate">Indicates whether to show slate for the duration of the ad.</param>
 public void StartAdvertisement(TimeSpan duration, int cueId, bool showSlate = true)
 {
     AsyncHelper.Wait(StartAdvertisementAsync(duration, cueId, showSlate));
 }
Exemplo n.º 15
0
 /// <summary>
 /// Sends delete operation to the service and returns. Use Operations collection to get operation's status.
 /// </summary>
 /// <returns>Operation info that can be used to track the operation.</returns>
 public IOperation SendDeleteOperation()
 {
     return(AsyncHelper.Wait(SendDeleteOperationAsync()));
 }
Exemplo n.º 16
0
 /// <summary>
 /// Scales the streaming endpoint.
 /// </summary>
 /// <param name="scaleUnits">New scale units.</param>
 public void Scale(int scaleUnits)
 {
     AsyncHelper.Wait(ScaleAsync(scaleUnits));
 }
 /// <summary>
 /// Updates this instance.
 /// </summary>
 public void Update()
 {
     AsyncHelper.Wait(UpdateAsync());
 }
Exemplo n.º 18
0
 /// <summary>
 /// Resets the channel.
 /// </summary>
 public void Reset()
 {
     AsyncHelper.Wait(ResetAsync());
 }
 /// <summary>
 /// Deletes this instance.
 /// </summary>
 public void Delete()
 {
     AsyncHelper.Wait(DeleteAsync());
 }
 /// <summary>
 /// Create a monitoring configuration object.
 /// </summary>
 /// <param name="notificationEndPointId">notification endpoint id</param>
 /// <param name="settings">component settings</param>
 /// <returns>The monitoring configuration.</returns>
 public IMonitoringConfiguration Create(string notificationEndPointId, ICollection <ComponentMonitoringSetting> settings)
 {
     return(AsyncHelper.Wait(CreateAsync(notificationEndPointId, settings)));
 }
 /// <summary>
 /// Show a slate on the channel.
 /// </summary>
 /// <param name="duration">The duration of time to display the slate</param>
 /// <param name="assetId">Optional asset id to be used for the slate.</param>
 public void ShowSlate(TimeSpan duration, string assetId)
 {
     AsyncHelper.Wait(ShowSlateAsync(duration, assetId));
 }