Beispiel #1
0
 public LazynetLuaService(ILazynetContext context, string filename)
     : base(context)
 {
     this.Filename = filename;
     this.Lua      = new LazynetLua();
     this.OpenLuaApi();
 }
Beispiel #2
0
 public LazynetService(ILazynetContext context)
 {
     this.Context           = context;
     this.ID                = context.GetGlobaServiceID();
     this.Alias             = this.ID.ToString();
     this.MessageQueue      = new Queue <LazynetServiceMessage>();
     this.ThreadHandle      = new Thread(this.ThreadMain);
     this.ManualEvent       = new ManualResetEvent(true);
     this.State             = LazynetServiceState.UnStart;
     this.NormalTriggerDict = new Dictionary <string, ILazynetTrigger>();
     this.SystemTriggerDict = new Dictionary <string, ILazynetTrigger>();
     this.SessionGroup      = new LazynetDefaultSessionGroup();
     this.RegisterSystemTrigger();
 }
Beispiel #3
0
 public LazynetActionProxy(ILazynetContext context)
 {
     this.ActionManager = new LazynetActionManager();
     this.Context       = context;
 }
Beispiel #4
0
 public LazynetSharpService(ILazynetContext context)
     : base(context)
 {
 }