Class DiscoveryServiceServiceMetadataExtensions
ServiceMetadata extensions.
Inheritance
System.Object
DiscoveryServiceServiceMetadataExtensions
Namespace: Copper.Service.Metadata
Assembly: Copper.Discovery.Service.dll
Syntax
public static class DiscoveryServiceServiceMetadataExtensions
Methods
View SourceMatchesServiceDiscoveryCriteria(ServiceMetadata, ServiceDiscoveryCriteria)
Determines if the service metadata matches the provided service discovery criteria.
Declaration
public static bool MatchesServiceDiscoveryCriteria(this ServiceMetadata serviceMetadata, ServiceDiscoveryCriteria serviceDiscoveryCriteria)
Parameters
Type | Name | Description |
---|---|---|
ServiceMetadata | serviceMetadata | The service metadata. |
ServiceDiscoveryCriteria | serviceDiscoveryCriteria | The service discovery criteria. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The provided serviceMetadata is null. |
System.ArgumentNullException | The provided serviceDiscoveryCriteria is null |
ToDiscoveryServiceMetadata(ServiceMetadata)
Converts a ServiceMetadata instance to a ServiceMetadata instance.
Declaration
public static ServiceMetadata ToDiscoveryServiceMetadata(this ServiceMetadata serviceMetadata)
Parameters
Type | Name | Description |
---|---|---|
ServiceMetadata | serviceMetadata | The service metadata. |
Returns
Type | Description |
---|---|
ServiceMetadata | The ServiceMetadata instance. |