Table of Contents

Class StreamHost

Namespace
Steeltoe.Stream.StreamHost
Assembly
Steeltoe.Stream.StreamBase.dll
public sealed class StreamHost : IHost, IDisposable
Inheritance
StreamHost
Implements
Inherited Members
Extension Methods

Constructors

StreamHost(IHost)

public StreamHost(IHost host)

Parameters

host IHost

Properties

Services

The programs configured services.

public IServiceProvider Services { get; }

Property Value

IServiceProvider

Methods

CreateDefaultBuilder<T>()

public static IHostBuilder CreateDefaultBuilder<T>()

Returns

IHostBuilder

Type Parameters

T

CreateDefaultBuilder<T>(string[])

public static IHostBuilder CreateDefaultBuilder<T>(string[] args)

Parameters

args string[]

Returns

IHostBuilder

Type Parameters

T

Dispose()

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

public void Dispose()

StartAsync(CancellationToken)

Start the program.

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.