private void OnShutdown() { _rabbitEndpoint.StopListening(); }
private static void SigTermEventHandler(AssemblyLoadContext obj) { Log.Information("Unloading..."); _rabbitEndpoint.StopListening(); _pipeline.Close(); }