CK.Core.ActivityMonitor.DependentToken.TryParseStartMessage C# (CSharp) Method

TryParseStartMessage() static public method

Attempts to parse the start message of a dependent activity (tagged with ActivityMonitor.Tags.StartDependentActivity).
static public TryParseStartMessage ( string startMessage, System.Guid &id, DateTimeStamp &time ) : bool
startMessage string The start message to parse.
id System.Guid The originator monitor identifier.
time DateTimeStamp The creation time of the dependent activity.
return bool
            static public bool TryParseStartMessage( string startMessage, out Guid id, out DateTimeStamp time )
            {
                int idx = startMessage.IndexOf( '{' );
                if( idx <= 0 )
                {
                    id = Guid.Empty;
                    time = DateTimeStamp.MinValue;
                    return false;
                }
                return MatchOriginatorAndTime( new StringMatcher( startMessage, idx ), out id, out time );
            }