Esempio n. 1
0
    /// <summary>
    /// CreateCase.  This interface function Creates new Case using container id
    ///
    /// Arguments:
    ///     containerid: The container id
    /// Exceptions:
    ///     none
    /// Return:
    ///     Caseid
    /// </summary>
    public string CreateCase(string containerid)
    {
        string caseid = null;

        try
        {
            m_XRayHost = GetXrayHost();
            caseid     = m_XRayHost.makeCase(containerid);
        }
        catch (CargoException e1)
        {
//          MessageBox.Show(e1.error_msg);
            m_CargoHostLogger.logError("OM - " + e1.error_msg);
        }
        return(caseid);
    }
Esempio n. 2
0
    /// <summary>
    /// GetXrayHost.  This helper function gets XRayHost object from CargoHost module
    ///
    /// Arguments:
    ///     none
    /// Exceptions:
    ///     none
    /// Return:
    ///     XRayHost
    /// </summary>
    private XRayHost GetXrayHost()
    {
        try
        {
            m_XRayHost = (XRayHost)m_NameService.resolve(m_ncXrayHost);
        }
        catch (CargoException e1)
        {
//          MessageBox.Show(e1.error_msg);
            m_CargoHostLogger.logError("OM - " + e1.error_msg);
        }
        catch (omg.org.CORBA.AbstractCORBASystemException a)
        {
//          MessageBox.Show(a.ToString());
            m_CargoHostLogger.logError("OM - " + a.ToString());
        }

        return(m_XRayHost);
    }
Esempio n. 3
0
    /// <summary>
    /// CreateCase.  This interface function Creates new Case using container id
    ///
    /// Arguments:
    ///     containerid: The container id
    /// Exceptions:
    ///     none
    /// Return:
    ///     Caseid
    /// </summary>
    public string CreateCase(string containerid)
    {
        string caseid = null;

        try
        {
            m_XRayHost = GetXrayHost();
            caseid = m_XRayHost.makeCase(containerid);
        }
        catch (CargoException e1)
        {
//          MessageBox.Show(e1.error_msg);
            m_CargoHostLogger.logError("OM - " + e1.error_msg);
        }
        return caseid;

    }
Esempio n. 4
0
    /// <summary>
    /// GetXrayHost.  This helper function gets XRayHost object from CargoHost module
    ///
    /// Arguments:
    ///     none
    /// Exceptions:
    ///     none
    /// Return:
    ///     XRayHost
    /// </summary>
    private XRayHost GetXrayHost()
    {
        try
        {
            m_XRayHost = (XRayHost)m_NameService.resolve(m_ncXrayHost);
        }
        catch (CargoException e1)
        {
//          MessageBox.Show(e1.error_msg);
            m_CargoHostLogger.logError("OM - " + e1.error_msg);
        }
        catch ( omg.org.CORBA.AbstractCORBASystemException a)
        {
//          MessageBox.Show(a.ToString());
            m_CargoHostLogger.logError("OM - " + a.ToString());
        }

        return m_XRayHost;
    }