Ejemplo n.º 1
0
        public UpdateCommand(VoloNugetPackagesVersionUpdater nugetPackagesVersionUpdater,
                             NpmPackagesUpdater npmPackagesUpdater,
                             ICliAnalyticsCollect cliAnalyticsCollect,
                             IJsonSerializer jsonSerializer,
                             IOptions <AbpCliOptions> options)
        {
            _nugetPackagesVersionUpdater = nugetPackagesVersionUpdater;
            _npmPackagesUpdater          = npmPackagesUpdater;
            _cliAnalyticsCollect         = cliAnalyticsCollect;
            _jsonSerializer = jsonSerializer;
            _options        = options.Value;

            Logger = NullLogger <UpdateCommand> .Instance;
        }
Ejemplo n.º 2
0
 public CommandSelector(IOptions <AbpCliOptions> options)//这个构造器是干嘛用的,新语法吗?
 {
     Options = options.Value;
 }
Ejemplo n.º 3
0
 public CommandSelector(IOptions <AbpCliOptions> options)
 {
     Options = options.Value;
 }
Ejemplo n.º 4
0
 public HelpCommand(IOptions <AbpCliOptions> options, IHybridServiceScopeFactory serviceScopeFactory)
 {
     ServiceScopeFactory = serviceScopeFactory;
     AbpCliOptions       = options.Value;
     Logger = NullLogger <HelpCommand> .Instance;//默认空日志
 }