Class Differ
Class that performs a diff between two FhirVersionInfo packages.
Inheritance
System.Object
Differ
Namespace: Microsoft.Health.Fhir.SpecManager.Manager
Assembly: Microsoft.Health.Fhir.SpecManager.dll
Syntax
public class Differ : object
Constructors
| Improve this Doc View SourceDiffer(IPackageExportable, IPackageExportable, DifferOptions)
Initializes a new instance of the Differ class.
Declaration
public Differ(IPackageExportable A, IPackageExportable B, DifferOptions options)
Parameters
| Type | Name | Description |
|---|---|---|
| IPackageExportable | A | The 'A' IPackageExportable to process (typically older version). |
| IPackageExportable | B | The 'B' IPackageExportable to process (typically newer version). |
| DifferOptions | options | Options for controlling the operation. |
Methods
| Improve this Doc View SourceGenerateDiff()
Compares the packages or artifacts requested.
Declaration
public DiffResults GenerateDiff()
Returns
| Type | Description |
|---|---|
| DiffResults | The difference. |
GenerateDiff(List<String>, List<String>)
Generates a difference between artifacts.
Declaration
public DiffResults GenerateDiff(List<string> keysA, List<string> keysB)
Parameters
| Type | Name | Description |
|---|---|---|
| List<System.String> | keysA | The keys a. |
| List<System.String> | keysB | The keys b. |
Returns
| Type | Description |
|---|---|
| DiffResults | The difference between artifacts. |
GenerateDiff(String, String)
Generates a difference between artifacts.
Declaration
public DiffResults GenerateDiff(string keyA, string keyB)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | keyA | The key of the artifact in package A to compare. |
| System.String | keyB | The key of the artifact in package B to compare. |
Returns
| Type | Description |
|---|---|
| DiffResults | The difference between artifacts. |