Exemple #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);
            }
Exemple #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);
            }
Exemple #3
0
 public static IMsixHeroCommandExecutor WithErrorHandling(this IMsixHeroCommandExecutor executor, IInteractionService interactionService, bool allowRetry)
 {
     return(MsixHeroDecoratedCommandExecutor.From(executor, interactionService, allowRetry));
 }
Exemple #4
0
 public static IMsixHeroCommandExecutor WithBusyManager(this IMsixHeroCommandExecutor executor, IBusyManager busyManager, OperationType operationType)
 {
     return(MsixHeroDecoratedCommandExecutor.From(executor, busyManager, operationType));
 }