/// <summary> /// This method will tell OvrStream to deactivate the input for the title provided. /// </summary> /// <param name="titleId">The ID <see cref="Title"/> to hide.</param> /// <param name="cancellationToken">A cancellation token used to propagate notification that the operation should be canceled.</param> public async Task DeactivateTitleAsync(string titleId, CancellationToken cancellationToken) { cancellationToken.ThrowIfCancellationRequested(); MacroCommand command = new MacroCommand { Event = "deactivate", Title = $"name:{titleId}", }; await InvokeMethodAsync("scheduleCommandXml", new object[] { command.ToString() }, cancellationToken); }