Ejemplo n.º 1
0
 public EnrichCommand(ILogger <EnrichCommand> log, IAuthentication auth, Func <DiscoveryRequest, IMessageDiscovery> discoveryFactory, EnrichConfig config)
 {
     this.log              = log ?? throw new ArgumentNullException(nameof(log));
     this.auth             = auth ?? throw new ArgumentNullException(nameof(auth));
     this.discoveryFactory = discoveryFactory ?? throw new ArgumentNullException(nameof(discoveryFactory));
     this.config           = config ?? throw new ArgumentNullException(nameof(config));
 }
Ejemplo n.º 2
0
        public EnrichCommand(ILogger <EnrichCommand> log, IInstaApi instagram, EnrichConfig config, ISessionHandler session, ITagEnricher tagsManager)
            : base(log, instagram, config, session)
        {
            if (session == null)
            {
                throw new ArgumentNullException(nameof(session));
            }

            fileLocation     = Path.GetDirectoryName(Assembly.GetEntryAssembly()?.Location);
            this.log         = log ?? throw new ArgumentNullException(nameof(log));
            this.instagram   = instagram ?? throw new ArgumentNullException(nameof(instagram));
            this.config      = config ?? throw new ArgumentNullException(nameof(config));
            this.tagsManager = tagsManager ?? throw new ArgumentNullException(nameof(tagsManager));
        }