public AccessHandle(Resource resource)
 {
     _resource = resource;
     _resource.AddRef();
 }