Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public void Abort()
        {
            if (Status != DispatcherOperationStatus.Pending)
            {
                throw new Exception($"Operation is \"{Status}\" and cannot be aborted");
            }

            Status = DispatcherOperationStatus.Aborted;
            Aborted.Raise(this);
        }