Example #1
0
        public ChoIniDocumentService(string name, ChoIniDocument iniDocument)
        {
            ChoGuard.ArgumentNotNull(name, "Name");
            ChoGuard.ArgumentNotNull(iniDocument, "IniDocument");

            _iniDocument      = iniDocument;
            _queuedMsgService = new ChoQueuedMsgService <string>(name, ChoStandardQueuedMsgObject <string> .QuitMsg, false, false,
                                                                 QueueMessageHandler);
            _timerService = new ChoTimerService <string>(String.Format("{0}_Timer", _iniDocument.GetHashCode()),
                                                         new ChoTimerService <string> .ChoTimerServiceCallback(OnTimerServiceCallback), null, 1000, 5000, false);
        }