/// <summary> /// Returns the list of currently active sessions on the Bastion. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='bastionHostName'> /// The name of the Bastion Host. /// </param> /// <param name='sessionIds'> /// The list of sessionids to disconnect. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <BastionSessionState> > DisconnectActiveSessionsAsync(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName, SessionIds sessionIds, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DisconnectActiveSessionsWithHttpMessagesAsync(resourceGroupName, bastionHostName, sessionIds, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }