コード例 #1
0
ファイル: ServiceList.cs プロジェクト: JeffM2501/LunarLambda
        public static void RemoveLocalService()
        {
            if (LocalService != null && LocalService.WasPublished)
            {
                InternetDiscoveryConnection.PushPublicSevice(LocalService);
            }

            LocalService = null;

            CallUpdateNotifiation();
        }
コード例 #2
0
ファイル: ServiceList.cs プロジェクト: JeffM2501/LunarLambda
        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();
        }