Table of Contents

Interface IDataSourceService

Namespace: Casewhere.Runtime.DSL.Services
Assembly: Casewhere.Runtime.dll

The DataSourceService support operations which relate to Data Source.

public interface IDataSourceService

Extension Methods

ObjectExtension.ConvertToBsonValue(object), EnumExtensions.DeepClone<IDataSourceService>(IDataSourceService)

Methods

GetDataSourceByName(string)

Get data source with the specified name.

DslDataSource GetDataSourceByName(string name)

Parameters

name string

Name of data source.

Returns

DslDataSource

A single data source.

GetDataSources()

Get all data sources.

IList<DslDataSource> GetDataSources()

Returns

IList<DslDataSource>

A data sources list.

GetDataSourcesByProduct(string)

Get data sources which are filtered by product name.

IList<DslDataSource> GetDataSourcesByProduct(string productName)

Parameters

productName string

The product name.

Returns

IList<DslDataSource>

A data sources list.

GetDataSourcesByTag(string)

Get data sources which are filtered by a tag.

IList<DslDataSource> GetDataSourcesByTag(string tag)

Parameters

tag string

The tag which is based on for filtering data sources.

Returns

IList<DslDataSource>

A data sources list.