C# Class MapAround.DataProviders.SpatialDataProviderHolderBase

MapAround.DataProviders.SpatialDataProviderHolderBase is the base class for the data provider holding classes. Instances of these classes contains the providers registration info, initialization parameters and defines the resource menegement by implementing the ReleaseProviderIfNeeded method.
Inheritance: ISpatialDataProviderHolder
显示文件 Open project: gkrsu/maparound.core

Protected Properties

Property Type Description
GetProviderMethod ProviderRetriever

Public Methods

Method Description
GetParameterNames ( ) : string[]

Gets paramater names.

GetProvider ( ) : ISpatialDataProvider

Gets the spatial data provider.

ReleaseProviderIfNeeded ( ISpatialDataProvider provider ) : void

Performs a finalization procedure for the spatial data provider, if needed.

SetParameters ( string>.Dictionary parameters ) : void

Sets paramater values.

Protected Methods

Method Description
SpatialDataProviderHolderBase ( string name ) : System

Initializes a new instance of MapAround.DataProviders.SpatialDataProviderInfoBase.

Method Details

GetParameterNames() public abstract method

Gets paramater names.
public abstract GetParameterNames ( ) : string[]
return string[]

GetProvider() public method

Gets the spatial data provider.
public GetProvider ( ) : ISpatialDataProvider
return ISpatialDataProvider

ReleaseProviderIfNeeded() public abstract method

Performs a finalization procedure for the spatial data provider, if needed.
public abstract ReleaseProviderIfNeeded ( ISpatialDataProvider provider ) : void
provider ISpatialDataProvider Spatial data provider instance
return void

SetParameters() public abstract method

Sets paramater values.
public abstract SetParameters ( string>.Dictionary parameters ) : void
parameters string>.Dictionary Dictionary that contains parameter values
return void

SpatialDataProviderHolderBase() protected method

Initializes a new instance of MapAround.DataProviders.SpatialDataProviderInfoBase.
protected SpatialDataProviderHolderBase ( string name ) : System
name string Name
return System

Property Details

GetProviderMethod protected_oe property

References to the method that returns an ISpatialDataProvider instance.
protected ProviderRetriever GetProviderMethod
return ProviderRetriever