Replace trivial refs to ThreadedBlackboard w/ IBus
This commit is contained in:
1 parent
7fdd3f6b1b
commit
aee56569d1
2 files changed
+5
-5
No files matched your search
@@ -51,7 +51,7 @@ namespace mbts.spark {
|
||||
public sealed class SingleOptionDriverPricePublisher : IDisposable {
|
||||
readonly object syncRoot = new();
|
||||
private readonly SecurityTuple _sec_tup;
|
||||
private ThreadedBlackboard _bb;
|
||||
readonly IBus _bus;
|
||||
// tags
|
||||
private OptionDriverPriceMap _last_published;
|
||||
private readonly PerfStatsLogger _logger;
|
||||
@@ -61,10 +61,10 @@ namespace mbts.spark {
|
||||
AnalyticsExpirationParametersMap param_map;
|
||||
IDisposable dispose;
|
||||
|
||||
public SingleOptionDriverPricePublisher(SecurityTuple sec_tup, ThreadedBlackboard bb, IBus bus) {
|
||||
public SingleOptionDriverPricePublisher(SecurityTuple sec_tup, IBus bus) {
|
||||
bts.Log.Gen.info($"SingleOptionDriverPricePublisher initialized st:{sec_tup}");
|
||||
_sec_tup = sec_tup;
|
||||
_bb = bb;
|
||||
_bus = bus;
|
||||
_logger = new PerfStatsLogger(50, 50,
|
||||
$"SingleOptionDriverPricePublisher_{sec_tup.security_name}_{GetHashCode()}");
|
||||
_last_published = new OptionDriverPriceMap(sec_tup.security_name,
|
||||
@@ -136,7 +136,7 @@ namespace mbts.spark {
|
||||
// bts.Log.Gen.info("SingleOptionDriverPricePublisher._compute_and_fire \n" +
|
||||
// $"map:{to_fire.log_string()}");
|
||||
_logger.stop_default_timer();
|
||||
_bb.post(SparkTags.OptionDriverBBOTag((_sec_tup.security_name, _sec_tup.security_exchange)),
|
||||
_bus.post(SparkTags.OptionDriverBBOTag((_sec_tup.security_name, _sec_tup.security_exchange)),
|
||||
new OptionDriverPriceMap(_sec_tup.security_name, res));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ namespace mbts.spark
|
||||
if (!_option_driver_map.ContainsKey(sec_tup))
|
||||
{
|
||||
bts.Log.Gen.info($"ResourceAllocator._on_data allocating SingleOptionDriverPricePublisher for '{sec_tup}'");
|
||||
_option_driver_map.Add(sec_tup, new SingleOptionDriverPricePublisher(sec_tup, _bb, bus));
|
||||
_option_driver_map.Add(sec_tup, new(sec_tup, bus));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user