예제 #1
0
        public string GetUsername()
        {
            var friend = HyvesClientChannel.PerformRequest(
                String.Format("http://data.hyves-api.nl/?userid={0}&ha_method=users.get&ha_version=experimental&ha_format=xml&ha_fancylayout=false",
                              ChannelContext.Current.ClientContext.GetSetting("/Channels/Hyves/UserId")));

            return(friend.Element("user").Element("displayname").Value);
        }
예제 #2
0
        public IClientInputChannel Clone()
        {
            HyvesClientChannel channel = new HyvesClientChannel();
            channel.Hostname = Hostname;
            channel.Port = Port;
            channel.IsSecured = IsSecured;
            channel.MaxConcurrentConnections = MaxConcurrentConnections;
            channel.CredentialsProvider = CredentialsProvider;

            return channel;
        }
        public IClientInputChannel Clone()
        {
            HyvesClientChannel channel = new HyvesClientChannel();

            channel.Hostname  = Hostname;
            channel.Port      = Port;
            channel.IsSecured = IsSecured;
            channel.MaxConcurrentConnections = MaxConcurrentConnections;
            channel.CredentialsProvider      = CredentialsProvider;

            return(channel);
        }