Sisk

Method

Router.MapInstance

Namespace
Sisk.Core.Routing
Assembly
Sisk.Core.dll

MapInstance(object) #

Maps route methods from an object instance.

C#
[RequiresUnreferencedCode("This method requires access to unreferenced code, which may break AOT compilation and trimming. Use the SetObject(Type, Object) or SetObject<TObject>(TObject) overloads instead.")]
public void MapInstance(object instance)

Parameters #

instance object

The instance whose route methods will be mapped.

MapInstance<TInstance>() #

Maps route methods from a new instance of TInstance.

C#
public void MapInstance<TInstance>() where TInstance : notnull, new()

Type Parameters #

TInstance

The type whose route methods will be mapped.

Type to search the documentation and the API reference.