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 SpecExporterWebService class.
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.Boolean | 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.String | json | The JSON. |
| System.String | smartConfigJson | (Optional) The smart configuration JSON. |
Returns
| Type | Description |
|---|---|
| FhirCapabiltyStatement | 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.String | serverUrl | URL of the server. |
| System.Boolean | resolveExternal | True to resolve external. |
| Dictionary<System.String, IEnumerable<System.String>> | headers | The headers. |
| System.String | json | [out] The JSON. |
| FhirCapabiltyStatement | serverInfo | [out] Information describing the server. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if it succeeds, false if it fails. |
Implements
IHostedService