예제 #1
0
 public MemoryPressureHandle(long bytesAllocated)
 {
     GCUtil.AddMemoryPressure(bytesAllocated);
     this.bytesAllocated = bytesAllocated;
 }
예제 #2
0
 protected override void Dispose(bool disposing)
 {
     GCUtil.RemoveMemoryPressure(this.bytesAllocated);
     base.Dispose(disposing);
 }