Class ServerConnectorWebService
Inheritance
System.Object
ServerConnectorWebService
Namespace: FhirCodeGenBlazor.Services
Assembly: FhirCodeGenBlazor.dll
Syntax
public class ServerConnectorWebService : IDisposable, IServerConnectorService
Constructors
| Improve this Doc View SourceServerConnectorWebService()
Initializes a new instance of the Spec
Declaration
public ServerConnectorWebService()
Methods
| Improve this Doc View SourceDispose(Boolean)
Releases the unmanaged resources used by the FhirModelComparer.Server.Services.FhirManagerService and optionally releases the managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing | True to release both managed and unmanaged resources; false to release only unmanaged resources. |
Init()
Initializes this object.
Declaration
public void Init()
ParseCapabilityJson(String, String)
Parse capability JSON.
Declaration
public FhirCapabiltyStatement ParseCapabilityJson(string json, string smartConfigJson = "")
Parameters
Type | Name | Description |
---|---|---|
System. |
json | The JSON. |
System. |
smartConfigJson | (Optional) The smart configuration JSON. |
Returns
Type | Description |
---|---|
Fhir |
A FhirCapabiltyStatement. |
TryGetServerInfo(String, Boolean, Dictionary<String, IEnumerable<String>>, out String, out FhirCapabiltyStatement)
Attempts to get server information.
Declaration
public bool TryGetServerInfo(string serverUrl, bool resolveExternal, Dictionary<string, IEnumerable<string>> headers, out string json, out FhirCapabiltyStatement serverInfo)
Parameters
Type | Name | Description |
---|---|---|
System. |
serverUrl | URL of the server. |
System. |
resolveExternal | True to resolve external. |
Dictionary<System. |
headers | The headers. |
System. |
json | [out] The JSON. |
Fhir |
serverInfo | [out] Information describing the server. |
Returns
Type | Description |
---|---|
System. |
True if it succeeds, false if it fails. |
Implements
IHostedService