示例#1
0
        private void HandleNew(NewOptions options)
        {
            container.RegisterInstance(options);
            container.RegisterInstance <Options>(options);
            IVerbHandler handler = container.Resolve <NewHandler>();

            handler.Run();
        }
示例#2
0
        private void HandleGenerate(GenerateOptions options)
        {
            container.RegisterInstance(options);
            container.RegisterInstance <Options>(options);
            IVerbHandler handler = container.Resolve <GenerateHandler>();

            handler.Run();
        }
示例#3
0
        private void HandleNotParsed(IEnumerable <Error> errors)
        {
            IVerbHandler handler = container.Resolve <UnknownVerbHandler>();

            handler.Run();
        }