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 |
---|---|---|
IPackage |
A | The 'A' IPackageExportable to process (typically older version). |
IPackage |
B | The 'B' IPackageExportable to process (typically newer version). |
Differ |
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 |
---|---|
Diff |
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. |
keysA | The keys a. |
List<System. |
keysB | The keys b. |
Returns
Type | Description |
---|---|
Diff |
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. |
keyA | The key of the artifact in package A to compare. |
System. |
keyB | The key of the artifact in package B to compare. |
Returns
Type | Description |
---|---|
Diff |
The difference between artifacts. |