public override void Start() { ServiceManager = ServiceManagerFactory.Create(SimpleHelloWorldWcfSvcMgr.ComponentName); // Start wcf host with the binding specific service Service = HostFactory.CreateHost <ISimpleHelloWorldWcfService>(Config.ConnectorHost); Service.Start(); }
/// <inheritdoc /> public override void Start() { // Link service manager delegate ServiceManager.Initialize(); // Start wcf host with the binding specific service Service = HostFactory.CreateHost <TService>(Config.ConnectorHost); Service.Start(); }
/// <inheritdoc /> public virtual void Start() { #if USE_WCF _host = HostFactory.CreateHost(typeof(TEndpoint), Config.ProvidedEndpoint); #else _host = EndpointHostFactory.CreateHost(typeof(TEndpoint), null); #endif _host.Start(); }
//------------------------------------------------------------------------------------------------------------------ //using GreatNounList //------------------------------------------------------------------------------------------------------------------ //using local server private IAnalysisHost InitAnalysisHost(string[] args) { IAnalysisHost h; string modelDir = null; var splatAnalyzers = new List <string>(); //modelDir = args.Length != 0 ? args[0] : Environment.GetEnvironmentVariable("SPLAT_MODEL_DIR"); modelDir = args[0]; if (string.IsNullOrEmpty(modelDir)) { throw new ArgumentException("Model Directory needs to be set for SPLAT to initialize.\n Pass the Model Directory as the first argument or set Environment variable SPLAT_MODEL_DIR"); } //Console.WriteLine("Environment variable SPLAT_MODEL_DIR is: " + modelDir); if (args.Length > 1) { splatAnalyzers = args[1].Split(new char[] { ';', ',' }).ToList(); //string[] splatAnalyzers = new string[] { "Chunker", "Constituency_Tree", "Dependency_Tree", "Katakana_Transliterator", "Lemmas", "Named_Entities", "POS_Tags", "Semantic_Roles", "Sentiment", "Stemmer", "Tokens", "Triples" }; //splatAnalyzers.Add("BaseForms"); } h = HostFactory.CreateHost(modelDir, splatAnalyzers); //Console.WriteLine("Finished loading models for SPLAT."); return(h); }
/// <inheritdoc /> protected override void OnInitialize() { base.OnInitialize(); Host = HostFactory.CreateHost <TService>(HostConfig); }
/// <inheritdoc /> protected override void OnInitialize() { base.OnInitialize(); _host = HostFactory.CreateHost <IInteractionService>(HostConfig); }
/// <inheritdoc /> protected override void OnInitialize() { base.OnInitialize(); Host = HostFactory.CreateHost(ServiceContract, HostConfig); }