public void Bind(string tag, string title) { ITaggedTransaction t = _mTaggedTransactions.Get(tag); if (t != null) { IMessageTree tree = ThreadLocalMessageTree; if (null != tree) { t.Start(); t.Bind(tag, tree.MessageId, title); } } }
public void Bind(string tag, string title) { ITaggedTransaction t = null; if (_taggedTransactions.TryGetValue(tag, out t)) { IMessageTree tree = ThreadLocalMessageTree; if (tree != null) { if (tree.MessageId == null) { tree.MessageId = NextMessageId(); } t.Start(); t.Bind(tag, tree.MessageId, title); } } }