Ejemplo n.º 1
0
            public void Dispose()
            {
                if (this.provider != null)
                {
                    this.provider.EndDefer();
                    this.provider = null;
                }

                GC.SuppressFinalize(this);
            }
Ejemplo n.º 2
0
        private void OnCompleted(object sender, DataEngineCompletedEventArgs e)
        {
            var newStatus = DataProviderBase.GetDataProviderStatusFromEngineStatus(e.Status);
            var exception = Enumerable.FirstOrDefault(e.InnerExceptions);

            try
            {
                this.manualResetEventSlim.Reset();
                this.ProcessPendingChanges();
            }
            finally
            {
                this.manualResetEventSlim.Set();
            }

            this.OnStatusChanged(new DataProviderStatusChangedEventArgs(newStatus, true, exception));
        }
Ejemplo n.º 3
0
 public DeferHelper(DataProviderBase providerBase)
 {
     this.provider = providerBase;
 }