Пример #1
0
        ICommandHandler <UpdateTaskCommand, bool> resolveUpdateTaskHandler()
        {
            var updateTaskCommandHanlder = new UpdateTaskCommandHandler();
            var logDecorated             = new LogDecorator <UpdateTaskCommand, bool>(updateTaskCommandHanlder);
            var exceptionDecorated       = new CatchUnhadledErrorDecorator <UpdateTaskCommand, bool>(logDecorated);

            return(exceptionDecorated);
        }
Пример #2
0
        ICommandHandler <AddUserCommand, int> resolveAddUserHandler()
        {
            var addUserCommandHanlder = new AddUserCommandHandler();
            var logDecorated          = new LogDecorator <AddUserCommand, int>(addUserCommandHanlder);
            var exceptionDecorated    = new CatchUnhadledErrorDecorator <AddUserCommand, int>(logDecorated);

            return(exceptionDecorated);
        }