Created
October 15, 2023 10:20
-
-
Save telfaria/f893a082525f377a58eb73d3d418f816 to your computer and use it in GitHub Desktop.
MagicOnion Client Connection
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
private GrpcChannel channel; | |
private IMagicOnionAppService client; | |
private async void connect() | |
{ | |
channel = GrpcChannel.ForAddress("http://localhost:5000"); | |
client = MagicOnionClient.Create<IMagicOnionAppService>(channel); | |
txtResult.AppendText("Connect: http://localhost:5000 \r\n"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment