Skip to content

Latest commit

 

History

History
50 lines (37 loc) · 1.58 KB

README.md

File metadata and controls

50 lines (37 loc) · 1.58 KB

BlueWSClient.NET

A client library in .NET for BlueWS library. Includes logic and utility for calling BlueWS web service actions.

Release NuGet

Documentation & Tutorials

You can read the documentation and tutorials under the Wiki.

Short examples

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");

Requirements

.NET Standard 2.0

Author and License

Gregor Mohorko (www.mohorko.info)

Copyright (c) 2023 Gregor Mohorko

Apache License 2.0