static void Main(string[] args) { ServiceHost host = SmplSvcUtils.SecureHostCreate(); Console.WriteLine("WCF service is running, press any key to close it."); Console.ReadLine(); SmplSvcUtils.HostDelete(host); }
public override void OnStop() { SmplSvcUtils.HostDelete(host); base.OnStop(); }