public ResourceMeter(string name) { this.name = name; ResourceMap.IncrementResourceUsage(name); }
public void Dispose() { ResourceMap.DecrementResourceUsage(name); }