public LazynetClient(LazynetClientConfig config, ILazynetSocketEvent socketEvent) { this.EventloopGroup = new MultithreadEventLoopGroup(); this.Config = config; this.SocketEvent = socketEvent; }
public LazynetClientInitalizer(LazynetClientConfig config, ILazynetSocketEvent socketEvent) { this.SocketType = config.SocketType; this.WebsocketPath = config.WebsocketPath; this.SocketEvent = socketEvent; }
/// <summary> /// socketEvent绑定之前必须赋值 /// </summary> /// <param name="config"></param> public LazynetClient(LazynetClientConfig config) : this(config, null) { }