private void CopyContentFrom(HTTPActivityDetails sourceObject) { RemoteIPAddress = sourceObject.RemoteIPAddress; RemoteEndpointUserName = sourceObject.RemoteEndpointUserName; UserID = sourceObject.UserID; UTCDateTime = sourceObject.UTCDateTime; RequestLine = sourceObject.RequestLine; HTTPStatusCode = sourceObject.HTTPStatusCode; ReturnedContentLength = sourceObject.ReturnedContentLength; }
partial static void CreateCustomDemo(ref HTTPActivityDetails customDemoObject);
void IInformationObject.SetInstanceTreeValuesAsUnmodified() { _unmodified_OwnerInfo = OwnerInfo; if(OwnerInfo != null) ((IInformationObject) OwnerInfo).SetInstanceTreeValuesAsUnmodified(); _unmodified_ProcessorUsage = ProcessorUsage; if(ProcessorUsage != null) ((IInformationObject) ProcessorUsage).SetInstanceTreeValuesAsUnmodified(); _unmodified_StorageTransactionUsage = StorageTransactionUsage; if(StorageTransactionUsage != null) ((IInformationObject) StorageTransactionUsage).SetInstanceTreeValuesAsUnmodified(); _unmodified_NetworkUsage = NetworkUsage; if(NetworkUsage != null) ((IInformationObject) NetworkUsage).SetInstanceTreeValuesAsUnmodified(); _unmodified_RequestDetails = RequestDetails; if(RequestDetails != null) ((IInformationObject) RequestDetails).SetInstanceTreeValuesAsUnmodified(); }
public static HTTPActivityDetails CreateDefault() { var result = new HTTPActivityDetails(); return result; }
private void SetRequestLoggingData(HttpRequest request, HTTPActivityDetails requestDetails) { requestDetails.RemoteIPAddress = request.UserHostAddress; requestDetails.RemoteEndpointUserName = "******"; requestDetails.UTCDateTime = DateTime.UtcNow; requestDetails.RequestLine = String.Format("{0} {1} {2}", request.HttpMethod, request.Url.AbsoluteUri, request.ServerVariables["SERVER_PROTOCOL"]); }