Method SetObject
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
attrClassInstanceobjectThe 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
attrClassTypeTypeThe type of the class where the methods are. The routing methods must be marked with any RouteAttribute.
SetObject(Type, 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(Type attrClassType, object instance)
Parameters
attrClassTypeTypeThe type of the class where the methods are. The routing methods must be marked with any RouteAttribute.
instanceobjectThe instance of the object where the route methods are.
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
TObjectThe 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>(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>(TObject instance) where TObject : notnull
Parameters
instanceTObjectThe instance of
TObjectto invoke the instance methods on.
Type Parameters
TObjectThe 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.
English
Русский
Português
Español
Deutsch
中文 (简体)
日本語