コード例 #1
0
        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;
        }
コード例 #2
0
 internal ServiceImplementation(Context context)
     : base(context)
 {
 }
コード例 #3
0
ファイル: Service.cs プロジェクト: tospie/SINFONI
 protected Service(Context aContext)
 {
     Context = aContext;
 }
コード例 #4
0
ファイル: ServiceWrapper.cs プロジェクト: tospie/SINFONI
 internal ServiceWrapper(Context context)
     : base(context)
 {
 }