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
C# | Visual Basic | Visual C++ |
namespace Caplin.DataSource.Namespace
Namespace Caplin.DataSource.Namespace
namespace Caplin.DataSource.Namespace
All Types | Classes | Interfaces |
Icon | Type | Description |
---|---|---|
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 |
DataSource.NET includes the following implementations of INameSpace:
- PrefixNamespace, which matches the start of a subject name.
- RegexNamespace, for more complex subject matching requirements.
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.