ScheduledJobAuthorizationManager.IsAuthorized Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.