Market data streams work now

This commit is contained in:
Taha committed 2023-10-16 00:01:29 -04:00
1 parent 140c0c4152
commit 33030b1212
46 files changed
+2367 -787

No files matched your search

@@ -34,6 +34,18 @@ namespace BCG {
public static T get<T>(this IBlueRow r, int col_no, T err_value = default(T)) {
return get_row_value(r, col_no, err_value);
}
public static IEnumerable<T> get_covalues<T>(this IBlueRowCollection rows, string col) {
List<T> rv = new List<T>();
foreach (IBlueRow r in rows)
rv.Add(r.get<T>(col));
return rv;
}
public static IEnumerable<T> get_covalues<T>(IEnumerable<IBlueRow> rows, string col) {
List<T> rv = new List<T>();
foreach (IBlueRow r in rows)
rv.Add(r.get<T>(col));
return rv;
}
public static IBlueRowCollection where(this IBlueRowCollection rows, Func<IBlueRow, bool> where_func) {
if (rows == null)
@@ -22,8 +22,11 @@ namespace BCG {
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.AssemblyResolve += new ResolveEventHandler(myAssemblyResolver);
loadAssembly(this.GetType().Assembly.FullName);
var assemblies = new string[] { "datastream.dll", "datastreamcore.dll" };
foreach (string assemblyName in Configuration.get<DataStreamConfig>().Assemblies) {
var assemblies = new string[] { "datastream.dll", "sharedstreams.dll" };
var config_assemblies = Configuration.get<DataStreamConfig>().Assemblies;
bts.Log.Gen.info($"PrimitiveManager.myLoadAllTypes config_assemblies: {config_assemblies}");
foreach (string assemblyName in assemblies/*config_assemblies*/) {
bts.Log.Gen.info($"PrimitiveManager.myLoadAllTypes assemblyName: {assemblyName}");
string resolvedAssemblyPath = assemblyName;
if (!System.IO.Path.IsPathRooted(assemblyName)) {
string appPath = Path.GetDirectoryName(