Class WhiteList<T>
A sequence of targets that are approved.
Implements
IEnumerable<T>
Inherited Members
Namespace: PeerTalk
Assembly: PeerTalk.dll
Syntax
public class WhiteList<T> : ConcurrentBag<T>, IProducerConsumerCollection<T>, ICollection, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable, IPolicy<T> where T : IEquatable<T>
Type Parameters
Name | Description |
---|---|
T | The type of object that the rule applies to. |
Remarks
Only targets that are defined will pass. If no targets are defined, then anything passes.
Methods
| Improve this Doc View SourceIsAllowed(T)
Declaration
public bool IsAllowed(T target)
Parameters
Type | Name | Description |
---|---|---|
T | target |
Returns
Type | Description |
---|---|
Boolean |