<commit_before>#region S# License
/******************************************************************************************
NOTICE!!!  This program and source code is owned and licensed by
StockSharp, LLC, www.stocksharp.com
Viewing or use of this code requires your acceptance of the license
agreement found at https://github.com/StockSharp/StockSharp/blob/master/LICENSE
Removal of this comment is a violation of the license agreement.

Project: StockSharp.Messages.Messages
File: ConnectMessage.cs
Created: 2015, 11, 11, 2:32 PM

Copyright 2010 by StockSharp, LLC
*******************************************************************************************/
#endregion S# License
namespace StockSharp.Messages
{
	using System;
	using System.Runtime.Serialization;

	/// <summary>
	/// Connect to a server message (uses as a command in outgoing case, event in incoming case).
	/// </summary>
	[DataContract]
	[Serializable]
	public class ConnectMessage : BaseConnectionMessage, IServerTimeMessage
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="ConnectMessage"/>.
		/// </summary>
		public ConnectMessage()
			: base(MessageTypes.Connect)
		{
		}

		/// <summary>
		/// Create a copy of <see cref="ConnectMessage"/>.
		/// </summary>
		/// <returns>Copy.</returns>
		public override Message Clone()
		{
			var clone = new ConnectMessage();
			CopyTo(clone);
			return clone;
		}

		DateTimeOffset IServerTimeMessage.ServerTime
		{
			get => LocalTime;
			set => LocalTime = value;
		}
	}
}<commit_msg>ConnectMessage. SessionId property.<commit_after>#region S# License
/******************************************************************************************
NOTICE!!!  This program and source code is owned and licensed by
StockSharp, LLC, www.stocksharp.com
Viewing or use of this code requires your acceptance of the license
agreement found at https://github.com/StockSharp/StockSharp/blob/master/LICENSE
Removal of this comment is a violation of the license agreement.

Project: StockSharp.Messages.Messages
File: ConnectMessage.cs
Created: 2015, 11, 11, 2:32 PM

Copyright 2010 by StockSharp, LLC
*******************************************************************************************/
#endregion S# License
namespace StockSharp.Messages
{
	using System;
	using System.Runtime.Serialization;

	/// <summary>
	/// Connect to a server message (uses as a command in outgoing case, event in incoming case).
	/// </summary>
	[DataContract]
	[Serializable]
	public class ConnectMessage : BaseConnectionMessage, IServerTimeMessage
	{
		/// <summary>
		/// Initializes a new instance of the <see cref="ConnectMessage"/>.
		/// </summary>
		public ConnectMessage()
			: base(MessageTypes.Connect)
		{
		}

		/// <summary>
		/// Optional server session id.
		/// </summary>
		[DataMember]
		public string SessionId { get; set; }

		/// <summary>
		/// Create a copy of <see cref="ConnectMessage"/>.
		/// </summary>
		/// <returns>Copy.</returns>
		public override Message Clone()
		{
			var clone = new ConnectMessage { SessionId = SessionId };
			CopyTo(clone);
			return clone;
		}

		DateTimeOffset IServerTimeMessage.ServerTime
		{
			get => LocalTime;
			set => LocalTime = value;
		}
	}
}
{'fraction_non_alphanumeric': 0.21359826140950017, 'fraction_numerical': 0.009313877677739833, 'mean_word_length': 4.171749598715891, 'pattern_counts': {'":': 0, '<': 25, '<?xml version=': 0, '>': 29, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2069322', 'n_tokens_mistral': 970, 'n_tokens_neox': 840, 'n_words': 282}