/// <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> /// Scales the streaming endpoint. /// </summary> /// <param name="scaleUnits">New scale units.</param> public void Scale(int scaleUnits) { AsyncHelper.Wait(ScaleAsync(scaleUnits)); }
/// <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> /// Stops the streaming endpoint. /// </summary> public void Stop() { AsyncHelper.Wait(StopAsync()); }
/// <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())); }
/// <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> /// Starts the streaming endpoint. /// </summary> public void Start() { AsyncHelper.Wait(StartAsync()); }
/// <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)); }
/// <summary> /// Hide the currently running slate if any. /// </summary> public void HideSlate() { AsyncHelper.Wait(HideSlateAsync()); }
/// <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)); }
/// <summary> /// Resets the channel. /// </summary> public void Reset() { AsyncHelper.Wait(ResetAsync()); }