File: system\security\policy\iruntimeevidencefactory.cs
Project: ndp\clr\src\bcl\mscorlib.csproj (mscorlib)
// ==++==
// 
//   Copyright (c) Microsoft Corporation.  All rights reserved.
// 
// ==--==
// <OWNER>ShawnFa</OWNER>
// 
 
using System;
using System.Collections.Generic;
 
namespace System.Security.Policy
{
    /// <summary>
    ///     IRuntimeEvidenceFactory is implemented by runtime types which the CLR knows how to delay
    ///     generate evidence for.  It is used by the Evidence class to get evidence on demand when we first
    ///     need it.
    /// </summary>
    internal interface IRuntimeEvidenceFactory
    {
        /// <summary>
        ///     Object which the evidence generated by this factory is used for
        /// </summary>
        IEvidenceFactory Target { get; }
 
        /// <summary>
        ///     Get the collection of evidence objects supplied by the factory itself, rather than by the
        ///     runtime.
        /// </summary>
        IEnumerable<EvidenceBase> GetFactorySuppliedEvidence();
 
        /// <summary>
        ///     Generate a specific type of evidence for this object, returning null if the specified type of
        ///     evidence cannot be generated.
        /// </summary>
        EvidenceBase GenerateEvidence(Type evidenceType);
    }
}