Exemplo n.º 1
0
        void OperationStateObserver.Initial(OperationContext context)
        {
            context.NotifyOnCurrentState(
                "Initial",
                Runnability.Unavailable(),
                ErrorInfo.None());

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

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