void OperationStateObserver.Initial(OperationContext context) { context.NotifyOnCurrentState( "Initial", Runnability.Unavailable(), ErrorInfo.None()); _operationState = _operationStatesFactory.Unavailable(); }
void OperationStateObserver.InProgress(OperationContext context, CancellationTokenSource cancellationTokenSource) { context.NotifyOnCurrentState( "In Progress", Runnability.InProgress(), ErrorInfo.None()); _operationState = _operationStatesFactory.InProgress(cancellationTokenSource); }
private void NormalRunnable(OperationContext context, string statusText) { context.NotifyOnCurrentState(statusText, Runnability.Runnable(), ErrorInfo.None()); _operationState = _operationStatesFactory.RunnableState(); }