internal LolClient(string directory, PropertiesFile properties, LolProxy proxy) { if (proxy == null) throw new ArgumentNullException("proxy"); if(!Directory.Exists(directory)) throw new ArgumentException("directory"); GameData = new LolClientGameData(Path.Combine(directory, GameDataFile)); Images = new LolClientImages(directory, GameData); Connection=new LolConnection(proxy); Properties = properties; }
internal LolConnection(LolProxy proxy,ExtensionManager extManager) { _proxy = proxy; _extensionManager = extManager; }
internal LolConnection(LolProxy proxy) { _proxy = proxy; }
void InitProxy() { if (_certificate == null) return; _proxy = new LolProxy(new IPEndPoint(IPAddress.Loopback, RtmpPort), new Uri(string.Format("rtmps://{0}:{1}", _rtmpAddress, RtmpPort)), _serializationContext, _certificate); _proxy.AcknowledgeMessageReceived += OnAckMessageReceived; _proxy.AsyncMessageReceived += OnAsyncMessageReceived; _proxy.ErrorMessageReceived += OnErrorMessageReceived; _proxy.RemotingMessageReceived += OnRemotingMessageReceived; _proxy.Disconnected += proxy_Disconnected; _proxy.Connected += proxy_Connected; _proxy.Listen(); }