public static void RemoveLocalService() { if (LocalService != null && LocalService.WasPublished) { InternetDiscoveryConnection.PushPublicSevice(LocalService); } LocalService = null; CallUpdateNotifiation(); }
public static void RegisterLocalService(HostedService localService, bool publish) { localService.IsLocal = true; if (LocalService != null && LocalService.WasPublished) { InternetDiscoveryConnection.PushPublicSevice(LocalService); } LocalService = localService; if (publish) { InternetDiscoveryConnection.PushPublicSevice(localService); } CallUpdateNotifiation(); }