public BulkRulesService(IBulkRulesManager bulkRulesManagerMgr) { if (bulkRulesManagerMgr == null) { throw new ArgumentNullException("bulkRulesManagerMgr"); } _bulkRulesManagerMgr = bulkRulesManagerMgr; _log = LogManager.GetLogger(BlLog.EventProcessingLog); _wcfCall = new WcfCall(); }
private void SetupWcf() { _logHelper.StartTimerFor("Wcf services"); IRule ruleService = new RuleService(_nesper); _ruleWcfHost = new WcfHost(ruleService, "RuleService"); _ruleWcfHost.Start(); _rulesMgr = new BulkRulesManager(_nesper); IBulkRules syncService = new BulkRulesService(_rulesMgr); _bulkRulesWcfHost = new WcfHost(syncService, "BulkRulesService"); _bulkRulesWcfHost.Start(); _logHelper.StopAndLogTime(); }