mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-13 05:50:36 +01:00
* Add TIOBE + include SonarAnalyzer.CSharp * . * cp * Copyright © WireMock.Net * more fixes * fix * xpath * if (Matchers == null || !Matchers.Any()) * if (Matchers != null) * ? * . * .
23 lines
584 B
C#
23 lines
584 B
C#
// Copyright © WireMock.Net
|
|
|
|
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);
|
|
}
|
|
} |