Class MirroringMonitoringDataSaver
This class is a helper class to save MirrorinMonitoringData to file Load the MirrorinMonitoringData from file in memory
Inheritance
Implements
Inherited Members
Namespace: EPiServer.MirroringService.MirroringMonitoring
Assembly: EPiServer.Enterprise.dll
Version: 8.11.0Syntax
public class MirroringMonitoringDataSaver : IDisposable
Constructors
MirroringMonitoringDataSaver(Guid)
Initializes a new instance of the MirroringMonitoringDataSaver class.
Declaration
public MirroringMonitoringDataSaver(Guid context)
Parameters
Type | Name | Description |
---|---|---|
System.Guid | context | The context. |
MirroringMonitoringDataSaver(FileInfo)
Initializes a new instance of the MirroringMonitoringDataSaver class.
Declaration
public MirroringMonitoringDataSaver(FileInfo fileInfo)
Parameters
Type | Name | Description |
---|---|---|
System.IO.FileInfo | fileInfo | Information for the offline log file. |
Properties
FileInfo
Declaration
public FileInfo FileInfo { get; protected set; }
Property Value
Type | Description |
---|---|
System.IO.FileInfo |
MirroringMonitoringData
Gets or sets the mirroring monitoring data.
Declaration
public MirroringMonitoringData MirroringMonitoringData { get; protected set; }
Property Value
Type | Description |
---|---|
MirroringMonitoringData | The mirroring monitoring data. |
NumberOfItemsBeforeSave
Declaration
public int NumberOfItemsBeforeSave { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
Add(MirroringStatusEventArgs)
Adds the specified data.
Declaration
public void Add(MirroringStatusEventArgs data)
Parameters
Type | Name | Description |
---|---|---|
MirroringStatusEventArgs | data | The MirroringStatusEventArgs instance containing the event data. |
Append(Boolean)
Appends monitoring data.
Declaration
public void Append(bool forceSave)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | forceSave | if set to |
Clear()
Clears this instance.
Declaration
public void Clear()
Dispose()
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Initialize()
Initialize an output stream to write monitoring data into it.
Declaration
public void Initialize()
LoadData(String)
Loads monitoring data from file path.
Declaration
public static MirroringMonitoringData LoadData(string filepath)
Parameters
Type | Name | Description |
---|---|---|
System.String | filepath | path of the file. |
Returns
Type | Description |
---|---|
MirroringMonitoringData |
Save()
Saves this instance.
Declaration
public void Save()
Remarks
Save the MirroringMonitoringData to file. If the file is already exist then try to create a unique file name with current time stamp