Skip to content

The PurgeQueues extension clears the specified queues on startup.

License

Notifications You must be signed in to change notification settings

Shuttle/Shuttle.Esb.PurgeQueues

Repository files navigation

Purge Queues

PM> Install-Package Shuttle.Esb.PurgeQueues

The PurgeQueues module for Shuttle.Esb clears the specified queues on startup.

The module will attach the PurgeQueuesObserver to the OnAfterConfigure event of the StartupPipeline and purges the configured queues if the relevant queue implementation has implemented the IPurgeQueue interface. If the relevant queue implementation has not implemented the IPurgeQueue interface the purge is ignore.

Configuration

services.AddPurgeQueues(builder => 
{
	builder.Options.Uris = new List<string>
	{
		"scheme-a:https://configuration-name/queue-a",
		"scheme-b:https://configuration-name/queue-b"
	};
});

The default JSON settings structure is as follows:

{
  "Shuttle": {
    "Modules": {
      "MessageForwarding": {
        "Uris": [
          "scheme-a:https://configuration-name/queue-a",
          "scheme-b:https://configuration-name/queue-b"
		]
	  }
	}
  }
}

About

The PurgeQueues extension clears the specified queues on startup.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages