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
HostBuilderContextThe context for the host builder.
serviceCollection
IServiceCollectionSpecifies the contract for a collection of service descriptors.
- Extension Methods
Constructors
ServiceContextDelegate(object, IntPtr)
public ServiceContextDelegate(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(HostBuilderContext, IServiceCollection, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(HostBuilderContext context, IServiceCollection serviceCollection, AsyncCallback callback, object @object)
Parameters
context
HostBuilderContextserviceCollection
IServiceCollectioncallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual void EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Invoke(HostBuilderContext, IServiceCollection)
public virtual void Invoke(HostBuilderContext context, IServiceCollection serviceCollection)
Parameters
context
HostBuilderContextserviceCollection
IServiceCollection