Class MongoDBDestination
Implements destination that sends log messages into MongoDB
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.MongoDB.dll
Syntax
public class MongoDBDestination : Destination, IApplicationComponent, IDisposable, IConfigurable, IExternallyParameterized
Constructors
MongoDBDestination()
Creates a new instance of destination that stores log MongoDB
Declaration
public MongoDBDestination()
MongoDBDestination(String, String, String, String)
Creates a new instance of destination that stores log MongoDB
Declaration
public MongoDBDestination(string name, string connectString, string dbName, string collectionName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
System.String | connectString | |
System.String | dbName | |
System.String | collectionName |
Properties
DataStore
Refrences an underlying data store
Declaration
public MongoDBLogMessageDataStore DataStore { get; }
Property Value
Type | Description |
---|---|
MongoDBLogMessageDataStore |
Methods
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
Implements
System.IDisposable