예제 #1
0
 public void Dispose()
 {
     if (!string.IsNullOrWhiteSpace(Address))
     {
         var url = URL.valueOf(Address);
         //first unregiste this provider
         RegistryHost.DeregisterService(url);
     }
     //them stop the provider
     DoDispose();
 }
예제 #2
0
        public void Export()
        {
            //first start the service provider
            DoExport();

            if (!string.IsNullOrWhiteSpace(Address))
            {
                var url = URL.valueOf(Address);
                //registe this provoder
                RegistryHost.RegisterService(url);
            }
        }