Exemplo n.º 1
0
 /// <summary>
 /// Adds a security to the <see cref="SaveTrack"/>.
 /// </summary>
 /// <param name="security">The security to add.</param>
 public void AddSecurity(SecurityData security)
 {
     this.actions.Add(new Action
     {
         ActionType = ActionType.AddSecurity,
         Item       = security,
     });
 }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public void AddSecurity(SecurityData security)
        {
            if (security == null)
            {
                throw new ArgumentNullException(nameof(security));
            }

            lock (this)
            {
                var newSecurity = new Security(
                    security.SecurityId,
                    security.SecurityType,
                    security.Name,
                    security.Symbol,
                    security.Format,
                    security.FractionTraded);

                this.destinationBook.AddSecurity(newSecurity);
            }
        }
Exemplo n.º 3
0
        public void AddSecurity(SecurityData security)
        {
            if (security == null)
            {
                throw new ArgumentNullException("security");
            }

            lock (this)
            {
                var newSecurity = new Security(
                    security.SecurityId,
                    security.SecurityType,
                    security.Name,
                    security.Symbol,
                    security.Format,
                    security.FractionTraded);

                this.destinationBook.AddSecurity(newSecurity);
            }
        }
Exemplo n.º 4
0
 /// <summary>
 /// Adds a security to the <see cref="SaveTrack"/>.
 /// </summary>
 /// <param name="security">The security to add.</param>
 public void AddSecurity(SecurityData security)
 {
     this.actions.Add(new Action
     {
         ActionType = ActionType.AddSecurity,
         Item = security,
     });
 }