Class ZptRequestLoggingScope
A type to represent the logging scope for a single ZPT rendering request.
Inheritance
System.Object
ZptRequestLoggingScope
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: ZptSharp.Rendering
Assembly: ZptSharp.dll
Syntax
public class ZptRequestLoggingScope
Constructors
| Improve this Doc View SourceZptRequestLoggingScope(IDocumentSourceInfo, Nullable<Guid>)
Initializes a new instance of the ZptRequestLoggingScope class.
Declaration
public ZptRequestLoggingScope(IDocumentSourceInfo sourceInfo, Guid? requestId = default(Guid? ))
Parameters
Type | Name | Description |
---|---|---|
IDocumentSourceInfo | sourceInfo | Source info. |
System.Nullable<System.Guid> | requestId | Request identifier. |
Properties
| Improve this Doc View SourceRequestId
Gets a unique identifier for the rendering request/operation. This is an arbitrary ID, used to correlate log messages which relate to the same request.
Declaration
public Guid RequestId { get; }
Property Value
Type | Description |
---|---|
System.Guid | The request identifier. |
SourceInfo
Gets information about the source of the primary document being rendered.
Declaration
public IDocumentSourceInfo SourceInfo { get; }
Property Value
Type | Description |
---|---|
IDocumentSourceInfo | The document source info. |
Methods
| Improve this Doc View SourceToString()
Returns a System.String that represents the current ZptRequestLoggingScope.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String | A System.String that represents the current ZptRequestLoggingScope. |
Overrides
System.Object.ToString()