コード例 #1
0
        public object GetSubscribedChannelsMethod(string sessionid)
        {
            try
            {
                ChannelsService.Service1 clientWCFSubscribed = new ChannelsService.Service1();

                var subscribedChannelsListWCF = clientWCFSubscribed.GetSubscribedChannelIds(sessionid);

                return(subscribedChannelsListWCF);
            }
            catch (Exception e)
            {
                return(null);
            }
        }
コード例 #2
0
        public object GetChannelsMethod()
        {
            try
            {
                ChannelsService.Service1 clientWCF = new ChannelsService.Service1();

                var channelsListWCF = clientWCF.GetChannels();

                return(channelsListWCF);
            }
            catch (Exception e)
            {
                return(null);
            }
        }