-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIWcfMessageTrace.cs
28 lines (26 loc) · 1.2 KB
/
IWcfMessageTrace.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace WcfApplicationInsights
{
using System;
using System.ServiceModel.Channels;
/// <summary>
/// Represents a telemetry module that also is interested
/// in tracing request messages before the request is executed.
/// </summary>
public interface IWcfMessageTrace
{
/// <summary>
/// Called after <see cref="IWcfTelemetryModule.OnBeginRequest"/>
/// but before the request is executed.
/// </summary>
/// <param name="operation">The operation context.</param>
/// <param name="request">The request message. You can modify the request by returning a new, unread Message object.</param>
void OnTraceRequest(IOperationContext operation, ref Message request);
/// <summary>
/// Called after the request is executed, but before
/// <see cref="IWcfTelemetryModule.OnEndRequest" /> is called.
/// </summary>
/// <param name="operation">The operation context.</param>
/// <param name="response">The response message. You can modify the response by returning a new, unread Message object.</param>
void OnTraceResponse(IOperationContext operation, ref Message response);
}
}