private void HostService()
{
var baseAddress = new Uri("http://localhost/pluginService");
using (var host = new ServiceHost(typeof(PluginService), baseAddress))
{
host.Open();
while (serviceIsOnline)
{
Thread.Sleep(1000);
}
}
}