1using System.Collections.Specialized;
38 public async Task<bool>
TryOpenLink(Uri Link,
bool ShowErrorIfUnable)
40 Dictionary<CaseInsensitiveString, object> Parameters = [];
43 if (ContractId is
null)
46 int i = ContractId.IndexOf(
'?');
50 NameValueCollection QueryParameters = HttpUtility.ParseQueryString(ContractId[i..]);
52 foreach (
string? Key
in QueryParameters.AllKeys)
57 string? Value= QueryParameters[Key];
61 Parameters[Key] = Value;
64 ContractId = ContractId[..i];
const string IotSc
The IoT Smart Contract URI Scheme (iotsc)
static ? string RemoveScheme(string Url)
Removes the URI Schema from an URL.
A set of never changing property constants and helpful values.
Opens Smart Contract links.
Grade Supports(Uri Link)
How well the link opener supports a given link
async Task< bool > TryOpenLink(Uri Link, bool ShowErrorIfUnable)
Tries to open a link
SmartContractLink()
Opens Smart Contract links.
Base class that references services in the app.
static IStringLocalizer Localizer
Localization service
static IContractOrchestratorService ContractOrchestratorService
Contract orchestrator service.
Interface for classes that can open links.