Table of Contents

Class RabbitMQHost

Namespace
Steeltoe.Messaging.RabbitMQ.Host
Assembly
Steeltoe.Messaging.RabbitMQ.dll
public sealed class RabbitMQHost : IHost, IDisposable
Inheritance
RabbitMQHost
Implements
Inherited Members

Constructors

RabbitMQHost(IHost)

public RabbitMQHost(IHost host)

Parameters

host IHost

Properties

Services

Gets the services configured for the program (for example, using HostBuilder.ConfigureServices(Action)).

public IServiceProvider Services { get; }

Property Value

IServiceProvider

Methods

CreateDefaultBuilder()

public static IHostBuilder CreateDefaultBuilder()

Returns

IHostBuilder

CreateDefaultBuilder(string[])

public static IHostBuilder CreateDefaultBuilder(string[] args)

Parameters

args string[]

Returns

IHostBuilder

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

StartAsync(CancellationToken)

Starts the IHostedService objects configured for the program. The application will run until interrupted or until IHostApplicationLifetime.StopApplication() is called.

public Task StartAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Used to abort program start.

Returns

Task

A Task that will be completed when the IHost starts.

StopAsync(CancellationToken)

Attempts to gracefully stop the program.

public Task StopAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Used to indicate when stop should no longer be graceful.

Returns

Task

A Task that will be completed when the IHost stops.