public ITransportConnection OpenConnection(string host, int port, Context context, Action<Connection> onConnected)
        {
            if (port == -1 || host == null)
                throw new Error(ErrorCode.CONNECTION_ERROR, "No port and/or IP address is present in configuration.");

            ITransportConnection transportConnection = webSocketFactory.Construct("ws://" + host + ":" + port + "/");
            transportConnection.Error += (sender, e) => {
                logger.Warn("Error in connection to " + host + ":" + port, e.Exception);
            };
            transportConnection.Open();
            return transportConnection;
        }
Example #2
0
 internal ServiceImplementation(Context context)
     : base(context)
 {
 }
Example #3
0
 protected Service(Context aContext)
 {
     Context = aContext;
 }
Example #4
0
 internal ServiceWrapper(Context context)
     : base(context)
 {
 }