RequestUtils
Assembly: ServiceStack.dll
View Source
Declaration
public static class RequestUtils
Methods
AssertAccessRoleOrDebugModeAsync(IRequest, String, String, CancellationToken)
View Source
Declaration
public static async Task AssertAccessRoleOrDebugModeAsync(IRequest req, string accessRole = null, string authSecret = null, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.String | accessRole |
System.String | authSecret |
System.Threading.CancellationToken | token |
AssertAccessRole(IRequest, String, String)
View Source
Declaration
[Obsolete("Use AssertAccessRoleAsync")]
public static void AssertAccessRole(IRequest req, string accessRole = null, string authSecret = null)
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.String | accessRole |
System.String | authSecret |
AssertAccessRoleAsync(IRequest, String, String, CancellationToken)
View Source
Declaration
public static async Task AssertAccessRoleAsync(IRequest req, string accessRole = null, string authSecret = null, CancellationToken token = default(CancellationToken))
Returns
System.Threading.Tasks.Task
Parameters
Type | Name |
---|---|
ServiceStack.Web.IRequest | req |
System.String | accessRole |
System.String | authSecret |
System.Threading.CancellationToken | token |