-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
626cee0
commit 163412d
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# OpenMatch C# API | ||
|
||
[![Nuget](https://img.shields.io/nuget/dt/OpenMatch.Api)](https://www.nuget.org/packages/OpenMatch.Api/) [![Azure Pipelines](https://img.shields.io/azure-devops/build/arsenstudio/4f5c7cb3-18f7-4b44-ab1e-c9a6a6e38873/5)](https://arsenstudio.visualstudio.com/OpenMatch%20CSharp/) | ||
|
||
|
||
# Usage | ||
|
||
```sh | ||
dotnet add package OpenMatch.Api | ||
``` | ||
|
||
## Getting started | ||
|
||
### Client | ||
|
||
```c# | ||
// Create the grpc. | ||
using var channel = GrpcChannel.ForAddress("https://localhost:5001"); | ||
|
||
var frontendClient = new OpenMatch.FrontendService.FrontendServiceClient(channel); | ||
|
||
await frontendClient.CreateTicketAsync(request); | ||
``` | ||
|
||
There is others services: | ||
- `OpenMatch.FrontendService.FrontendServiceClient` | ||
- `OpenMatch.BackendService.BackendServiceClient` | ||
- `OpenMatch.EvaluatorService.EvaluatorServiceClient` | ||
- `OpenMatch.MatchFunction.MatchFunctionServiceClient` | ||
- `OpenMatch.QueryService.QueryServiceClient` | ||
|
||
|
||
See [Open Match API References](https://open-match.dev/site/docs/reference/api/) for more informations. | ||
|
||
|
||
## Contributing | ||
|
||
Please see [CONTRIBUTING.md](CONTRIBUTING.md) for instructions on how to contribute. |