public TeamsTokenRetriever(ILogger logger, TeamsTokenPathes tokenPathes, LevelDbLogFileDecoder levelDbLogFileDecoder) { this.logger = logger.ForContext <TeamsTokenRetriever>(); // filter out duplicates when reading tokens repeatedly TokenSource = tokenSource.Distinct(t => (t.TokenType, t.UserId, t.ValidFromUtc, t.ValidToUtc)); this.tokenPathes = tokenPathes; this.levelDbLogFileDecoder = levelDbLogFileDecoder; }
public LevelDbLogFileDecoder(ILogger logger, TeamsTokenPathes tokenPathes) { this.logger = logger.ForContext <LevelDbLogFileDecoder>(); this.tokenPathes = tokenPathes; }