コード例 #1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         Uow.Dispose();
     }
     base.Dispose(disposing);
 }
コード例 #2
0
 /// <summary>
 /// Clean up any resources being used.
 /// </summary>
 /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
 protected override void Dispose(bool disposing)
 {
     if (disposing && (components != null))
     {
         components.Dispose();
         Uow.Dispose();
     }
     base.Dispose(disposing);
 }
コード例 #3
0
ファイル: ServiceBase.cs プロジェクト: windygu/PointEx
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (Uow != null)
         {
             Uow.Dispose();
             Uow = null;
         }
     }
 }
コード例 #4
0
 protected virtual void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (Uow != null)
         {
             Uow.Dispose();
             Uow = null;
             Ioc.Container.Release(this);
         }
     }
 }
コード例 #5
0
        protected override void Dispose(bool disposing)
        {
            if (_notifications != null)
            {
                _notifications.Dispose();
            }

            if (_uow != null)
            {
                _uow.Dispose();
            }
        }
コード例 #6
0
        public void Dispose()
        {
            _adRepo               = null;
            _workerRepo           = null;
            _ssoApplicationRepo   = null;
            _ssoProfileRepo       = null;
            _ssoProfileWorkerRepo = null;
            _appParameterRepo     = null;
            _appTranslationRepo   = null;

            Uow.Dispose();
            Uow = null;
        }
コード例 #7
0
        public void Dispose()
        {
            _workerRepo = null;
            _areaRepo   = null;
            _siteRepo   = null;
            _budgetRepo = null;
            _appRepo    = null;

            if (Uow != null)
            {
                Uow.Dispose();
                Uow = null;
            }
        }
コード例 #8
0
        public void Dispose()
        {
            _workerRepo         = null;
            _lbcRepo            = null;
            _deptRepo           = null;
            _ssoApplicationRepo = null;
            _ssoProfileRepo     = null;

            if (Uow != null)
            {
                Uow.Dispose();
                Uow = null;
            }
        }
コード例 #9
0
 public void Dispose() => Uow.Dispose();
コード例 #10
0
 protected virtual void RefrescarUow()
 {
     //Limpiar context.
     Uow.Dispose();
     Uow = UowFactory.Create <ILaPazUow>();
 }
コード例 #11
0
 protected virtual void RefrescarUow()
 {
     //Limpiar context.
     Uow.Dispose();
     Uow = UowFactory.Create <IGestionAdministrativaUow>();
 }
コード例 #12
0
 public void Dispose()
 {
     ClearDb();
     Uow.Dispose();
 }
コード例 #13
0
ファイル: SampleService.cs プロジェクト: yagorka1/HIMS.EF
 public void Dispose()
 {
     Uow.Dispose();
 }