コード例 #1
0
        // Helper method to add a violation with no calls.
        public void AddViolation(ViolationLevel level, String description)
        {
            Violation v = new Violation();

            v.m_level    = level;
            v.m_endpoint = Endpoint;
            v.m_summary  = description;
            Violations.Add(v);
        }
コード例 #2
0
        // Helper method to add a violation with a single call
        public void AddViolation(ViolationLevel level, String description, ServiceCallItem call)
        {
            Violation v = new Violation();

            v.m_level    = level;
            v.m_endpoint = Endpoint;
            v.m_summary  = description;
            v.m_violatingCalls.Add(call);
            Violations.Add(v);
        }
コード例 #3
0
        // Helper method to add a violation with a list of calls to the list.
        public void AddViolation(ViolationLevel level, String description, IEnumerable <ServiceCallItem> calls)
        {
            Violation v = new Violation();

            v.m_level    = level;
            v.m_endpoint = Endpoint;
            v.m_summary  = description;
            v.m_violatingCalls.AddRange(calls);
            Violations.Add(v);
        }