예제 #1
0
 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;
 }
예제 #2
0
 internal LolConnection(LolProxy proxy,ExtensionManager extManager)
 {
     _proxy = proxy;
     _extensionManager = extManager;
 }
예제 #3
0
 internal LolConnection(LolProxy proxy)
 {
     _proxy = proxy;
 }
예제 #4
0
        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();
        }