private void OnProcessRequest(object state)
{
try
{
// set the context.
SecureChannelContext.Current = m_context;
// call the service.
m_response = m_service.Invoke(m_request);
}
catch (Exception e)
{
// save any error.
m_error = e;
m_response = SaveExceptionAsResponse(e);
}
// report completion.
OperationCompleted();
}
#endregion