DataSource.NET
Caplin.DataSource.Namespace Namespace
NamespacesCaplin.DataSource.Namespace

The Caplin.DataSource.Namespace namespace contains interfaces and implementations for the matching of Subject names to IDataProvider.

A subject name is defined within a DataSource namespace. For example, if the DataSource namespace is the prefix "/FX" the subject name "/FX/EURUSD" is within that namespace, but "/FY/EURUSD" is not. The DataSource namespace ensures that requests for the data with the subject "/FX/EURUSD" are routed to an IDataProvider implementation that can supply that data.

DataSource namespaces are defined in implementations of INamespace

Declaration Syntax
C#Visual BasicVisual C++
namespace Caplin.DataSource.Namespace
Namespace Caplin.DataSource.Namespace
namespace Caplin.DataSource.Namespace
Types
All TypesClassesInterfaces
IconTypeDescription
INamespace
An INamespace is used to determine if a subject is of interest to an IDataProvider.

PrefixNamespace
The prefix namespace matches the initial part of a subject name.

RegexNamespace

The regex namespace matches a subject based on one or more regex patterns.

Regex is an abbreviation for regular expression. Regular expression libraries provide rich string matching capabilities based upon string patterns ("regular expressions"). Different regular expression libraries vary in their syntax and functionality. This class uses the library provided by the .NET Regex class. More information on the regular expressions syntax used by the .NET Regex implementation can be found at .NET Framework Regular Expressions


Remarks

DataSource.NET includes the following implementations of INameSpace:

Should the supplied INamespace implementations not match your requirements, you can write your own custom subject matching login in an implementation of the INamespace interface.