Return C# diagnostics for the current Net Operation Project source buffer.
using System.Net.Http.Headers;var client = new HttpClient();var request = new HttpRequestMessage{ Method = HttpMethod.Post, RequestUri = new Uri("https://example.com/api/workspace/admin/net-operation-project/source-language/diagnostics"), Content = new StringContent("{ \"RevisionId\": \"example\", \"Path\": \"example\", \"Content\": \"example\", \"SchemaContractHash\": \"example\" }") { Headers = { ContentType = new MediaTypeHeaderValue("application/json") } }};using (var response = await client.SendAsync(request)){ response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body);}const url = 'https://example.com/api/workspace/admin/net-operation-project/source-language/diagnostics';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"RevisionId":"example","Path":"example","Content":"example","SchemaContractHash":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/workspace/admin/net-operation-project/source-language/diagnostics \ --header 'Content-Type: application/json' \ --data '{ "RevisionId": "example", "Path": "example", "Content": "example", "SchemaContractHash": "example" }'Authorizations
Section titled “Authorizations”- None
Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional access token for clients that cannot set Authorization headers. Prefer Authorization: Bearer <token> when possible.
Request Body
Section titled “Request Body”Request C# diagnostics for a Net Operation Project source buffer.
object
Optional source revision id. When omitted, the working revision is used, then the current revision.
Normalized relative source path.
Current editor buffer content for the requested path.
Optional schema contract hash read with the editor buffer. A mismatch rejects a stale language request.
Examplegenerated
{ "RevisionId": "example", "Path": "example", "Content": "example", "SchemaContractHash": "example"}Request C# diagnostics for a Net Operation Project source buffer.
object
Optional source revision id. When omitted, the working revision is used, then the current revision.
Normalized relative source path.
Current editor buffer content for the requested path.
Optional schema contract hash read with the editor buffer. A mismatch rejects a stale language request.
Examplegenerated
{ "RevisionId": "example", "Path": "example", "Content": "example", "SchemaContractHash": "example"}Request C# diagnostics for a Net Operation Project source buffer.
object
Optional source revision id. When omitted, the working revision is used, then the current revision.
Normalized relative source path.
Current editor buffer content for the requested path.
Optional schema contract hash read with the editor buffer. A mismatch rejects a stale language request.
Examplegenerated
{ "RevisionId": "example", "Path": "example", "Content": "example", "SchemaContractHash": "example"}Responses
Section titled “Responses”OK
object
C# diagnostics result for a Net Operation Project source buffer.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Compiler diagnostics.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
External package reference resolution status for a Net Operation Project language response.
object
Number of package references considered for the language snapshot.
Number of metadata references resolved from package compile assets.
Optional localized status message.
Effective bounded-processing limits for Net Operation Project source authoring.
object
Maximum number of files in one source revision.
Maximum UTF-8 byte count of one source file.
Maximum combined UTF-8 byte count of a source revision.
Maximum number of file changes in one manual edit request.
Maximum server processing time for one diagnostics request.
Maximum server processing time for one manual edit request.
Maximum concurrent Roslyn diagnostics analyses per host process.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "Diagnostics": [ { "Severity": 0, "Origin": 0 } ], "DependencyStatus": { "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Bad Request
object
C# diagnostics result for a Net Operation Project source buffer.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Compiler diagnostics.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
External package reference resolution status for a Net Operation Project language response.
object
Number of package references considered for the language snapshot.
Number of metadata references resolved from package compile assets.
Optional localized status message.
Effective bounded-processing limits for Net Operation Project source authoring.
object
Maximum number of files in one source revision.
Maximum UTF-8 byte count of one source file.
Maximum combined UTF-8 byte count of a source revision.
Maximum number of file changes in one manual edit request.
Maximum server processing time for one diagnostics request.
Maximum server processing time for one manual edit request.
Maximum concurrent Roslyn diagnostics analyses per host process.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "Diagnostics": [ { "Severity": 0, "Origin": 0 } ], "DependencyStatus": { "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Forbidden
object
Examplegenerated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}Not Found
object
C# diagnostics result for a Net Operation Project source buffer.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Compiler diagnostics.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
External package reference resolution status for a Net Operation Project language response.
object
Number of package references considered for the language snapshot.
Number of metadata references resolved from package compile assets.
Optional localized status message.
Effective bounded-processing limits for Net Operation Project source authoring.
object
Maximum number of files in one source revision.
Maximum UTF-8 byte count of one source file.
Maximum combined UTF-8 byte count of a source revision.
Maximum number of file changes in one manual edit request.
Maximum server processing time for one diagnostics request.
Maximum server processing time for one manual edit request.
Maximum concurrent Roslyn diagnostics analyses per host process.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "Diagnostics": [ { "Severity": 0, "Origin": 0 } ], "DependencyStatus": { "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Conflict
object
C# diagnostics result for a Net Operation Project source buffer.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Compiler diagnostics.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
External package reference resolution status for a Net Operation Project language response.
object
Number of package references considered for the language snapshot.
Number of metadata references resolved from package compile assets.
Optional localized status message.
Effective bounded-processing limits for Net Operation Project source authoring.
object
Maximum number of files in one source revision.
Maximum UTF-8 byte count of one source file.
Maximum combined UTF-8 byte count of a source revision.
Maximum number of file changes in one manual edit request.
Maximum server processing time for one diagnostics request.
Maximum server processing time for one manual edit request.
Maximum concurrent Roslyn diagnostics analyses per host process.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "Diagnostics": [ { "Severity": 0, "Origin": 0 } ], "DependencyStatus": { "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}Service Unavailable
object
C# diagnostics result for a Net Operation Project source buffer.
object
Immutable Net Operation Project source revision.
object
Revision identifier.
Project identifier.
Monotonic revision number.
Optional revision comment.
Canonical source tree checksum.
Optional schema contract hash captured with the revision.
Creation timestamp.
Creating user identifier.
Number of files stored in the revision.
Compiler diagnostics.
One C# diagnostic for a Net Operation Project source buffer.
object
Compiler diagnostic id.
Localized compiler diagnostic message.
Normalized source path when available.
One-based source range for a Net Operation Project language service result.
object
One-based start line number.
One-based start column.
One-based end line number.
One-based end column.
External package reference resolution status for a Net Operation Project language response.
object
Number of package references considered for the language snapshot.
Number of metadata references resolved from package compile assets.
Optional localized status message.
Effective bounded-processing limits for Net Operation Project source authoring.
object
Maximum number of files in one source revision.
Maximum UTF-8 byte count of one source file.
Maximum combined UTF-8 byte count of a source revision.
Maximum number of file changes in one manual edit request.
Maximum server processing time for one diagnostics request.
Maximum server processing time for one manual edit request.
Maximum concurrent Roslyn diagnostics analyses per host process.
object
object
object
object
Example
{ "Data": { "Revision": { "SourceKind": 0, "Status": 0 }, "Diagnostics": [ { "Severity": 0, "Origin": 0 } ], "DependencyStatus": { "Status": 0 } }, "Errors": [ { "Type": 0, "Severity": 0 } ], "Warnings": [ { "Type": 0, "Severity": 0 } ]}