/// <summary>
 /// Returns information about an Azure SQL Database event logs.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IDatabaseOperations.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server on which the
 /// database is hosted.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the Azure SQL Database to be retrieved.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters for the Get Database Event Logs operation.
 /// </param>
 /// <returns>
 /// Contains the response to a Get Database Event Logs request.
 /// </returns>
 public static Task<DatabaseGetEventLogsResponse> GetEventLogsAsync(this IDatabaseOperations operations, string serverName, string databaseName, DatabaseGetEventLogsParameters parameters)
 {
     return operations.GetEventLogsAsync(serverName, databaseName, parameters, CancellationToken.None);
 }
 /// <summary>
 /// Returns information about an Azure SQL Database event logs.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Sql.IDatabaseOperations.
 /// </param>
 /// <param name='serverName'>
 /// Required. The name of the Azure SQL Database Server on which the
 /// database is hosted.
 /// </param>
 /// <param name='databaseName'>
 /// Required. The name of the Azure SQL Database to be retrieved.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters for the Get Database Event Logs operation.
 /// </param>
 /// <returns>
 /// Contains the response to a Get Database Event Logs request.
 /// </returns>
 public static DatabaseGetEventLogsResponse GetEventLogs(this IDatabaseOperations operations, string serverName, string databaseName, DatabaseGetEventLogsParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IDatabaseOperations)s).GetEventLogsAsync(serverName, databaseName, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }