private object[] GetIncludeFilterClauseDescription(ValueSetFilter filter, uri codeSystem) { return(new object[] { filter.property.value + " ", BootstrapHtml.Abbreviation(filter.op.value.GetDescription(), Html.B(filter.op.value.GetName())), " ", GetCodeWithHyperlink(filter.value.value, codeSystem.value) }); }
public void AddExtensionDefinitions(SDTreeNode treeNode, IStructureDefinitionResolver resolver) { if (!treeNode.GetNodeType().IsExtension()) { return; } ElementDefinitionType[] type = treeNode.GetElementDefinitionType(); if (type == null) { return; } if (type.Length != 1) { return; } if (type.First().profile == null) { return; } if (type.First().profile.Length != 1) { return; } uri profileUri = type.First().profile.First(); if (profileUri == null) { return; } StructureDefinition structureDefinition = resolver.GetStructureDefinition(profileUri.value); if (structureDefinition == null) { throw new Exception("Could not find extension " + profileUri.value); } treeNode.ExtensionDefinition = structureDefinition; }
private XElement GenerateCodeTable(ValueSetCode[] codes, uri codeSystem, bool isExternal) { bool showDefinition = (!isExternal) && (!codes.All(t => string.IsNullOrWhiteSpace(t.Definition))); return(BootstrapHtml.Table(Styles.TableLayoutFixedClassName, new object[] { Html.THead(new object[] { Html.Th(Styles.TableColumn20pcClassName, "Code"), Html.Th(Styles.TableColumn20pcClassName, "Display"), Html.Th(showDefinition ? "Definition" : string.Empty) }), Html.TBody ( codes.Select(t => Html.Tr(new object[] { Html.Td(GetCodeWithHyperlink(t.Code, codeSystem.WhenNotNull(s => s.value))), Html.Td(t.DisplayName ?? (isExternal ? "(see external code system)" : string.Empty)), Html.Td(showDefinition ? t.Definition : string.Empty) })) ) })); }
public static implicit operator Url([NotNull] Uri uri) => new Url(uri);
await SendPostRequestAsync(uri, CreateFormContent(FormData));
await nav.Navigate(uri, args);
PostFormUrlEncoded(uri, data, requestInfo) .Then(DeserializeJson <TResult>);
var response = await RequestNetatmoApi(uri, parameters);
public string sendRequest(IRequest request, uri url) { return(request.sendRequest(url)); }
(uri, clientOptions) => new ShareServiceClient(uri, clientOptions), (uri, sharedKeyCredential, clientOptions) => new ShareServiceClient(uri, sharedKeyCredential, clientOptions),
private XElement GetTypeTableCell(ElementDefinitionType[] types, SDTreeNode associatedTreeNode = null) { string result = string.Empty; if (types == null) { if (associatedTreeNode != null) { ElementDefinition associatedElement = associatedTreeNode.Element; if (associatedElement.nameReference != null) { if (!string.IsNullOrWhiteSpace(associatedElement.nameReference.value)) { return(Html.Td("(see element " + associatedElement.nameReference.value + ")")); } } } return(Html.Td(string.Empty)); } if (types.Length == 0) { return(Html.Td(string.Empty)); } else if (types.Length == 1) { ElementDefinitionType type = types.Single(); if (type.IsReference()) { return(Html.Td(GetReferenceTypeName(new ElementDefinitionType[] { type }))); } else if (type.IsExtension()) { uri profileUri = type.profile.WhenNotNull(t => t.FirstOrDefault()); if (profileUri != null) { StructureDefinition structureDefinition = _resourceFileSet.GetStructureDefinition(profileUri.value); if (structureDefinition.IsComplexExtension()) { return(Html.Td("(complex extension)")); } else { ElementDefinitionType[] elementDefinitionTypes = structureDefinition.GetSimpleExtensionType(); return(GetTypeTableCell(elementDefinitionTypes)); } } else { return(Html.Td(string.Empty)); } } else { return(Html.Td(GetNonReferenceTypeName(type))); } } else { if (types.All(t => t.IsReference())) { return(Html.Td(GetReferenceTypeName(types))); } return(Html.Td(types.Select(t => GetNonReferenceTypeName(t)).Intersperse(" | "))); } }
public string sendRequest(uri url) { // instantiate actual http request here and return response }
=> await testLspServer.InsertTextAsync(uri, changes);
=> DownloadHTML(uri, CancellationToken.None, keyValuePairs);
=> P_TryDeconstructManifestResourceUri(uri: uri, partial: true, assemblyName: out assemblyName, name: out var name, exception: out exception);
ErrorCodes.InvalidImage => throw new RemoteInvalidImageException(uri, error.Description),
default, // file shares don't suppot oauth (uri, azureSasCredential, clientOptions) => new ShareServiceClient(uri, azureSasCredential, clientOptions), () => new ShareClientOptions(serviceVersion));
_ => throw new RemoteImageException(uri, error.ErrorCode, error.Description)
=> new Response <object>((await client.PutAsync(uri, CreateContent(@object)).ConfigureAwait(false)).StatusCode, default);
(uri, sharedKeyCredential, clientOptions) => new ShareServiceClient(uri, sharedKeyCredential, clientOptions), default, // file shares don't suppot oauth (uri, azureSasCredential, clientOptions) => new ShareServiceClient(uri, azureSasCredential, clientOptions),
Private Sub GetPOSTResponse(uri As Uri, data As String, callback As Action(Of Response))
private async Task <(bool hadResult, HttpResponseMessage response)> CheckUrl(Uri uri, string path) => await CheckUrl(new Uri(uri, path));
=> Rpc = new TezosRpc(uri, timeout, chain);