Table of Contents

Method SetObject

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

SetObject(object)

Searches for all instance and static methods that are marked with an attribute of type RouteAttribute in the specified object and creates routes for these methods.

public void SetObject(object attrClassInstance)

Parameters

attrClassInstance object

The instance of the class where the methods are. The routing methods must be marked with any RouteAttribute.

Exceptions

Exception

An exception is thrown when a method has an erroneous signature.

SetObject(Type)

Searches for all instance and static methods that are marked with an attribute of type RouteAttribute in the specified object and creates routes for these methods.

public void SetObject(Type attrClassType)

Parameters

attrClassType Type

The type of the class where the methods are. The routing methods must be marked with any RouteAttribute.

Exceptions

Exception

An exception is thrown when a method has an erroneous signature.

SetObject<TObject>()

Searches for all instance and static methods that are marked with an attribute of type RouteAttribute in the specified object and creates routes for these methods.

public void SetObject<TObject>()

Type Parameters

TObject

The type of the class where the methods are. The routing methods must be marked with any RouteAttribute.

Exceptions

Exception

An exception is thrown when a method has an erroneous signature.