Exemplo n.º 1
0
    public FeedReader(IIrcComm irc, ILog log, DateTimeFile dtFile, Patterns patterns)
    {
        this.irc      = irc;
        this.log      = log;
        this.dtFile   = dtFile;
        this.patterns = patterns;

        lastPrintedTime = dtFile.Read();
    }
Exemplo n.º 2
0
    void SetupReader()
    {
        if (feedReader == null)
        {
            var dtFile = new DateTimeFile(meido.DataPathTo("nyaa-last"));
            feedReader = new FeedReader(irc, log, dtFile, feedPatterns);
        }

        feedReader.Configure(conf);
        feedReader.Start();
    }