Example #1
0
        void OperationStateObserver.Initial(OperationContext context)
        {
            context.NotifyOnCurrentState(
                "Initial",
                Runnability.Unavailable(),
                ErrorInfo.None());

            _operationState = _operationStatesFactory.Unavailable();
        }
Example #2
0
        void OperationStateObserver.InProgress(OperationContext context, CancellationTokenSource cancellationTokenSource)
        {
            context.NotifyOnCurrentState(
                "In Progress",
                Runnability.InProgress(),
                ErrorInfo.None());

            _operationState = _operationStatesFactory.InProgress(cancellationTokenSource);
        }
Example #3
0
 private void NormalRunnable(OperationContext context, string statusText)
 {
     context.NotifyOnCurrentState(statusText, Runnability.Runnable(), ErrorInfo.None());
     _operationState = _operationStatesFactory.RunnableState();
 }