internal static DependentToken CreateWithMonitorTopic(IActivityMonitor m, bool launchActivity, out string msg)
            {
                msg = launchActivity ? _prefixLaunch : _prefixCreate;
                DependentToken t = new DependentToken(((IUniqueId)m).UniqueId, m.NextLogTime(), m.Topic);

                msg += '.';
                return(t);
            }
            /// <summary>
            /// Tries to parse a <see cref="DependentToken.ToString()"/> string.
            /// </summary>
            /// <param name="s">The string to parse.</param>
            /// <param name="t">The resulting dependent token.</param>
            /// <returns>True on success, false otherwise.</returns>
            static public bool TryParse(string s, out DependentToken t)
            {
                t = null;
                StringMatcher m = new StringMatcher(s);
                Guid          id;
                DateTimeStamp time;

                if (MatchOriginatorAndTime(m, out id, out time) && m.TryMatchText(" with"))
                {
                    string topic;
                    if (ExtractTopic(s, m.StartIndex, out topic))
                    {
                        t = new DependentToken(id, time, topic);
                        return(true);
                    }
                }
                return(false);
            }
 /// <summary>
 /// Tries to parse a <see cref="DependentToken.ToString()"/> string.
 /// </summary>
 /// <param name="s">The string to parse.</param>
 /// <param name="t">The resulting dependent token.</param>
 /// <returns>True on success, false otherwise.</returns>
 static public bool TryParse( string s, out DependentToken t )
 {
     t = null;
     StringMatcher m = new StringMatcher( s );
     Guid id;
     DateTimeStamp time;
     if( MatchOriginatorAndTime( m, out id, out time ) && m.TryMatchText( " with" ) )
     {
         string topic;
         if( ExtractTopic( s, m.StartIndex, out topic ) )
         {
             t = new DependentToken( id, time, topic );
             return true;
         }
     }
     return false;
 }
 internal static DependentToken CreateWithMonitorTopic( IActivityMonitor m, bool launchActivity, out string msg )
 {
     msg = launchActivity ? _prefixLaunch : _prefixCreate;
     DependentToken t = new DependentToken( ((IUniqueId)m).UniqueId, m.NextLogTime(), m.Topic );
     msg += '.';
     return t;
 }