public void Abort() { if (Status != DispatcherOperationStatus.Pending) { throw new Granular.Exception("Operation is \"{0}\" and cannot be aborted", Status); } Status = DispatcherOperationStatus.Aborted; Aborted.Raise(this); }
public void Abort() { if (Status != DispatcherOperationStatus.Pending) { throw new Exception($"Operation is \"{Status}\" and cannot be aborted"); } Status = DispatcherOperationStatus.Aborted; Aborted.Raise(this); }