/// <summary> /// Increment the sequence number and generate the new ActviityId /// </summary> /// <returns>ActivityId</returns> internal static ActivityId Next() { if (tlsActivity == null) { tlsActivity = new ActivityId(); } tlsActivity.Increment(); return(new ActivityId(tlsActivity)); }