public void Receive(Beetle.Express.IServer server, Beetle.Express.ChannelReceiveEventArgs e) { if (Encoding.UTF8.GetString(e.Data.Array, e.Data.Offset, e.Data.Count) == "GETSN") { byte[] sn = mCreate.GetValueData(); Beetle.Express.Data data = new Beetle.Express.Data(); data.SetBuffer(sn, 0, 8); e.Channel.Server.Send(data, e.Channel); } else { e.Channel.Dispose(); } }