private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            //When self hosting WCF services, you must configure the service by setting properties and calling methods of the ServiceHost
            //class. but it is ually easier to put all your WCF configs in a seperate config file, either web.config, or app.config

            service = new AppControlService(this);
            host    = new ServiceHost(service);
            host.Open();
        }
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     service = new AppControlService(this);
     host    = new ServiceHost(service);
     host.Open();
 }