private void SetupWcf() { // you can have many WCF services here // ... IBulkRules syncService = new BulkRulesService(...); _bulkRulesWcfHost = new WcfHost(syncService, "BulkRulesService"); _bulkRulesWcfHost.Start(); }
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(); }