AwesomeAppRefactored.Program.InitializeCommandService C# (CSharp) Méthode

InitializeCommandService() private static méthode

private static InitializeCommandService ( ) : ICommandService
Résultat ICommandService
        private static ICommandService InitializeCommandService()
        {
            var service = new CommandService();
            service.RegisterExecutor(new MappedCommandExecutor<CreatePersonCommand>());
            service.RegisterExecutor(new MappedCommandExecutor<ChangeNameCommand>());
            return service;
        }