Class PackageManagerWebService
A service for accessing package manager webs information.
Inheritance
Implements
Namespace: FhirCodeGenBlazor.Services
Assembly: FhirCodeGenBlazor.dll
Syntax
public class PackageManagerWebService : IDisposable, IPackageManagerWebService
Constructors
| Improve this Doc View SourcePackageManagerWebService()
Initializes a new instance of the PackageManagerWebService class.
Declaration
public PackageManagerWebService()
Properties
| Improve this Doc View SourcePublishedReleases
Gets the published releases.
Declaration
public List<FhirPackageCommon.PublishedReleaseInformation> PublishedReleases { get; }
Property Value
| Type | Description |
|---|---|
| List<Microsoft.Health.Fhir.SpecManager.Manager.FhirPackageCommon.PublishedReleaseInformation> |
Methods
| Improve this Doc View SourceDeletePackage(String)
Deletes the package described by directive.
Declaration
public void DeletePackage(string directive)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | directive | The directive. |
Dispose(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. |
GetAllPackageManifests()
Gets all package manifests in this collection.
Declaration
public IEnumerable<PackageCacheRecord> GetAllPackageManifests()
Returns
| Type | Description |
|---|---|
| IEnumerable<PackageCacheRecord> | An enumerator that allows foreach to be used to process all package manifests in this collection. |
Init()
Initializes this object.
Declaration
public void Init()
LoadRequestStatus(String)
State of load request.
Declaration
public PackageLoadStateEnum LoadRequestStatus(string directive)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | directive | The directive. |
Returns
| Type | Description |
|---|---|
| PackageLoadStateEnum | A RequestStateEnum. |
RequestDownload(String, String, out PackageLoadStateEnum)
Request download.
Declaration
public void RequestDownload(string directive, string branchName, out PackageLoadStateEnum requestState)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | directive | The directive. |
| System.String | branchName | Name of the branch. |
| PackageLoadStateEnum | requestState | [out] State of the request. |
RequestLoad(String, out PackageLoadStateEnum)
Request package load.
Declaration
public void RequestLoad(string directive, out PackageLoadStateEnum requestState)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | directive | The directive. |
| PackageLoadStateEnum | requestState |
StateHasChanged()
State has changed.
Declaration
public void StateHasChanged()
TryGetCoreCiPackageDetails(String, out NpmPackageDetails)
Attempts to get core ci package details the NpmPackageDetails from the given string.
Declaration
public bool TryGetCoreCiPackageDetails(string branchName, out NpmPackageDetails details)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | branchName | Name of the branch. |
| NpmPackageDetails | details | [out] The details. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if it succeeds, false if it fails. |
TryGetGuideCiPackageDetails(String, out NpmPackageDetails)
Attempts to get guide ci package details the NpmPackageDetails from the given string.
Declaration
public bool TryGetGuideCiPackageDetails(string branchName, out NpmPackageDetails details)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | branchName | Name of the branch. |
| NpmPackageDetails | details | [out] The details. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if it succeeds, false if it fails. |
TryGetPackageManifest(String, out Nullable<PackageCacheRecord>)
Attempts to get package manifest a PackageCacheRecord? from the given string.
Declaration
public bool TryGetPackageManifest(string directive, out PackageCacheRecord? record)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | directive | The directive. |
| System.Nullable<PackageCacheRecord> | record | [out] The record. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if it succeeds, false if it fails. |
TryGetPackageManifest(String, String, out Nullable<PackageCacheRecord>)
Attempts to get package manifest a PackageCacheRecord? from the given string.
Declaration
public bool TryGetPackageManifest(string packageName, string version, out PackageCacheRecord? record)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | packageName | Name of the package. |
| System.String | version | The version. |
| System.Nullable<PackageCacheRecord> | record | [out] The record. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if it succeeds, false if it fails. |
TryGetRegistryManifests(String, out IEnumerable<RegistryPackageManifest>)
Attempts to get package manifests an IEnumerable<RegistryPackageManifest> from the given string.
Declaration
public bool TryGetRegistryManifests(string packageName, out IEnumerable<RegistryPackageManifest> manifests)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | packageName | Name of the package. |
| IEnumerable<RegistryPackageManifest> | manifests | [out] The manifests. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if it succeeds, false if it fails. |
Events
| Improve this Doc View SourceOnChanged
Occurs when On Changed.
Declaration
public event EventHandler<EventArgs>? OnChanged
Event Type
| Type | Description |
|---|---|
| System.Nullable<EventHandler<EventArgs>> |