Ejemplo n.º 1
0
 public Dictionary <string, string> RequestServerInfo()
 {
     if (!CheckBeforeRequest())
     {
         return(null);
     }
     return(client.RequestServerInfo());
 }
Ejemplo n.º 2
0
        public Dictionary <string, string> GetServiceOnIP(string ip)
        {
            try
            {
                InstanceContext instanceContext = new InstanceContext(this);
                var             temp            = new SharePClient(instanceContext);
                string          servicePath     = temp.Endpoint.ListenUri.AbsolutePath;


                temp.Endpoint.Address = new EndpointAddress("net.tcp://" + ip + ":8000" + servicePath);

                temp.Open();

                var serviceData = temp.RequestServerInfo();

                temp.Close();

                return(serviceData);
            }
            catch
            {
                return(null);
            }
        }