C# Class MapAround.DataProviders.SpatialDataProviderManager

Represents a registry of spatial data providers.
Afficher le fichier Open project: gkrsu/maparound.core

Méthodes publiques

Méthode Description
GetProvider ( string providerName ) : ISpatialDataProvider

Creates and initializes a new instance of the spatial data provider.

GetProvider ( string providerName, string>.Dictionary parameters ) : ISpatialDataProvider

Creates and initializes a new instance of the spatial data provider.

GetProviderParameterNames ( string providerName ) : string[]

Gets a list containing names of the initialization parameters of the spatial data provider.

RegisterProvider ( ISpatialDataProviderHolder holder, bool forceUpdate ) : void

Registers a spatial data provider.

Registered ( string providerName ) : bool

Determines whether the data provider is registered.

ReleaseProviderIfNeeded ( string providerName, ISpatialDataProvider provider ) : void

Performs an actions need to be done for finalization of the data provider.

Holders can provide various scenarious of disposing resources for spatial data providers of the same class.

UnRegisterProvider ( string providerName ) : void

Removes registration info.

Method Details

GetProvider() public méthode

Creates and initializes a new instance of the spatial data provider.
public GetProvider ( string providerName ) : ISpatialDataProvider
providerName string A name of the spatial data provider
Résultat ISpatialDataProvider

GetProvider() public méthode

Creates and initializes a new instance of the spatial data provider.
public GetProvider ( string providerName, string>.Dictionary parameters ) : ISpatialDataProvider
providerName string A name of the spatial data provide
parameters string>.Dictionary A dictionary instance containing initialization parameter values
Résultat ISpatialDataProvider

GetProviderParameterNames() public méthode

Gets a list containing names of the initialization parameters of the spatial data provider.
public GetProviderParameterNames ( string providerName ) : string[]
providerName string A name of the spatial data provider
Résultat string[]

RegisterProvider() public méthode

Registers a spatial data provider.
public RegisterProvider ( ISpatialDataProviderHolder holder, bool forceUpdate ) : void
holder ISpatialDataProviderHolder A holder of spatial data provider
forceUpdate bool A value indicating whether an existing registration info /// will be updated
Résultat void

Registered() public méthode

Determines whether the data provider is registered.
public Registered ( string providerName ) : bool
providerName string A name of the spatial data provider
Résultat bool

ReleaseProviderIfNeeded() public méthode

Performs an actions need to be done for finalization of the data provider.

Holders can provide various scenarious of disposing resources for spatial data providers of the same class.

public ReleaseProviderIfNeeded ( string providerName, ISpatialDataProvider provider ) : void
providerName string A name of the spatial data provider
provider ISpatialDataProvider A provider instance for finalization
Résultat void

UnRegisterProvider() public méthode

Removes registration info.
public UnRegisterProvider ( string providerName ) : void
providerName string A name of the spatial data provider
Résultat void