Table of Contents

Class DataSourceService

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

public class DataSourceService : IDataSourceService

Inheritance

objectDataSourceService

Implements

IDataSourceService

Inherited Members

object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()

Extension Methods

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

Constructors

DataSourceService(IProductRepository, IDataSourceRepository, IDataClassRepository)

public DataSourceService(IProductRepository productRepository, IDataSourceRepository dataSourceRepository, IDataClassRepository dataClassRepository)

Parameters

productRepository IProductRepository

dataSourceRepository IDataSourceRepository

dataClassRepository IDataClassRepository

Methods

GetDataSourceByName(string)

Get data source with the specified name.

public DslDataSource GetDataSourceByName(string name)

Parameters

name string

Name of data source.

Returns

DslDataSource

A single data source.

GetDataSources()

Get all data sources.

public IList<DslDataSource> GetDataSources()

Returns

IList<DslDataSource>

A data sources list.

GetDataSourcesByProduct(string)

Get data sources which are filtered by product name.

public 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.

public 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.