public OperationContext(IMonitoredItem monitoredItem)
{
if (monitoredItem == null) throw new ArgumentNullException("monitoredItem");
m_channelContext = null;
m_session = monitoredItem.Session;
if (m_session != null)
{
m_identity = m_session.Identity;
m_preferredLocales = m_session.PreferredLocales;
}
m_diagnosticsMask = DiagnosticsMasks.SymbolicId;
m_stringTable = new StringTable();
m_auditLogEntryId = null;
m_requestId = 0;
m_requestType = RequestType.Unknown;
m_clientHandle = 0;
m_operationDeadline = DateTime.MaxValue;
}
#endregion