Esempio n. 1
0
        public static PSDeploymentEventDataHttpRequest ToPSDeploymentEventDataHttpRequest(this HttpRequestInfo httpRequest)
        {
            if (httpRequest == null)
            {
                return(null);
            }
            PSDeploymentEventDataHttpRequest psObject = new PSDeploymentEventDataHttpRequest
            {
                ClientId        = httpRequest.ClientRequestId,
                Method          = httpRequest.Method,
                Url             = httpRequest.Uri,
                ClientIpAddress = httpRequest.ClientIpAddress
            };

            return(psObject);
        }
 public static PSDeploymentEventDataHttpRequest ToPSDeploymentEventDataHttpRequest(this HttpRequestInfo httpRequest)
 {
     if (httpRequest == null)
     {
         return null;
     }
     PSDeploymentEventDataHttpRequest psObject = new PSDeploymentEventDataHttpRequest
     {
         ClientId = httpRequest.ClientRequestId,
         Method = httpRequest.Method,
         Url = httpRequest.Uri,
         ClientIpAddress = httpRequest.ClientIpAddress
     };
     return psObject;
 }