/// <summary> /// Initializes a new instance of the <see cref="SecurityMappingMessageAdapter"/>. /// </summary> /// <param name="innerAdapter">The adapter, to which messages will be directed.</param> /// <param name="storage">Security identifier mappings storage.</param> public SecurityMappingMessageAdapter(IMessageAdapter innerAdapter, ISecurityMappingStorage storage) : base(innerAdapter) { if (storage == null) { throw new ArgumentNullException(nameof(storage)); } Storage = storage; Storage.Changed += OnStorageMappingChanged; }
/// <summary> /// Initializes a new instance of the <see cref="SecurityMappingMessageAdapter"/>. /// </summary> /// <param name="innerAdapter">The adapter, to which messages will be directed.</param> /// <param name="storage">Security identifier mappings storage.</param> public SecurityMappingMessageAdapter(IMessageAdapter innerAdapter, ISecurityMappingStorage storage) : base(innerAdapter) { Storage = storage ?? throw new ArgumentNullException(nameof(storage)); }