TypeExtensions

Namespace: ASPSecurityKit.ServiceStack
Assembly: ASPSecurityKit.ServiceStack.dll

Summary

Defines utility methods.

Methods

IsDefined<TAttribute>(type,method,inherit)

Summary

Gets a value indicating whether the type is annotated with TAtribute for the specified HTTP method.

Returns

true if the type is annotated with TAtribute for the specified HTTP method; otherwise, false.

Parameters
Name Type Description
type System.Type The type to search on.
method ServiceStack.ApplyTo The specific HTTP method that the TAttribute applies to.
inherit System.Boolean Indicates whether to consider inherited attributes as well.
Generic Types
Name Description
TAttribute The attribute type to locate.

GetCustomAttribute<TAttribute>(type,method,inherit)

Summary

Gets the first TAtribute defined on the type for the specified HTTP method.

Returns

The first TAtribute defined on the type for the specified HTTP method.

Parameters
Name Type Description
type System.Type The type to search on.
method ServiceStack.ApplyTo The specific HTTP method that the TAttribute applies to.
inherit System.Boolean Indicates whether to consider inherited attributes as well.
Generic Types
Name Description
TAttribute The attribute type to locate.