mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-14 15:43:33 +01:00
* ProtoBuf
* .
* x
* ---
* x
* fx
* ...
* sc
* ...
* .
* groen
* x
* fix tests
* ok!?
* fix tests
* fix tests
* !
* x
* 6
* .
* x
* ivaluematcher
* transformer
* .
* sc
* .
* mapping
* x
* tra
* com
* ...
* .
* .
* .
* AddProtoDefinition
* .
* set
* grpahj
* .
* .
* IdOrText
* ...
* async
* async2
* .
* t
* nuget
* <PackageReference Include="ProtoBufJsonConverter" Version="0.2.0-preview-04" />
* http version
* tests
* .WithHttpVersion("2")
* <PackageReference Include="ProtoBufJsonConverter" Version="0.2.0" />
* HttpVersionParser
21 lines
554 B
C#
21 lines
554 B
C#
using Greet;
|
|
using Grpc.Net.Client;
|
|
|
|
namespace WireMock.Net.Console.GrpcClient;
|
|
|
|
internal class Program
|
|
{
|
|
static async Task Main(string[] args)
|
|
{
|
|
var channel = GrpcChannel.ForAddress("http://localhost:9093/grpc3", new GrpcChannelOptions
|
|
{
|
|
Credentials = Grpc.Core.ChannelCredentials.Insecure
|
|
});
|
|
|
|
var client = new Greeter.GreeterClient(channel);
|
|
|
|
var reply = await client.SayHelloAsync(new HelloRequest { Name = "stef" });
|
|
|
|
System.Console.WriteLine("Greeting: " + reply.Message);
|
|
}
|
|
} |