C# Class MapAround.DataProviders.SpatialDataProviderManager

Represents a registry of spatial data providers.
Mostra file Open project: gkrsu/maparound.core

Public Methods

Method 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 method

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
return ISpatialDataProvider

GetProvider() public method

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
return ISpatialDataProvider

GetProviderParameterNames() public method

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
return string[]

RegisterProvider() public method

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
return void

Registered() public method

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

ReleaseProviderIfNeeded() public method

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
return void

UnRegisterProvider() public method

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