Class CompositeDestination
Provides an abstraction of a wrap around another destinations
Inheritance
System.Object
CompositeDestination
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.Log.Destinations
Assembly: NFX.dll
Syntax
public class CompositeDestination : Destination, IApplicationComponent, IDisposable, IConfigurable, IExternallyParameterized
Constructors
CompositeDestination()
Declaration
public CompositeDestination()
CompositeDestination(Destination[])
Declaration
public CompositeDestination(params Destination[] inner)
Parameters
Type | Name | Description |
---|---|---|
Destination[] | inner |
CompositeDestination(String, Destination[])
Declaration
public CompositeDestination(string name, params Destination[] inner)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
Destination[] | inner |
Properties
Destinations
Returns destinations that this destination wraps. This call is thread safe
Declaration
public IEnumerable<Destination> Destinations { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<Destination> |
Methods
Close()
Declaration
public override void Close()
Overrides
Destructor()
Declaration
protected override void Destructor()
Overrides
DoConfigure(IConfigSectionNode)
Declaration
protected override void DoConfigure(IConfigSectionNode node)
Parameters
Type | Name | Description |
---|---|---|
IConfigSectionNode | node |
Overrides
DoSend(Message)
Declaration
protected override void DoSend(Message entry)
Parameters
Type | Name | Description |
---|---|---|
Message | entry |
Overrides
Open()
Declaration
public override void Open()
Overrides
RegisterDestination(Destination)
Adds a destination to this wrapper
Declaration
public void RegisterDestination(Destination dest)
Parameters
Type | Name | Description |
---|---|---|
Destination | dest |
UnRegisterDestination(Destination)
Removes a destiantion from this wrapper, returns true if destination was found and removed
Declaration
public bool UnRegisterDestination(Destination dest)
Parameters
Type | Name | Description |
---|---|---|
Destination | dest |
Returns
Type | Description |
---|---|
System.Boolean |
Implements
System.IDisposable