public void Dispose() { if (!string.IsNullOrWhiteSpace(Address)) { var url = URL.valueOf(Address); //first unregiste this provider RegistryHost.DeregisterService(url); } //them stop the provider DoDispose(); }
public void Export() { //first start the service provider DoExport(); if (!string.IsNullOrWhiteSpace(Address)) { var url = URL.valueOf(Address); //registe this provoder RegistryHost.RegisterService(url); } }