AssetService Class

Definition

A class to provide help methods for both asset consumer and providers. Consumers can use this class to get correlation via method GetCorrelation. Providers can register existing correlation in this service via method RegisterCorrelation, or(and) register themselves via method RegisterProvider to send asset events and return correlation per consumers' request.

public ref class AssetService sealed
public sealed class AssetService
type AssetService = class
Public NotInheritable Class AssetService
Inheritance
AssetService

Remarks

1. All methods in this service converts Guid value to D-format string (https://msdn.microsoft.com/en-us/library/97af8hh4(v=vs.110).aspx) 2. This class is thread-safe.

Properties

Instance

Gets singleton instance of AssetService

Methods

GetCorrelation(String, Guid)

Get correlation for a given asset type and asset id.

GetCorrelation(String, String)

Get correlation for a given asset type and asset id.

RegisterCorrelation(String, Guid, TelemetryEventCorrelation)

Register correlation from a given asset id with specified asset type.

RegisterCorrelation(String, String, TelemetryEventCorrelation)

Register correlation from a given asset id with specified asset type.

RegisterProvider(String, IAssetProvider)

Register asset provider which can send asset event and return correlation per consumers' request.

UnregisterCorrelation(String, Guid)

Unregister correlation from this service.

UnregisterCorrelation(String, String)

Unregister correlation from this service.

UnregisterProvider(String)

Unregister asset provider.

Applies to