Microsoft.Ccr.Core.Dispatcher.Register C# (CSharp) Method

Register() private method

private Register ( DispatcherQueue queue ) : void
queue DispatcherQueue
return void
        internal void Register(DispatcherQueue queue)
        {
            lock (_lock) {
                DispatcherQueue[] res = new DispatcherQueue [queues.Length + 1];
                queues.CopyTo (res, 0);
                res [queues.Length] = queue;
                queues = res;
            }
        }

Usage Example

Ejemplo n.º 1
0
        DispatcherQueue(string name, Dispatcher dispatcher, TaskExecutionPolicy policy)
        {
            if (name == null)
                throw new ArgumentNullException ("name");

            if (dispatcher == null)
                throw new ArgumentNullException ("dispatcher");

            this.dispatcher = dispatcher;

            Name = name;

            ThrottlingSleepInterval = new TimeSpan (0,0,0,0,10);
            Timescale = 1;

            Policy = policy;
            dispatcher.Register (this);
        }