/// <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> public static IPage <BastionActiveSession> BeginGetActiveSessions(this INetworkManagementClient operations, string resourceGroupName, string bastionHostName) { return(operations.BeginGetActiveSessionsAsync(resourceGroupName, bastionHostName).GetAwaiter().GetResult()); }