public override void OperationCompleted() { _context.OperationCompleted(); var count = _control.StopViewInUse(); if (count != -1) { Logger.Info("SecondaryViewSynchronizationContextDecorator : OperationCompleted: " + count); } }
public override void OperationCompleted() { try { context.OperationCompleted(); var count = control.StopViewInUse(); Logger.Info("SecondaryViewSynchronizationContextDecorator : OperationCompleted: " + count); } catch (ViewLifetimeControl.ViewLifeTimeException) { //Don't need to do anything, operation can't be completed } }