示例#1
0
 /// <inheritdoc />
 /// <summary>
 /// Dispose method, following dispose pattern
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_imageCreationService != null)
         {
             _imageCreationService.Dispose();
             _imageCreationService = null;
         }
     }
     base.Dispose(disposing);
 }
示例#2
0
 /// <summary>
 /// Dispose method, following dispose pattern
 /// </summary>
 /// <param name="disposing"></param>
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (_israelHikingRepository != null)
         {
             _israelHikingRepository.Dispose();
             _israelHikingRepository = null;
         }
         if (_imageCreationService != null)
         {
             _imageCreationService.Dispose();
             _imageCreationService = null;
         }
     }
     base.Dispose(disposing);
 }