Just starting to use SSE with the C# Client. I am using the code seen in the doc (using my own request DTO) and when I call client.ServiceClient.Post, I get this error:
Could not load file or assembly ‘System.Numerics.Vectors, Version=4.1.4.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a’ or one of its dependencies.
I can trap the error and the little console app seems to work ok, sending heartbeats but still…Where that error come from?
I am using the latest version of ServiceStack and .net 4.8
var client = new ServerEventsClient(baseUri, channel=“Home”);
// Wait to receive onConnect event
ServerEventConnect connectMsg = await client.Connect();
// Wait to receive onJoin command event
ServerEventCommand joinMsg = await client.WaitForNextCommand();
// Hold a future task to get notified once a msg has been received
Task msgTask = client1.WaitForNextMessage();
// Send a Web Service Request using the built-in JsonServiceClient
client.ServiceClient.Post(new PostChatToChannel {
Channel = client.Channel, // The channel we’re listening on
From = client.SubscriptionId, // Populated after Connect()
Message = “Hello, World!”,
});
// Wait till we receive the chat Msg event we sent earlier
ServerEventMessage msg = await msgTask;