Exemplo n.º 1
0
            public static MsixHeroDecoratedCommandExecutor From(IMsixHeroCommandExecutor executor, IInteractionService interactionService, bool allowRetry)
            {
                var result = executor as MsixHeroDecoratedCommandExecutor;

                if (result == null)
                {
                    result = new MsixHeroDecoratedCommandExecutor(executor, interactionService, allowRetry);
                }
                else
                {
                    result.interactionService = interactionService;
                    result.allowRetry         = allowRetry;
                }

                return(result);
            }
Exemplo n.º 2
0
            public static MsixHeroDecoratedCommandExecutor From(IMsixHeroCommandExecutor executor, IBusyManager busyManager, OperationType operationType)
            {
                var result = executor as MsixHeroDecoratedCommandExecutor;

                if (result == null)
                {
                    result = new MsixHeroDecoratedCommandExecutor(executor, busyManager, operationType);
                }
                else
                {
                    result.busyManager   = busyManager;
                    result.operationType = operationType;
                }

                return(result);
            }
Exemplo n.º 3
0
 public static IMsixHeroCommandExecutor WithErrorHandling(this IMsixHeroCommandExecutor executor, IInteractionService interactionService, bool allowRetry)
 {
     return(MsixHeroDecoratedCommandExecutor.From(executor, interactionService, allowRetry));
 }
Exemplo n.º 4
0
 public static IMsixHeroCommandExecutor WithBusyManager(this IMsixHeroCommandExecutor executor, IBusyManager busyManager, OperationType operationType)
 {
     return(MsixHeroDecoratedCommandExecutor.From(executor, busyManager, operationType));
 }