public PXSocketClient(string clientId, IResolverContext context, Func <IPXProtocol> protocolFactory) { Id = clientId; this.protocolFactory = protocolFactory; this.encoder = new PXMessageEncoder(context.Handlers().GetHandlableMessageTypes()); this.context = context; }