A client library in .NET for BlueWS library. Includes logic and utility for calling BlueWS web service actions.
You can read the documentation and tutorials under the Wiki.
Creating a web service instance:
var webService = new WebService("https://www.myserver.com/", HttpMethod.Get);
Getting the response for an action TestAction:
var request = new Request<JObject>(webService);
JObject response = request.Call("TestAction");
The above example was synchronous and blocked the calling thread.
The asynchronous call looks like this:
JObject response = await request.CallAsync(nameof(TestActionAsync));
To send parameters to the server, add them to the Parameter
property of the request before calling:
request.Parameters.Add("TheAnswer",42);
JObject response = request.Call();
To get the response in your own type:
var request = new Request<YourClass>(webService);
YourClass response = request.Call("TestAction");
.NET Standard 2.0
Gregor Mohorko (www.mohorko.info)
Copyright (c) 2023 Gregor Mohorko