/// <exception cref="System.UnauthorizedAccessException">Thrown when application does not have some privilege to access this method.</exception>
public bool IsSupported(ServiceRequestType type)
{
- bool result;
+ bool result = false;
var err = handle.IsServiceSupported((Interop.ServiceType)type, out result);
err.WarnIfFailed($"Failed to get if {type} is supported");
return (err.IsSuccess()) ? result : false;
/// <exception cref="System.UnauthorizedAccessException">Thrown when application does not have some privilege to access this method.</exception>
public bool IsSupported(ServiceData data)
{
- bool result;
+ bool result = false;
var err = handle.IsDataSupported((Interop.ServiceData)data, out result);
err.WarnIfFailed($"Failed to get if {data} data is supported");
return (err.IsSuccess()) ? result : false;
public MapView(EvasObject parent, MapService service) : base(parent)
{
handle = new Interop.ViewHandle(service.handle, this);
+ service.handle.HasOwnership = false;
Log.Info(string.Format("MapView is created"));
_service = service;
_handleToObjectTable?.Clear();
}
handle?.Dispose();
+ _service.handle.HasOwnership = true;
_disposedValue = true;
}
}