public void Setup()
 {
     using (SqlConnection connection = new SqlConnection(connectionString))
     {
         connection.Open();
         QueueDeletion.DeleteQueuesForEndpoint(connection, schema, endpointName);
         QueueDeletion.DeleteQueuesForEndpoint(connection, schema, errorQueueName);
     }
 }
Exemple #2
0
    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");
    }
Exemple #5
0
    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);
        }
    }
Exemple #6
0
    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");
        }
    }
Exemple #7
0
    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);
        }
    }
Exemple #8
0
 public void Setup()
 {
     QueueDeletion.DeleteQueuesForEndpoint(EndpointName);
 }
 public void Setup()
 {
     QueueDeletion.DeleteQueuesForEndpoint("amqp://*****:*****@localhost:5672", endpointName);
     QueueDeletion.DeleteQueuesForEndpoint("amqp://*****:*****@localhost:5672", errorQueueName);
 }
 public void Setup()
 {
     QueueDeletion.DeleteQueuesForEndpoint("amqp://*****:*****@localhost:5672", endpointName);
     QueueDeletion.DeleteQueuesForEndpoint("amqp://*****:*****@localhost:5672", errorQueueName);
 }