Show / Hide Table of Contents

Class PackageManagerWebService

A service for accessing package manager webs information.

Inheritance
System.Object
PackageManagerWebService
Implements
IHostedService
IPackageManagerWebService
IReadOnlyDictionary<System.String, PackageCacheRecord>
Namespace: FhirCodeGenBlazor.Services
Assembly: FhirCodeGenBlazor.dll
Syntax
public class PackageManagerWebService : IDisposable, IPackageManagerWebService

Constructors

| Improve this Doc View Source

PackageManagerWebService()

Initializes a new instance of the PackageManagerWebService class.

Declaration
public PackageManagerWebService()

Properties

| Improve this Doc View Source

PublishedReleases

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 Source

DeletePackage(String)

Deletes the package described by directive.

Declaration
public void DeletePackage(string directive)
Parameters
Type Name Description
System.String directive

The directive.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

Init()

Initializes this object.

Declaration
public void Init()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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
| Improve this Doc View Source

StateHasChanged()

State has changed.

Declaration
public void StateHasChanged()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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 Source

OnChanged

Occurs when On Changed.

Declaration
public event EventHandler<EventArgs>? OnChanged
Event Type
Type Description
System.Nullable<EventHandler<EventArgs>>

Implements

IHostedService
IPackageManagerWebService
IReadOnlyDictionary<, >
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX