1using System.Collections.Specialized;
38 public async Task<bool>
TryOpenLink(Uri Link,
bool ShowErrorIfUnable)
40 Dictionary<CaseInsensitiveString, object> Parameters = [];
41 string s = Link.OriginalString.Replace(
"%40",
"@");
44 if (ContractId is
null)
47 int i = ContractId.IndexOf(
'?');
51 NameValueCollection QueryParameters = HttpUtility.ParseQueryString(ContractId[i..]);
53 foreach (
string? Key
in QueryParameters.AllKeys)
58 string? Value = QueryParameters[Key];
62 Parameters[Key] = Value;
65 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.
A strongly-typed resource class, for looking up localized strings, etc.
static string ScannedQrCode
Looks up a localized string similar to Scanned QR Code.
Base class that references services in the app.
static IContractOrchestratorService ContractOrchestratorService
Contract orchestrator service.
static IReportingStringLocalizer Localizer
Localization service
Interface for classes that can open links.