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(); }
public void SetSessionGroup(ILazynetSessionGroup sessionGroup) { ServiceContext.SetSessionGroup(sessionGroup); }
public void SetSessionGroup(ILazynetSessionGroup sessionGroup) { this.SessionGroup = sessionGroup; }