private void NotifySucceeded(StorageOperationType operationType, Stopwatch stopwatch) { if (_observer != null) { _observer.Notify(new StorageOperationSucceededEvent(operationType, stopwatch.Elapsed)); } }
public StorageOperationSucceededEvent(StorageOperationType operationType, TimeSpan duration) { OperationType = operationType; Duration = duration; }
public StorageOperationFailedEvent(StorageOperationType operationType, Exception exception) { OperationType = operationType; Exception = exception; }
public StorageOperationFailedEvent(StorageOperationType operationType, Exception exception) { OperationType = operationType; Exception = exception; }
/// <summary> /// Initializes a new instance of the <see cref="StorageOperationSucceededEvent"/> class. /// </summary> /// <param name="operationType"> /// Type of the operation. /// </param> /// <param name="duration"> /// The duration. /// </param> /// <remarks> /// </remarks> public StorageOperationSucceededEvent(StorageOperationType operationType, TimeSpan duration) { this.OperationType = operationType; this.Duration = duration; }