Ejemplo n.º 1
0
        public AsyncManager(SynchronizationContext syncContext) {
            _syncContext = syncContext ?? SynchronizationContextUtil.GetSynchronizationContext();

            OutstandingOperations = new OperationCounter();
            OutstandingOperations.Completed += delegate { Finish(); };

            Parameters = new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase);
        }
Ejemplo n.º 2
0
        public AsyncManager(SynchronizationContext syncContext)
        {
            _syncContext = syncContext ?? SynchronizationContextUtil.GetSynchronizationContext();

            OutstandingOperations            = new OperationCounter();
            OutstandingOperations.Completed += delegate { Finish(); };

            Parameters = new Dictionary <string, object>(StringComparer.OrdinalIgnoreCase);
        }