Orsak.Remoting Namespace
| Type/Module | Description |
|
Checks an IWireEncoding: that the values of every kind of type WireMapping supports cross it and come back the same, and that two encodings of a content type read what the other writes. Each check returns its failures, empty if it passes, for a test of any framework to assert on. |
|
|
A frame of a streamed response: an item, the end of the stream, or its failure on the server. |
|
|
The frames of a streamed response: a byte of their kind, the length of their content, as 4 bytes, the most significant first, and the content. An item's content is the item, written by the member's format; a failure's is a message, in UTF-8. The end has none, so a response cut short is told from one that ended. |
|
|
Generates, with Orsak.Myriad, a proxy for the interface: a class implementing it by calling a
RemoteClient, named after the interface without its leading I, with Proxy, such as
|
|
|
Sends with an HttpClient. Credentials, such as a bearer token, go in its default headers, or in a handler of its own, which can ask for a token on each request. |
|
|
The body of a response, read as it comes, in chunks, such as a stream's frames. |
|
|
Sends a request and returns the body of a successful response, raising RemoteCallException otherwise, or OperationCanceledException once the token is cancelled, which aborts the request. |
|
|
Writes the arguments of one member to the wire, and reads them back, in one format. |
|
|
Writes the values of one type to the wire, and reads them back, in one format. |
|
|
The bytes of a self-describing format: WireValues to bytes and back. Given to a WireFormat, it is a format a client and a server can use, with the values of F# types mapped as for every other encoding. |
|
|
How values cross the wire: what a remote call's arguments and result are written as, and read from. JSON is one; a binary format, such as MessagePack, would be another. |
|
|
Writes and parses JSON text, in plain F#, so .NET and Fable read and write it the same way. |
|
|
Orsak.Remoting's JSON, written and parsed in plain F#, so it is the same text on .NET and Fable. Its content type,
|
|
|
Orsak.Remoting's JSON, JsonEncoding, written the same way on .NET and Fable. |
|
|
Raised when a remote call fails, for a reason that isn't the contract's: the server is unreachable, or answers with an error status, such as 401 to a caller it doesn't know. The contract's own errors are in its Result. |
|
|
Calls the members of remote interfaces on a server, at |
|
|
A member of a remote interface, with the codecs of its arguments and result, made once: what a proxy calls. |
|
|
Reads a RemoteStream the same way on .NET and Fable. |
|
|
The items a remote member streams, as they come: an |
|
|
|
|
|
A format of a self-describing encoding, such as JSON or MessagePack: the values of F# types mapped to
WireValues, by WireMapping, which the encoding writes as
bytes. A member's arguments are an |
|
|
Compiles WireMappings for F# types, public or not, by reflection on their types, which .NET and Fable both have for F# types: the same for every encoding, so a contract's types mean the same in each. A mapping is compiled once, for every value it converts after, and compiling it fails for a type it doesn't support, so that a client or server finds out when it starts, not on its first call. |
|
|
Converts the values of one type to WireValues and back, compiled once for the type,
by |
|
|
A value as the self-describing formats have it, such as JSON, MessagePack and CBOR: what Orsak.Remoting turns the values of F# types into, with WireMapping, and an IWireEncoding turns into bytes. |
Orsak