private void OnConversationActivity(object sender, DdemlConversationActivityEventArgs e) { EventHandler<DdeConversationActivityEventArgs> copy; // To make this thread-safe we need to hold a local copy of the reference to the invocation list. This works because delegates are //immutable. lock (_LockObject) { copy = _ConversationActivityEvent; } if (copy != null) copy(this, new DdeConversationActivityEventArgs(e)); }
internal DdeConversationActivityEventArgs(DdemlConversationActivityEventArgs args) : base(args) { _DdemlObject = args; }