共用方式為


ScheduledJobAuthorizationManager.IsAuthorized Method

Definition

Determines whether a particular HttpRequestMessage is authorized to initiate the IScheduledJob identified by the jobName.

public bool IsAuthorized (System.Net.Http.HttpRequestMessage request, string jobName);
abstract member IsAuthorized : System.Net.Http.HttpRequestMessage * string -> bool
override this.IsAuthorized : System.Net.Http.HttpRequestMessage * string -> bool
Public Function IsAuthorized (request As HttpRequestMessage, jobName As String) As Boolean

Parameters

request
HttpRequestMessage

The HttpRequestMessage to evaluate.

jobName
String

The name of the IScheduledJob.

Returns

true if the request is authorized, false otherwise.

Implements

Applies to