Exemple #1
0
 public void Connect(Beetle.Express.IServer server, Beetle.Express.ChannelConnectEventArgs e)
 {
     try
     {
         mApplication.OnConnected(new Events.EventSessionConnectArgs {
             Application = Application, ChannelConnectArgs = e
         });
     }
     catch (Exception e_)
     {
         "{0} process connect event error".Log4Error(e_, e.Channel.EndPoint);
     }
     if (!e.Cancel)
     {
         e.Channel.Package         = (IPackage)Application.PacketAnalyzer.Clone();
         e.Channel.Package.Receive = OnReceiveMessage;
         e.Channel.Package.Channel = e.Channel;
         "{0} connected!".Log4Info(e.Channel.EndPoint);
     }
 }
Exemple #2
0
 public void Connect(Beetle.Express.IServer server, Beetle.Express.ChannelConnectEventArgs e)
 {
 }