コード例 #1
0
        /// <summary>
        /// Constructor.
        /// </summary>
        public ConnectCommand
        (
            [NotNull] IIrbisConnection connection
        )
            : base(connection)
        {
            Log.Trace("ConnectCommand::Constructor");

            // TODO fix it!
            IrbisConnection nativeConnection = connection as IrbisConnection;

            if (!ReferenceEquals(nativeConnection, null))
            {
                nativeConnection.GenerateClientID();
                nativeConnection.ResetCommandNumber();
            }
        }