public override bool ExportCapture(ISurface surface, ICaptureDetails captureDetails) { using (Image image = surface.GetImageForExport()) { bool uploaded = plugin.Upload(captureDetails, image); if (uploaded) { surface.SendMessageEvent(this, SurfaceMessageTyp.Info, "Exported to Box"); surface.Modified = false; } return(uploaded); } }
public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) { ExportInformation exportInformation = new ExportInformation(Designation, Description); string uploadUrl = _plugin.Upload(captureDetails, surface); if (uploadUrl != null) { exportInformation.ExportMade = true; exportInformation.Uri = uploadUrl; } ProcessExport(exportInformation, surface); return(exportInformation); }