コード例 #1
0
 internal void ConnectionCreated()
 {
     if (cluster.user != null)
     {
         AdminCommand command = new AdminCommand(dataBuffer, 0);
         dataLength = command.SetAuthenticate(cluster, node.sessionToken);
         eventArgs.SetBuffer(dataBuffer, 0, dataLength);
         dataOffset = 0;
         Send();
         return;
     }
     ConnectionReady();
 }
コード例 #2
0
        private void ConnectionCreated()
        {
            if (cluster.user != null)
            {
                inAuthenticate = true;
                // Authentication messages are small.  Set a reasonable upper bound.
                dataOffset = 200;
                SizeBuffer();

                AdminCommand command = new AdminCommand(dataBuffer, dataOffset);
                dataLength = command.SetAuthenticate(cluster, node.sessionToken);
                eventArgs.SetBuffer(dataBuffer, dataOffset, dataLength - dataOffset);
                Send();
                return;
            }
            ConnectionReady();
        }
コード例 #3
0
        private void ConnectionCreated()
        {
            if (complete != 0)
            {
                AlreadyCompleted(complete);
                return;
            }

            if (cluster.user != null)
            {
                inAuthenticate = true;
                // Authentication messages are small.  Set a reasonable upper bound.
                dataOffset = 200;
                SizeBuffer();

                AdminCommand command = new AdminCommand(dataBuffer);
                dataLength = command.SetAuthenticate(cluster.user, cluster.password);
                dataOffset = 0;
                eventArgs.SetBuffer(dataBuffer, dataOffset, dataLength);
                Send();
                return;
            }
            ConnectionReady();
        }
コード例 #4
0
        private void ConnectionCreated()
        {
            if (complete != 0)
            {
                AlreadyCompleted(complete);
                return;
            }

            if (cluster.user != null)
            {
                inAuthenticate = true;
                // Authentication messages are small.  Set a reasonable upper bound.
                dataOffset = 200;
                SizeBuffer();

                AdminCommand command = new AdminCommand(dataBuffer, dataOffset);
                dataLength = command.SetAuthenticate(cluster.user, cluster.password);
                eventArgs.SetBuffer(dataBuffer, dataOffset, dataLength - dataOffset);
                Send();
                return;
            }
            ConnectionReady();
        }