Exemplo n.º 1
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();
 }
Exemplo n.º 2
0
 public void SetSessionGroup(ILazynetSessionGroup sessionGroup)
 {
     ServiceContext.SetSessionGroup(sessionGroup);
 }
Exemplo n.º 3
0
 public void SetSessionGroup(ILazynetSessionGroup sessionGroup)
 {
     this.SessionGroup = sessionGroup;
 }