Skip to main content

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
TypeName
ServiceStack.Web.IRequestreq
System.StringaccessRole
System.StringauthSecret
System.Threading.CancellationTokentoken

AssertAccessRole(IRequest, String, String)

View Source
Declaration
[Obsolete("Use AssertAccessRoleAsync")]
public static void AssertAccessRole(IRequest req, string accessRole = null, string authSecret = null)
Parameters
TypeName
ServiceStack.Web.IRequestreq
System.StringaccessRole
System.StringauthSecret

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
TypeName
ServiceStack.Web.IRequestreq
System.StringaccessRole
System.StringauthSecret
System.Threading.CancellationTokentoken