public Sw8CarrierFormatter(IBase64Formatter base64Formatter, IConfigAccessor configAccessor) { _base64Formatter = base64Formatter; var config = configAccessor.Get <InstrumentConfig>(); Key = string.IsNullOrEmpty(config.Namespace) ? HeaderVersions.SW8 : $"{config.Namespace}-{HeaderVersions.SW8}"; Enable = config.HeaderVersions == null || config.HeaderVersions.Contains(HeaderVersions.SW8); }
public Sw6CarrierFormatter(IUniqueIdParser uniqueIdParser, IBase64Formatter base64Formatter, IConfigAccessor configAccessor) { _uniqueIdParser = uniqueIdParser; _base64Formatter = base64Formatter; var config = configAccessor.Get <InstrumentConfig>(); Key = string.IsNullOrEmpty(config.Namespace) ? HeaderVersions.SW6 : $"{config.Namespace}-{HeaderVersions.SW6}"; Enable = config.HeaderVersions == null || config.HeaderVersions.Contains(HeaderVersions.SW6); }