Table of Contents

Delegate ServiceContextDelegate

Namespace
nanoFramework.Hosting
Assembly
nanoFramework.Hosting.dll

Represents a function that can process a service.

public delegate void ServiceContextDelegate(HostBuilderContext context, IServiceCollection serviceCollection)

Parameters

context HostBuilderContext

The context for the host builder.

serviceCollection IServiceCollection

Specifies the contract for a collection of service descriptors.

Extension Methods

Constructors

ServiceContextDelegate(object, IntPtr)

public ServiceContextDelegate(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(HostBuilderContext, IServiceCollection, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(HostBuilderContext context, IServiceCollection serviceCollection, AsyncCallback callback, object @object)

Parameters

context HostBuilderContext
serviceCollection IServiceCollection
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(HostBuilderContext, IServiceCollection)

public virtual void Invoke(HostBuilderContext context, IServiceCollection serviceCollection)

Parameters

context HostBuilderContext
serviceCollection IServiceCollection