コード例 #1
0
    public CxWSResponseResultCollection GetResults(string sessionId, long scanId)
    {
        CxWSResponseResultCollection result = _web_Service.GetResults(sessionId, scanId);

        new CxTeamMentor().TMFilterFor_CxWSResponseResultCollection(result);
        return(result);
    }
コード例 #2
0
    public void TMFilterFor_CxWSResponseResultCollection(CxWSResponseResultCollection cxWsResponseResultCollection)
    {
        AuditScanResult[] results = cxWsResponseResultCollection.ResultCollection.Results;

        foreach (AuditScanResult result in results)
        {
            result.CWE = TeamMentorIdentifier+ result.QueryId; // set the Cwe value to the negative of the QueryId
            result.QueryName += "_TM"; // Temp query name minor change
        }
    }
コード例 #3
0
    public void TMFilterFor_CxWSResponseResultCollection(CxWSResponseResultCollection cxWsResponseResultCollection)

    {
        AuditScanResult[] results = cxWsResponseResultCollection.ResultCollection.Results;

        foreach (AuditScanResult result in results)
        {
            result.CWE        = TeamMentorIdentifier + result.QueryId; // set the Cwe value to the negative of the QueryId
            result.QueryName += "_TM";                                 // Temp query name minor change
        }
    }