public static bool TryCreate(TimeseriesSourceKey sourceKey, out ITimeseriesSource timeseriesSource)
 {
     timeseriesSource = null;
     if (String.Equals(sourceKey.Key.Scheme, _schemeType))
     {
         timeseriesSource = new NullTimeseriesSource(sourceKey);
     }
     return(timeseriesSource != null);
 }
        private static ITimeseriesSource CreateSource(string key)
        {
            var sourceKey = new TimeseriesSourceKey(key);
            ITimeseriesSource source;

            // loop through all ITimeseriesSource implementations here
            if (NullTimeseriesSource.TryCreate(sourceKey, out source))
            {
                return(source);
            }

            if (DMXTimeseriesSource.TryCreate(sourceKey, out source))
            {
                return(source);
            }

            if (ECOSTimeseriesSource.TryCreate(sourceKey, out source))
            {
                return(source);
            }

            throw new UnknownTimeseriesSourceException();
        }