protected IndexBuilder(IndexSecurity security)
        {
            if (security == null)
            {
                throw new ArgumentNullException(nameof(security));
            }

            Security   = security;
            SecurityId = security.ToSecurityId();

            FillSecurityIndecies(Security);

            _bufferSize = _securityIndecies.Values.Distinct().Count();
        }
示例#2
0
        protected IndexBuilder(IndexSecurity security)
        {
            Security   = security ?? throw new ArgumentNullException(nameof(security));
            SecurityId = security.ToSecurityId();
            SecurityId.EnsureHashCode();

            var index = 0;

            foreach (var innerSec in security.InnerSecurityIds)
            {
                _securityIndecies[innerSec] = index;

                index++;
            }

            _bufferSize = index;
        }
示例#3
0
        protected IndexBuilder(IndexSecurity security)
        {
            if (security == null)
            {
                throw new ArgumentNullException(nameof(security));
            }

            Security   = security;
            SecurityId = security.ToSecurityId();

            var index = 0;

            foreach (var innerSec in security.InnerSecurityIds)
            {
                _securityIndecies[innerSec] = index;

                index++;
            }

            _bufferSize = index;
        }