Freigeben über


Reviews.CreateJobWithHttpMessagesAsync Methode

Definition

Eine Auftrags-ID wird für den inhalt zurückgegeben, der auf diesem Endpunkt veröffentlicht wird.

Sobald der Inhalt anhand des Workflows ausgewertet wurde, wird die Überprüfung basierend auf dem Workflowausdruck erstellt oder ignoriert.

<h3-Rückrufschemas>< /h3>

<p><h4>CallBack-Beispiel< für den Auftragsabschluss/h4><br/>

{<br/> "JobId": "<Job ID,br></> "ReviewId": "<Review ID, , wenn der Auftrag zu einer Überprüfung geführt hat, die erstellt> wurde",<br/> "WorkFlowId": "default",<br/> "Status": "<Dies ist eine von Complete, InProgress, Error>",<br/> "ContentType": "Image",<br/> "ContentId": "<Dies ist die ContentId, die bei der Eingabe> angegeben wurde",<br/> "CallBackType": "Job",<br/> "Metadata": {<br/> "adultscore": " 0.xxx",<br/> "a": "False",<br/> "racyscore": "0.xxx",<br/> "r": "True"<br/> }<br/> }<br/>

</p><p><h4>Review Completion CallBack Sample</h4><br/>

{ "ReviewId": "< Review Id>",<br/> "ModifiedOn": "2016-10-11T22:36:32.9934851Z",<br/> "ModifiedBy": "<Name of the Reviewer>",<br/> "CallBackType": "Review",<br/> "ContentId": "<The ContentId that was specified input>",<br/> "Metadata": {<br/> "adultscore": "0.xxx", "a": "False",<br/> "racyscore": "0.xxx",<br/> "r": "True"<br/> },<br/> "ReviewerResultTags": {<br/> "a": " False",<br/> "r": "True"<br/> }<br/> }<br/>

</p>.

public System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.JobId>> CreateJobWithHttpMessagesAsync (string teamName, string contentType, string contentId, string workflowName, string jobContentType, Microsoft.Azure.CognitiveServices.ContentModerator.Models.Content content, string callBackEndpoint = default, System.Collections.Generic.Dictionary<string,System.Collections.Generic.List<string>> customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateJobWithHttpMessagesAsync : string * string * string * string * string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.Content * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.JobId>>
override this.CreateJobWithHttpMessagesAsync : string * string * string * string * string * Microsoft.Azure.CognitiveServices.ContentModerator.Models.Content * string * System.Collections.Generic.Dictionary<string, System.Collections.Generic.List<string>> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Rest.HttpOperationResponse<Microsoft.Azure.CognitiveServices.ContentModerator.Models.JobId>>
Public Function CreateJobWithHttpMessagesAsync (teamName As String, contentType As String, contentId As String, workflowName As String, jobContentType As String, content As Content, Optional callBackEndpoint As String = Nothing, Optional customHeaders As Dictionary(Of String, List(Of String)) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of HttpOperationResponse(Of JobId))

Parameter

teamName
String

Ihr Teamname.

contentType
String

Bild, Text oder Video. Mögliche Werte: "Image", "Text", "Video"

contentId
String

ID/Name, um den übermittelten Inhalt zu identifizieren.

workflowName
String

Workflowname, den Sie aufrufen möchten.

jobContentType
String

Der Inhaltstyp. Mögliche Werte: "application/json", "image/jpeg"

content
Content

Auszuwertende Inhalte.

callBackEndpoint
String

Rückrufendpunkt für das Veröffentlichen des Ergebnisses des Erstellenauftrags.

customHeaders
Dictionary<String,List<String>>

Header, die der Anforderung hinzugefügt werden.

cancellationToken
CancellationToken

Das Abbruchtoken.

Gibt zurück

Implementiert

Ausnahmen

Wird ausgelöst, wenn der Vorgang einen ungültigen status Code zurückgegeben hat.

Wird ausgelöst, wenn die Antwort nicht deserialisiert werden kann

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Wird ausgelöst, wenn ein erforderlicher Parameter NULL ist

Gilt für: