/// <summary> /// Initializes a new instance of the <see cref="FixClient"/> class. /// </summary> /// <param name="container">The componentry container.</param> /// <param name="messagingAdapter">The messaging adapter.</param> /// <param name="config">The FIX configuration.</param> /// <param name="messageHandler">The FIX message handler.</param> /// <param name="messageRouter">The FIX message router.</param> public FixClient( IComponentryContainer container, IMessageBusAdapter messagingAdapter, FixConfiguration config, IFixMessageHandler messageHandler, IFixMessageRouter messageRouter) : base( container, messagingAdapter, config, messageHandler, messageRouter) { }
/// <summary> /// Initializes a new instance of the <see cref="FixComponent"/> class. /// </summary> /// <param name="container">The componentry container.</param> /// <param name="messagingAdapter">The messaging adapter.</param> /// <param name="config">The FIX configuration.</param> /// <param name="messageHandler">The FIX message handler.</param> /// <param name="messageRouter">The FIX message router.</param> protected FixComponent( IComponentryContainer container, IMessageBusAdapter messagingAdapter, FixConfiguration config, IFixMessageHandler messageHandler, IFixMessageRouter messageRouter) { this.clock = container.Clock; this.guidFactory = container.GuidFactory; this.Logger = container.LoggerFactory.CreateLogger(this.GetType().Name); this.messagingAdapter = messagingAdapter; this.FixMessageHandler = messageHandler; this.FixMessageRouter = messageRouter; this.AccountId = new AccountId(config.Broker, config.Credentials.AccountNumber, config.AccountType); this.Brokerage = this.AccountId.Broker; this.AccountNumber = this.AccountId.AccountNumber; this.credentials = config.Credentials; this.configPath = config.ConfigPath; this.sendAccountTag = config.SendAccountTag; this.accountField = new Account(this.AccountNumber.Value); }