public OrionClient() { Id = Guid.NewGuid().ToString(); _requests = new ConcurrentDictionary <int, TaskCompletionSource <JToken> >(); _writer = new OrionSink(); _reader = new OrionSource("Cl"); _reader.OnMessage += ReaderOnMessage; _reader.Run(); }
public string GetExperimentAsset(string path) { var isAbsolute = false; var expPath = OrionSink.GetExperimentsPath(_configuration, out isAbsolute, ref path); Trace.WriteLine(expPath); Console.WriteLine(expPath); var assetPath = System.IO.Path.Combine(expPath, path); if (!System.IO.File.Exists(assetPath)) { return(null); } else { return(assetPath); } }