@@ -46,13 +46,25 @@ More information about the XUMM API, payloads, the API workflow, sending Push no
4646- https://xumm.readme.io/docs
4747
4848
49+ ### Multiple Xumm Applications support
50+ You can create an instance of ` XummSdk ` if your .NET application has to connect to multiple Xumm Applications.
51+ The ` XummSdk ` class contains client properties instead of using the clients by dependency injection.
52+ * ** IXummMiscAppStorageClient** : ` XummSdk.AppStorage `
53+ * ** IXummMiscClient** : ` XummSdk.Miscellaneous `
54+ * ** IXummPayloadClient** : ` XummSdk.Payload `
55+
56+ ``` C#
57+ var xummSdk = new XummSdk (" 00000000-0000-0000-000-000000000000" , " 00000000-0000-0000-000-000000000000" );
58+ var pong = await xummSdk .Miscellaneous .GetPingAsync ();
59+ ```
60+
4961##### IXummMiscClient.GetPingAsync()
5062
5163The ` GetPingAsync() ` method allows you to verify API access (valid credentials) and returns some info on your XUMM APP:
5264
5365``` C#
54- @inject IXummMiscClient _miscClient
55- var pong = await _miscClient .GetPingAsync ();
66+ @inject IXummMiscClient MiscClient
67+ var pong = await MiscClient .GetPingAsync ();
5668```
5769
5870Returns: [ ` XummPong ` ] ( https://github.com/XRPL-Labs/XUMM.NET.SDK/blob/main/XUMM.Net/Models/Misc/XummPong.cs )
@@ -95,8 +107,8 @@ Alternatively, KYC status can be retrieved for an XPRL account address: the addr
95107XUMM when the session KYC was initiated by .
96108
97109```C #
98- @inject IXummMiscClient _miscClient
99- var kycStatus = await _miscClient .GetKycStatusAsync (" rBLomsmaSJ1ttBmS3WPmPpWLAUDKFwiF9Q" );
110+ @inject IXummMiscClient MiscClient
111+ var kycStatus = await MiscClient .GetKycStatusAsync (" rBLomsmaSJ1ttBmS3WPmPpWLAUDKFwiF9Q" );
100112```
101113
102114Returns: [ ` XummKycStatus ` ] ( https://github.com/XRPL-Labs/XUMM.NET.SDK/blob/main/XUMM.Net/Enums/XummKycStatus.cs )
@@ -117,8 +129,8 @@ live from the XRP ledger, as fetched for you by the XUMM backend.
117129[ ![ npm version] ( https://badge.fury.io/js/xrpl-txdata.svg )] ( https://www.npmjs.com/xrpl-txdata )
118130
119131``` C#
120- @inject IXummMiscClient _miscClient
121- var txInfo = await _miscClient .GetTransactionAsync (" 00000000-0000-0000-0000-000000000000" );
132+ @inject IXummMiscClient MiscClient
133+ var txInfo = await MiscClient .GetTransactionAsync (" 00000000-0000-0000-0000-000000000000" );
122134```
123135
124136Returns: [ ` XummTransaction ` ] ( https://github.com/XRPL-Labs/XUMM.NET.SDK/blob/main/XUMM.Net/Models/Misc/XummTransaction.cs )
@@ -132,21 +144,21 @@ Your XUMM APP storage is stored at the XUMM API backend, meaning it persists unt
132144This data is private, and accessible only with your own API credentials. This private JSON data can be used to store credentials / config / bootstrap info / ... for your headless application (eg. POS device).
133145
134146``` C#
135- @inject IXummMiscAppStorageClient _miscAppStorageClient
147+ @inject IXummMiscAppStorageClient MiscAppStorageClient
136148
137- var storageSet = await _miscAppStorageClient .StoreAsync ({name : 'Dominique' , age : 32 , male : true });
149+ var storageSet = await MiscAppStorageClient .StoreAsync ({name : 'Dominique' , age : 32 , male : true });
138150Console .WriteLine (storageSet .Stored )
139151// true
140152
141- var storageGet = await _miscAppStorageClient .GetAsync ()
153+ var storageGet = await MiscAppStorageClient .GetAsync ()
142154Console .WriteLine (storageGet .Data )
143155// { name: 'Dominique', age: 32, male: true }
144156
145- var storageDelete = await _miscAppStorageClient .ClearAsync ()
157+ var storageDelete = await MiscAppStorageClient .ClearAsync ()
146158Console .WriteLine (storageSet .Stored )
147159// true
148160
149- var storageGetAfterDelete = await _miscAppStorageClient .GetAsync ()
161+ var storageGetAfterDelete = await MiscAppStorageClient .GetAsync ()
150162Console .WriteLine (storageGetAfterDelete .Data )
151163// null
152164 ```
@@ -191,23 +203,23 @@ Note! Please don't use _polling_! The XUMM API offers Webhooks (configure your W
191203You can `GetAsync ()` a payload by :
192204- Payload UUID
193205 ```C #
194- @inject IXummPayloadClient _payloadClient
195- var payload = await _payloadClient .GetAsync (" 00000000-0000-0000-0000-000000000000" );
206+ @inject IXummPayloadClient PayloadClient
207+ var payload = await PayloadClient .GetAsync (" 00000000-0000-0000-0000-000000000000" );
196208 ```
197209
198210- Passing a created Payload object (see : [IXummPayloadClient .CreateAsync ](#IXummPayloadClient .CreateAsync ))
199211 ```C #
200- @inject IXummPayloadClient _payloadClient
212+ @inject IXummPayloadClient PayloadClient
201213 var newPayload = new XummPostJsonPayload (" {...}" );
202- var created = await _payloadClient .CreateAsync (newPayload );
203- var payload = await _payloadClient .GetAsync (created );
214+ var created = await PayloadClient .CreateAsync (newPayload );
215+ var payload = await PayloadClient .GetAsync (created );
204216 ```
205217
206218If a payload can 't be fetched (eg. doesn' t exist ), `null ` will be returned , unless a second param (boolean ) is provided to get the SDK to throw an exception in case a payload can 't be retrieved :
207219
208220```C #
209- @inject IXummPayloadClient _payloadClient
210- var payload = await _payloadClient .GetAsync (" 00000000-0000-0000-0000-000000000000" , true );
221+ @inject IXummPayloadClient PayloadClient
222+ var payload = await PayloadClient .GetAsync (" 00000000-0000-0000-0000-000000000000" , true );
211223```
212224
213225
0 commit comments