/// <summary>
        /// 
        /// </summary>
        public DataSubscriptionInfo(bool quoteSubscription, bool tickSubsription, TimeSpan[] dataBarSubscriptions)
        {
            _quoteSubscription = quoteSubscription;

            _tickSubscription = tickSubsription;

            _dataBarSubscriptions = new ListUnique<TimeSpan>();

            if (dataBarSubscriptions != null)
            {
                _dataBarSubscriptions.AddRange(dataBarSubscriptions);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        public DataSubscriptionInfo(bool quoteSubscription, bool tickSubsription, TimeSpan[] dataBarSubscriptions)
        {
            _quoteSubscription = quoteSubscription;

            _tickSubscription = tickSubsription;

            _dataBarSubscriptions = new ListUnique <TimeSpan>();

            if (dataBarSubscriptions != null)
            {
                _dataBarSubscriptions.AddRange(dataBarSubscriptions);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Helper method allows to retrieve initial assembly referenced (static and runtime) assemblies.
        /// </summary>
        static public ListUnique <Assembly> GetReferencedAssemblies(Assembly initialAssembly)
        {
            ListUnique <Assembly> result = new ListUnique <Assembly>();

            AssemblyName[] names = initialAssembly.GetReferencedAssemblies();
            for (int i = 0; i < names.Length; i++)
            {
                result.Add(Assembly.Load(names[i]));
            }

            lock (_dynamicReferencedAssemblies)
            {
                if (_dynamicReferencedAssemblies.ContainsKey(initialAssembly))
                {
                    result.AddRange(_dynamicReferencedAssemblies[initialAssembly]);
                }
            }

            return(result);
        }