refactor: Add DataStream cfg protos
Translated from Edge config
This commit is contained in:
1 parent
bcd8aa3d80
commit
b416209ca7
10 files changed
+65
-14
No files matched your search
@@ -1,14 +1,15 @@
|
||||
namespace BCG
|
||||
{
|
||||
using Bts.DataStream;
|
||||
using bts;
|
||||
|
||||
using mbts.config;
|
||||
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Reflection;
|
||||
using System.IO;
|
||||
|
||||
// using BCG.Utilities.BlueConfiguration;
|
||||
using bts;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class PrimitiveManager
|
||||
{
|
||||
private IDictionary myTypeLookupTable = new Hashtable();
|
||||
@@ -22,13 +23,11 @@ namespace BCG
|
||||
|
||||
private void myLoadAllTypes()
|
||||
{
|
||||
DataStreamLoadFileConfig config = DataStreamLoadFileConfig.instance;
|
||||
|
||||
AppDomain currentDomain = AppDomain.CurrentDomain;
|
||||
currentDomain.AssemblyResolve += new ResolveEventHandler(myAssemblyResolver);
|
||||
loadAssembly(this.GetType().Assembly.FullName);
|
||||
|
||||
foreach (string assemblyName in config.loadedAssemblies ?? new string[] {"DataStream.dll"})
|
||||
foreach (string assemblyName in Configuration.get<DataStreamConfig>().Assemblies)
|
||||
{
|
||||
string resolvedAssemblyPath = assemblyName;
|
||||
if (!System.IO.Path.IsPathRooted(assemblyName))
|
||||
|
||||
Reference in new issue
Block a user