コード例 #1
0
ファイル: ServerLogger.cs プロジェクト: zoombapup/ATF
        // Initializes the connection, if this hasn't occurred already. Can be called multiple times.
        private void InitializeConnection()
        {
            if (m_recapConnection != null)
            {
                return;
            }

            // Now that ApplicationVersion and ApplicationName are set, we can proceed.
            m_recapConnection = new RecapConnection(ServerName, ApplicationName, ApplicationVersion);

            // RecapConnection's default behavior is to throw the exception again. This leads to an unhandled
            //  exception on a worker thread that brings the whole app down. Exceptions are thrown under normal
            //  conditions such as not having a network connection. Since 'callback' can't be null, let's use
            //  our own do-nothing exception handler.
            m_recapConnection.callback = HandleRecapException;
        }
コード例 #2
0
ファイル: ServerLogger.cs プロジェクト: sbambach/ATF
        // Initializes the connection, if this hasn't occurred already. Can be called multiple times.
        private void InitializeConnection()
        {
            if (m_recapConnection != null)
                return;

            // Now that ApplicationVersion and ApplicationName are set, we can proceed.
            m_recapConnection = new RecapConnection(ServerName, ApplicationName, ApplicationVersion);

            // RecapConnection's default behavior is to throw the exception again. This leads to an unhandled
            //  exception on a worker thread that brings the whole app down. Exceptions are thrown under normal
            //  conditions such as not having a network connection. Since 'callback' can't be null, let's use
            //  our own do-nothing exception handler.
            m_recapConnection.callback = HandleRecapException;
        }