Exemplo n.º 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;
 }
Exemplo n.º 2
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();
        }
Exemplo n.º 3
0
 internal LolClient(string directory, YamlFile properties, LolProxy proxy, Process process, ExtensionManager extManager)
 {
     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, extManager);
     Process          = process;
     Properties       = properties;
     ExtensionManager = extManager;
 }
Exemplo n.º 4
0
        void InitProxy()
        {
            if (_certificate == null)
            {
                return;
            }
#if !LCU
            _proxy = new LolProxy(new IPEndPoint(IPAddress.Loopback, RtmpPort), new Uri(string.Format("rtmps://{0}:{1}", _rtmpAddress, RtmpPort)), _serializationContext, _certificate);
#else
            //CEF does not allow self-signed certs so we have to disable TLS for the new client
            //(locally only, TLS will still be used to communicate with the actual server)
            //TLS can be disabled for the client in <clientdeploypath>/system.yaml
            _proxy = new LolProxy(new IPEndPoint(IPAddress.Loopback, RtmpPort), new Uri(string.Format("rtmps://{0}:{1}", _rtmpAddress, RtmpPort)), _serializationContext);
#endif

            _proxy.AcknowledgeMessageReceived += OnAckMessageReceived;
            _proxy.AsyncMessageReceived       += OnAsyncMessageReceived;
            _proxy.ErrorMessageReceived       += OnErrorMessageReceived;
            _proxy.RemotingMessageReceived    += OnRemotingMessageReceived;
            _proxy.Disconnected += proxy_Disconnected;
            _proxy.Connected    += proxy_Connected;
            _proxy.Listen();
        }
Exemplo n.º 5
0
 internal LolConnection(LolProxy proxy, ExtensionManager extManager)
 {
     _proxy            = proxy;
     _extensionManager = extManager;
 }
Exemplo n.º 6
0
 internal LolConnection(LolProxy proxy)
 {
     _proxy = proxy;
 }