Exemple #1
0
        private static ICommandService InitializeCommandService()
        {
            var service = new Ncqrs.Commanding.ServiceModel.CommandService();

            service.RegisterExecutor(new CreateNewMediaCommandHandler());

            return service;
        }
Exemple #2
0
        private static ICommandService BuildCommandService()
        {
            var commandAssembly = typeof (CreateNewProject).Assembly;

            var service = new Ncqrs.Commanding.ServiceModel.CommandService();
            service.RegisterExecutorsInAssembly(commandAssembly);
            return service;
        }
Exemple #3
0
        private static ICommandService InitializeCommandService()
        {
            var service = new Ncqrs.Commanding.ServiceModel.CommandService();
            service.RegisterExecutor(new MappedCommandExecutor<CreateNewNote>());
            service.RegisterExecutor(new MappedCommandExecutor<ChangeNoteText>());
            // TODO: service.RegisterExecutorForAllMappedCommandsInAssembly(typeof(CreateNewNote).Assembly););

            return service;
        }
Exemple #4
0
        private static ICommandService BuildCommandService()
        {
            var commandAssembly = typeof(CreateNewProject).Assembly;

            var service = new Ncqrs.Commanding.ServiceModel.CommandService();

            service.RegisterExecutorsInAssembly(commandAssembly);
            return(service);
        }
Exemple #5
0
        private static ICommandService InitializeCommandService()
        {
            var commandAssembly = typeof (CreateNewNote).Assembly;

            var service = new Ncqrs.Commanding.ServiceModel.CommandService();
            service.RegisterExecutorsInAssembly(commandAssembly);
            service.AddInterceptor(new ThrowOnExceptionInterceptor());

            return service;
        }
        private static ICommandService InitializeCommandService()
        {
            var service = new Ncqrs.Commanding.ServiceModel.CommandService();
            service.RegisterExecutor(new PostNewTweetCommandExecutor());
            service.RegisterExecutor(new DeleteTweetCommandExecutor());
            service.RegisterExecutor(new CreateChannelCommandExecutor());
            service.RegisterExecutor(new CreateUserCommandExecutor());
            service.RegisterExecutor(new DeleteUserCommandExecutor());
            service.RegisterExecutor(new SetUserPropertyCommandExecutor());
            service.RegisterExecutor(new SetUserPasswordCommandExecutor());

            return service;
        }
Exemple #7
0
        private static ICommandService InitializeCommandService()
        {
            var service = new Ncqrs.Commanding.ServiceModel.CommandService();

            service.RegisterExecutor(new PostNewTweetCommandExecutor());
            service.RegisterExecutor(new DeleteTweetCommandExecutor());
            service.RegisterExecutor(new CreateChannelCommandExecutor());
            service.RegisterExecutor(new CreateUserCommandExecutor());
            service.RegisterExecutor(new DeleteUserCommandExecutor());
            service.RegisterExecutor(new SetUserPropertyCommandExecutor());
            service.RegisterExecutor(new SetUserPasswordCommandExecutor());
            service.RegisterExecutor(new ValidateUserCommandExecutor());
            service.RegisterExecutor(new InvalidateUserCommandExecutor());
            service.RegisterExecutor(new AddUserToRoleCommandExecutor());
            service.RegisterExecutor(new RemoveUserFromRoleCommandExecutor());

            return(service);
        }
        private static ICommandService InitializeCommandService()
        {
            var service = new Ncqrs.Commanding.ServiceModel.CommandService();

            try
            {
                //TODO: need to register assembly here!!
                var commandAssembly = typeof(BuzzyGo.Commands.Card.CreateCard).Assembly;
                service.RegisterExecutorsInAssembly(commandAssembly);
            }
            catch (ApplicationException exc)
            {
                Console.WriteLine(exc.Message);
            }

            return service;
        }
Exemple #9
0
        private static ICommandService InitializeCommandService()
        {
            var service = new Ncqrs.Commanding.ServiceModel.CommandService();

            service.RegisterExecutor(new AddNewMediaCommandHandler());
            service.RegisterExecutor(new RegisterNewCustomerCommandHandler());
            service.RegisterExecutor(new CustomerRentMediaCommandHandler());
            //service.RegisterExecutor(new CustomerReturnMediaCommandHandler());

            return service;
        }
Exemple #10
0
 private static ICommandService InitializeCommandService()
 {
     var service = new Ncqrs.Commanding.ServiceModel.CommandService();
     //service.RegisterExecutor(new CreateNewClassifiedCommandExecutor());
     return service;
 }