protected override void OnStart(string[] args)
        {
            string baseAddress       = string.Format("net.tcp://{0}:{1}", System.Net.IPAddress.Any, Properties.Settings.Default.PortToListen);
            Uri    netTcpBaseAddress = new Uri(baseAddress);

            VLCServer server = new VLCServer(this.EventLog);

            host = new ServiceHost(server, netTcpBaseAddress);

            NetTcpBinding tcpBinding = BindingFactory.CreateNetTcpBinding();

            host.AddServiceEndpoint(typeof(RemoteControlService.IStreamPlayer),
                                    tcpBinding, "TcpService");

            host.Open();

            this.EventLog.WriteEntry("Stream Service Started Successfully On Port: " +
                                     Properties.Settings.Default.PortToListen.ToString());
        }
        protected override void OnStart(string[] args)
        {
            string baseAddress = string.Format("net.tcp://{0}:{1}", System.Net.IPAddress.Any, Properties.Settings.Default.PortToListen);
            Uri netTcpBaseAddress = new Uri(baseAddress);

            VLCServer server = new VLCServer(this.EventLog);

            host = new ServiceHost(server, netTcpBaseAddress);

            NetTcpBinding tcpBinding = BindingFactory.CreateNetTcpBinding();

            host.AddServiceEndpoint(typeof(RemoteControlService.IStreamPlayer),
                tcpBinding, "TcpService");

            host.Open();

            this.EventLog.WriteEntry("Stream Service Started Successfully On Port: " +
                Properties.Settings.Default.PortToListen.ToString());
        }