public void Setup() { using (SqlConnection connection = new SqlConnection(connectionString)) { connection.Open(); QueueDeletion.DeleteQueuesForEndpoint(connection, schema, endpointName); QueueDeletion.DeleteQueuesForEndpoint(connection, schema, errorQueueName); } }
public void DeleteQueuesForEndpoint() { string connectionString = @"Data Source=.\SQLEXPRESS;Initial Catalog=samples;Integrated Security=True"; using (SqlConnection sqlConnection = new SqlConnection(connectionString)) { sqlConnection.Open(); QueueDeletion.DeleteQueuesForEndpoint( connection: sqlConnection, schema: "dbo", endpointName: "myendpoint"); } }
public async Task Setup() { using (var connection = new SqlConnection(connectionString)) { await connection.OpenAsync() .ConfigureAwait(false); await QueueDeletion.DeleteQueuesForEndpoint(connection, schema, endpointName) .ConfigureAwait(false); await QueueDeletion.DeleteQueuesForEndpoint(connection, schema, errorQueueName) .ConfigureAwait(false); } }
public void DeleteQueuesForEndpoint() { QueueDeletion.DeleteQueuesForEndpoint( uri: "amqp://*****:*****@localhost:5672", endpointName: "myendpoint"); QueueDeletion.DeleteQueue( uri: "amqp://*****:*****@localhost:5672", queueName: "error"); QueueDeletion.DeleteQueue( uri: "amqp://*****:*****@localhost:5672", queueName: "audit"); }
public async Task DeleteQueuesForEndpoint() { var connectionString = @"Data Source=.\SQLEXPRESS;Initial Catalog=samples;Integrated Security=True"; using (var sqlConnection = new SqlConnection(connectionString)) { await sqlConnection.OpenAsync() .ConfigureAwait(false); await QueueDeletion.DeleteQueuesForEndpoint( connection : sqlConnection, schema : "dbo", endpointName : "myendpoint") .ConfigureAwait(false); } }
public void DeleteSharedQueues() { string connectionString = @"Data Source=.\SQLEXPRESS;Initial Catalog=samples;Integrated Security=True"; using (SqlConnection sqlConnection = new SqlConnection(connectionString)) { sqlConnection.Open(); QueueDeletion.DeleteQueue( connection: sqlConnection, schema: "dbo", queueName: "audit"); QueueDeletion.DeleteQueue( connection: sqlConnection, schema: "dbo", queueName: "error"); } }
public async Task DeleteSharedQueues() { var connectionString = @"Data Source=.\SQLEXPRESS;Initial Catalog=samples;Integrated Security=True"; using (var sqlConnection = new SqlConnection(connectionString)) { await sqlConnection.OpenAsync() .ConfigureAwait(false); await QueueDeletion.DeleteQueue( connection : sqlConnection, schema : "dbo", queueName : "audit") .ConfigureAwait(false); await QueueDeletion.DeleteQueue( connection : sqlConnection, schema : "dbo", queueName : "error") .ConfigureAwait(false); } }
public void Setup() { QueueDeletion.DeleteQueuesForEndpoint(EndpointName); }
public void Setup() { QueueDeletion.DeleteQueuesForEndpoint("amqp://*****:*****@localhost:5672", endpointName); QueueDeletion.DeleteQueuesForEndpoint("amqp://*****:*****@localhost:5672", errorQueueName); }