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