示例#1
0
        private void UpdateServerType(HttpResponseMessage response)
        {
            var server = response.Headers.Server;

            if (server != null && server.Any())
            {
                var serverString = String.Join(" ", server.Select(pi => pi.Product).Where(pi => pi != null).ToStringArray());
                ServerType = new RemoteServerVersion(serverString);
                Log.To.Sync.I(Tag, "{0}: Server Version: {0}", ServerType);
            }
        }
示例#2
0
 protected void UpdateServerType(string header)
 {
     ServerType = new RemoteServerVersion(header);
     Log.To.ChangeTracker.I(Tag, "{0} Server Version: {1}", this, ServerType);
 }
 private void UpdateServerType(HttpResponseMessage response)
 {
     var server = response.Headers.Server;
     if(server != null && server.Any()) {
         var serverString = String.Join(" ", server.Select(pi => pi.Product).Where(pi => pi != null).ToStringArray());
         ServerType = new RemoteServerVersion(serverString);
         Log.To.Sync.I(Tag, "{0}: Server Version: {0}", ServerType);
     }
 }