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();
        }
示例#2
0
        /// <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();
        }
示例#3
0
        /// <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();
        }
示例#4
0
        //------------------------------------------------------------------------------------------------------------------
        //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);
        }
示例#5
0
        /// <inheritdoc />
        protected override void OnInitialize()
        {
            base.OnInitialize();

            Host = HostFactory.CreateHost <TService>(HostConfig);
        }
        /// <inheritdoc />
        protected override void OnInitialize()
        {
            base.OnInitialize();

            _host = HostFactory.CreateHost <IInteractionService>(HostConfig);
        }
示例#7
0
        /// <inheritdoc />
        protected override void OnInitialize()
        {
            base.OnInitialize();

            Host = HostFactory.CreateHost(ServiceContract, HostConfig);
        }