コード例 #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);
        }
コード例 #2
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;
 }