diff --git a/FormConfiguration.Designer.cs b/FormConfiguration.Designer.cs
index a649618..fff3f7a 100644
--- a/FormConfiguration.Designer.cs
+++ b/FormConfiguration.Designer.cs
@@ -1,4 +1,4 @@
-namespace SSH_Test
+namespace FHT
{
partial class FormConfiguration
{
@@ -41,14 +41,17 @@
this.label5 = new System.Windows.Forms.Label();
this.textBoxTftpIP = new System.Windows.Forms.TextBox();
this.groupBox3 = new System.Windows.Forms.GroupBox();
+ this.groupBox5 = new System.Windows.Forms.GroupBox();
+ this.buttonProfilePath = new System.Windows.Forms.Button();
this.groupBox4 = new System.Windows.Forms.GroupBox();
this.buttonTasklistDec = new System.Windows.Forms.Button();
this.buttonTasklistEnc = new System.Windows.Forms.Button();
this.buttonEncryptTaskList = new System.Windows.Forms.Button();
- this.openFileDialogTasklist = new System.Windows.Forms.OpenFileDialog();
+ this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
this.groupBox1.SuspendLayout();
this.groupBox2.SuspendLayout();
this.groupBox3.SuspendLayout();
+ this.groupBox5.SuspendLayout();
this.groupBox4.SuspendLayout();
this.SuspendLayout();
//
@@ -154,6 +157,7 @@
//
// groupBox3
//
+ this.groupBox3.Controls.Add(this.groupBox5);
this.groupBox3.Controls.Add(this.groupBox4);
this.groupBox3.Controls.Add(this.buttonEncryptTaskList);
this.groupBox3.Location = new System.Drawing.Point(307, 12);
@@ -161,7 +165,27 @@
this.groupBox3.Size = new System.Drawing.Size(240, 177);
this.groupBox3.TabIndex = 6;
this.groupBox3.TabStop = false;
- this.groupBox3.Text = "Encryption";
+ this.groupBox3.Text = "Profile && Encryption";
+ //
+ // groupBox5
+ //
+ this.groupBox5.Controls.Add(this.buttonProfilePath);
+ this.groupBox5.Location = new System.Drawing.Point(8, 87);
+ this.groupBox5.Name = "groupBox5";
+ this.groupBox5.Size = new System.Drawing.Size(200, 54);
+ this.groupBox5.TabIndex = 10;
+ this.groupBox5.TabStop = false;
+ this.groupBox5.Text = "Profile Path";
+ //
+ // buttonProfilePath
+ //
+ this.buttonProfilePath.Location = new System.Drawing.Point(15, 18);
+ this.buttonProfilePath.Name = "buttonProfilePath";
+ this.buttonProfilePath.Size = new System.Drawing.Size(163, 29);
+ this.buttonProfilePath.TabIndex = 9;
+ this.buttonProfilePath.Text = "profile.json";
+ this.buttonProfilePath.UseVisualStyleBackColor = true;
+ this.buttonProfilePath.Click += new System.EventHandler(this.buttonProfilePath_Click);
//
// groupBox4
//
@@ -203,12 +227,12 @@
this.buttonEncryptTaskList.Text = "Encrypt";
this.buttonEncryptTaskList.UseVisualStyleBackColor = true;
//
- // openFileDialogTasklist
+ // openFileDialog
//
- this.openFileDialogTasklist.DefaultExt = "json";
- this.openFileDialogTasklist.FileName = "tasklisk.json";
- this.openFileDialogTasklist.Filter = "json file|*.json|Powershell scrips|*.ps1";
- this.openFileDialogTasklist.Title = "Task list file";
+ this.openFileDialog.DefaultExt = "json";
+ this.openFileDialog.FileName = "*.json";
+ this.openFileDialog.Filter = "json file|*.json|Powershell scrips|*.ps1";
+ this.openFileDialog.Title = "File Path";
//
// FormConfiguration
//
@@ -228,6 +252,7 @@
this.groupBox2.ResumeLayout(false);
this.groupBox2.PerformLayout();
this.groupBox3.ResumeLayout(false);
+ this.groupBox5.ResumeLayout(false);
this.groupBox4.ResumeLayout(false);
this.ResumeLayout(false);
@@ -251,6 +276,8 @@
private System.Windows.Forms.GroupBox groupBox4;
private System.Windows.Forms.Button buttonTasklistDec;
private System.Windows.Forms.Button buttonTasklistEnc;
- private System.Windows.Forms.OpenFileDialog openFileDialogTasklist;
+ private System.Windows.Forms.OpenFileDialog openFileDialog;
+ private System.Windows.Forms.Button buttonProfilePath;
+ private System.Windows.Forms.GroupBox groupBox5;
}
}
\ No newline at end of file
diff --git a/FormConfiguration.cs b/FormConfiguration.cs
index 8d4c64a..d59d772 100644
--- a/FormConfiguration.cs
+++ b/FormConfiguration.cs
@@ -12,7 +12,7 @@ using System.Windows.Forms;
using System.IO;
using System.Security.Cryptography;
-namespace SSH_Test
+namespace FHT
{
public partial class FormConfiguration : Form
{
@@ -29,15 +29,17 @@ namespace SSH_Test
public static ILog log;
public FormConfiguration(string tftp_IP, string sftpIP, string sftp_Username, string sftp_Password, bool bencryption
- , Aes aaes, ILog Log)
+ , Aes aaes, string sprofilepath, ILog Log)
{
InitializeComponent();
this.textBoxTftpIP.Text = Tftp_IP = tftp_IP;
this.textBoxSftpIP.Text = Sftp_IP = sftpIP;
this.textBoxSftpUsername.Text = Sftp_Username = sftp_Username;
this.textBoxSftpPassword.Text = Sftp_Password = sftp_Password;
+ buttonProfilePath.Text = sProfilePath = sprofilepath;
aes = aaes;
log = Log;
+
this.Update();
}
@@ -66,10 +68,10 @@ namespace SSH_Test
private void buttonTasklistEnc_Click(object sender, EventArgs e)
{
Utilities utilities = new Utilities(log);
- if (openFileDialogTasklist.ShowDialog() == DialogResult.OK)
+ if (openFileDialog.ShowDialog() == DialogResult.OK)
{
- string Jsonfilename = openFileDialogTasklist.FileName;
- string buttonTasklistPath = openFileDialogTasklist.SafeFileName;
+ string Jsonfilename = openFileDialog.FileName;
+ string buttonTasklistPath = openFileDialog.SafeFileName;
if (File.Exists(Jsonfilename))
{
try
@@ -99,10 +101,10 @@ namespace SSH_Test
private void buttonTasklistDec_Click(object sender, EventArgs e)
{
Utilities utilities = new Utilities(log);
- if (openFileDialogTasklist.ShowDialog() == DialogResult.OK)
+ if (openFileDialog.ShowDialog() == DialogResult.OK)
{
- string JsonFileName = openFileDialogTasklist.FileName;
- string buttonTasklistPath = openFileDialogTasklist.SafeFileName;
+ string JsonFileName = openFileDialog.FileName;
+ string buttonTasklistPath = openFileDialog.SafeFileName;
if (File.Exists(JsonFileName))
{
try
@@ -126,5 +128,14 @@ namespace SSH_Test
}
}
}
+
+ private void buttonProfilePath_Click(object sender, EventArgs e)
+ {
+ if (openFileDialog.ShowDialog() == DialogResult.OK)
+ {
+ sProfilePath = openFileDialog.FileName;
+ buttonProfilePath.Text = openFileDialog.SafeFileName;
+ }
+ }
}
}
diff --git a/FormConfiguration.resx b/FormConfiguration.resx
index e895283..0c2e2c1 100644
--- a/FormConfiguration.resx
+++ b/FormConfiguration.resx
@@ -117,7 +117,7 @@
System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
-
+
17, 17
diff --git a/SSH_Test.csproj b/SSH_Test.csproj
index ee4d744..b416ae0 100644
--- a/SSH_Test.csproj
+++ b/SSH_Test.csproj
@@ -6,8 +6,8 @@
AnyCPU
{73DED4CD-B2B1-491E-87B7-BC1F11759C53}
Exe
- SSH_Test
- SSH_Test
+ FHT
+ FHT
v4.8
512
true
@@ -86,8 +86,8 @@
packages\BouncyCastle.Cryptography.2.6.2\lib\net461\BouncyCastle.Cryptography.dll
-
- packages\log4net.3.2.0\lib\net462\log4net.dll
+
+ packages\log4net.3.3.1\lib\net462\log4net.dll
packages\Microsoft.Bcl.AsyncInterfaces.10.0.2\lib\net462\Microsoft.Bcl.AsyncInterfaces.dll
@@ -135,6 +135,7 @@
packages\System.Threading.Tasks.Extensions.4.6.3\lib\net462\System.Threading.Tasks.Extensions.dll
+
diff --git a/TastList.cs b/TastList.cs
index fd9080c..3f379f1 100644
--- a/TastList.cs
+++ b/TastList.cs
@@ -27,14 +27,14 @@ using System.Windows.Forms;
using System.Xml;
using static System.Windows.Forms.VisualStyles.VisualStyleElement;
-namespace SSH_Test
+namespace FHT
{
public partial class TastList : Form
{
// set to false to enable Encrypt , Decrypt Buttons
- public const bool IsAdminDisabled = true;
+ public const bool IsAdminDisabled = false;
public List Tasks = new List();
@@ -133,27 +133,41 @@ namespace SSH_Test
dataGridViewTask.AllowDrop = true;
dataGridViewTask.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableWithoutHeaderText;
dataGridViewTask.RowTemplate.ContextMenuStrip = contextMenuStripRow;
- //Load Profile list from "profile.json"
- Profiles = utilities.LoadProfile("profile.json", aes);
- // Configure Profile list to dropdown menu
- // AES button will update the dropdown menu when AES key is inputed.
- //try
- //{
- // foreach (Profile p in Profiles)
- // {
- // log.Info(string.Format("Profile: {0}", p.ProfileName));
- // }
+ //ask for AES key
+ buttonAESString_Click(null, null);
- // var comboBoxColumn = (DataGridViewComboBoxColumn)dataGridViewTask.Columns[7];
- // comboBoxColumn.DataSource = Profiles; // Set the data source of the ComboBox column
- // comboBoxColumn.DisplayMember = "profileName"; // Displayed property name
- // comboBoxColumn.ValueMember = "profileName"; //The property name of the value
- //}
- //catch (Exception ex)
- //{
- // log.Error(ex.Message);
- //}
+ //Load Profile list from "Profilefilename"
+ Profiles = utilities.LoadProfile(Profilefilename, aes);
+
+ if (!Profiles.Any())
+ {
+ //load "do nothing" to Profiles
+ Profile temp = new Profile();
+ temp.ProfileType = "";
+ temp.ProfileName = "Do nothing";
+ temp.ProfileCommands = new string[] { "echo Do nothing" };
+ temp.ProfileParameters = new string[] { "" };
+
+ Profiles.Add(temp);
+ }
+
+ try
+ {
+ foreach (Profile p in Profiles)
+ {
+ log.Info(string.Format("Profile: {0}", p.ProfileName));
+ }
+
+ var comboBoxColumn = (DataGridViewComboBoxColumn)dataGridViewTask.Columns[7];
+ comboBoxColumn.DataSource = Profiles; // Set the data source of the ComboBox column
+ comboBoxColumn.DisplayMember = "profileName"; // Displayed property name
+ comboBoxColumn.ValueMember = "profileName"; //The property name of the value
+ }
+ catch (Exception ex)
+ {
+ log.Error(ex.Message);
+ }
dataGridViewTask.Refresh();
@@ -316,10 +330,12 @@ namespace SSH_Test
row.Cells[1].Value = task.sTaskDescription;
row.Cells[2].Value = task.sTaskDevice;
row.Cells[4].Value = task.bTaskSelect;
- var comboBoxColumn = (DataGridViewComboBoxColumn)dataGridViewTask.Columns[7];
+ // var comboBoxColumn = (DataGridViewComboBoxColumn)dataGridViewTask.Columns[7];
// test if task.sprofile name mach any in Profiles, if true, assign that name
if (Profiles.Any(pr => pr.ProfileName == task.sProfile))
row.Cells[7].Value = task.sProfile;
+ else
+ row.Cells[7].Value = null;
dataGridViewTask.Rows.Add(row);
}
catch (Exception ex)
@@ -335,18 +351,63 @@ namespace SSH_Test
{
FormConfiguration formConfiguration = new FormConfiguration(conInfo.sTftpIP, conInfo.sSftpIP,
conInfo.sSftpUsername, conInfo.sSftpPassword,
- bEncryption, aes, log);
+ bEncryption, aes, Profilefilename,log);
// Disable Encrypt, Decrypt buttons
if(IsAdminDisabled)
{
formConfiguration.AdminDisable();
}
formConfiguration.ShowDialog();
+ //reload profile and task list
+ Profilefilename = formConfiguration.sProfilePath;
+ //try reloading Profilefilename
+ Profiles.Clear();
+ Profiles = utilities.LoadProfile(Profilefilename, aes);
+
+ // Configure Profile list to dropdown menu, first to check if profiles is empty
+ if (!Profiles.Any())
+ {
+ //load "do nothing" to Profiles
+ Profile temp = new Profile();
+ temp.ProfileType = "";
+ temp.ProfileName = "Do nothing";
+ temp.ProfileCommands = new string[] { "echo Do nothing" };
+ temp.ProfileParameters = new string[] { "" };
+
+ Profiles.Add(temp);
+ }
+
+ try
+ {
+ foreach (Profile p in Profiles)
+ {
+ log.Info(string.Format("Profile: {0}", p.ProfileName));
+ }
+
+ var comboBoxColumn = (DataGridViewComboBoxColumn)dataGridViewTask.Columns[7];
+ comboBoxColumn.DataSource = Profiles; // Set the data source of the ComboBox column
+ comboBoxColumn.DisplayMember = "profileName"; // Displayed property name
+ comboBoxColumn.ValueMember = "profileName"; //The property name of the value
+ }
+ catch (Exception ex)
+ {
+ log.Error(ex.Message);
+ }
+
+
+
+
+ //reload tasklist
+
+ buttonLoad_Click(null, null);
+
conInfo.sTftpIP = formConfiguration.Tftp_IP;
conInfo.sSftpIP = formConfiguration.Sftp_IP;
conInfo.sSftpUsername = formConfiguration.Sftp_Username;
conInfo.sSftpPassword = formConfiguration.Sftp_Password;
+ dataGridViewTask.Refresh();
+
}
private void dataGridViewTask_CellClick(object sender, DataGridViewCellEventArgs e)
@@ -451,50 +512,43 @@ namespace SSH_Test
{
profile = Profiles.Find(x => x.ProfileName == currentTask.sProfile.ToString());
-
- // print out task
- log.Info(string.Format("Current task profile {0}:", currentTask.sTaskDevice.ToString()));
-
- foreach (string c in profile.ProfileCommands)
- log.Info(c);
-
- //hostInfo.Commands = profile.ProfileCommands;
-
-
- //check if task has parameters and get parameters list
- //foreach (string c in profile.ProfileParameters)
- //{
- // if (currentTask.dParameters[c] == "")
- // currentTask.dParameters.Add(c, "");
-
- //}
-
- if (profile.ProfileParameters.Length > 0)
+ if (profile !=null && profile.ProfileName != "Do nothing")
{
- //Get Values for Parameters
- FormParameters formParameter = new FormParameters(currentTask.dParameters, richTextBoxOutput.Text,
- string.Format("{0}: {1}", currentTask.sTaskDescription, currentTask.sProfile));
- if (formParameter.ShowDialog() == DialogResult.Cancel)
+ // print out task
+ log.Info(string.Format("Current task profile {0}:", currentTask.sTaskDevice.ToString()));
+
+ foreach (string c in profile.ProfileCommands)
+ log.Info(c);
+ if (profile.ProfileParameters.Length > 0)
{
- log.Info("formParameter returns with Cancel");
- break;
+ //Get Values for Parameters
+ FormParameters formParameter = new FormParameters(currentTask.dParameters, richTextBoxOutput.Text,
+ string.Format("{0}: {1}", currentTask.sTaskDescription, currentTask.sProfile));
+ if (formParameter.ShowDialog() == DialogResult.Cancel)
+ {
+ log.Info("formParameter returns with Cancel");
+ break;
+ }
+
+ //foreach (var c in currentTask.dParameters)
+ // log.Info(string.Format("Parameter {0}: {1}", c.Key, c.Value));
}
- //foreach (var c in currentTask.dParameters)
- // log.Info(string.Format("Parameter {0}: {1}", c.Key, c.Value));
+ //clear richtextboxoutput
+ richTextBoxOutput.Clear();
+
+ // Run a Task and display result on the textbox
+
+ richTextBoxOutput.AppendText(Utilities.RunaTask(currentTask, profile, conInfo, aes));
+ richTextBoxOutput.SelectionStart = richTextBoxOutput.Text.Length;
+ richTextBoxOutput.ScrollToCaret();
+ //update Status LastRun
+ string ttt = DateTime.Now.ToString(("HH:mm:ss"));
+ dataGridViewTask.Rows[e.RowIndex].Cells[6].Value = ttt;
}
-
- //clear richtextboxoutput
- richTextBoxOutput.Clear();
-
- // Run a Task and display result on the textbox
-
- richTextBoxOutput.AppendText(Utilities.RunaTask(currentTask, profile, conInfo,aes));
- richTextBoxOutput.SelectionStart = richTextBoxOutput.Text.Length;
- richTextBoxOutput.ScrollToCaret();
- //update Status LastRun
- string ttt = DateTime.Now.ToString(("HH:mm:ss"));
- dataGridViewTask.Rows[e.RowIndex].Cells[6].Value = ttt;
+ else
+ log.Info("Profile = Null");
+
}
catch
{
@@ -547,7 +601,12 @@ namespace SSH_Test
break;
case 1:
+ if (dataGridViewTask.Rows[e.RowIndex].Cells[e.ColumnIndex].Value == null)
+ {
+ dataGridViewTask.Rows[e.RowIndex].Cells[e.ColumnIndex].Value = "";
+ }
Tasks[e.RowIndex].sTaskDescription = (string)dataGridViewTask.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+
break;
case 2:
Tasks[e.RowIndex].sTaskDevice = (string)dataGridViewTask.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
@@ -556,7 +615,8 @@ namespace SSH_Test
break;
case 4:
- Tasks[e.RowIndex].bTaskSelect = (bool)dataGridViewTask.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
+ if ((string)dataGridViewTask.Rows[e.RowIndex].Cells[e.ColumnIndex].Value != null)
+ Tasks[e.RowIndex].bTaskSelect = (bool)dataGridViewTask.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
break;
case 5:
@@ -567,18 +627,21 @@ namespace SSH_Test
Tasks[e.RowIndex].sProfile = (string)dataGridViewTask.Rows[e.RowIndex].Cells[e.ColumnIndex].Value;
else
Tasks[e.RowIndex].sProfile = "Do nothing";
-
- profile = Profiles.Find(x => x.ProfileName == Tasks[e.RowIndex].sProfile.ToString());
- if ( (profile != null) && (profile.ProfileParameters.Length > 0))
+ if (!Profiles.Any())
{
- //clear task profile parameters first
- Tasks[e.RowIndex].dParameters.Clear();
- //add new parameters
- foreach (string c in profile.ProfileParameters)
+ profile = Profiles.Find(x => x.ProfileName == Tasks[e.RowIndex].sProfile.ToString());
+ if ((profile != null) && (profile.ProfileParameters.Length > 0))
{
- Tasks[e.RowIndex].dParameters.Add(c, "");
+ //clear task profile parameters first
+ Tasks[e.RowIndex].dParameters.Clear();
+ //add new parameters
+ foreach (string c in profile.ProfileParameters)
+ {
+ Tasks[e.RowIndex].dParameters.Add(c, "");
+ }
}
}
+
log.Info(string.Format("Task {0}, profile {1}", e.RowIndex, Tasks[e.RowIndex].sProfile));
@@ -752,11 +815,23 @@ namespace SSH_Test
try
{
aes.Key = Convert.FromBase64String(formParameter.dParameters["AES string"]);
-
- //try reloading profile.json
+
+ //try reloading Profilefilename
Profiles.Clear();
- Profiles = utilities.LoadProfile("profile.json", aes);
- // Configure Profile list to dropdown menu
+ Profiles = utilities.LoadProfile(Profilefilename, aes);
+ // Configure Profile list to dropdown menu, first to check if Profiles is empty
+ if (!Profiles.Any())
+ {
+ //load "do nothing" to Profiles
+ Profile temp = new Profile();
+ temp.ProfileType = "";
+ temp.ProfileName = "Do nothing";
+ temp.ProfileCommands = new string[] { "echo Do nothing" };
+ temp.ProfileParameters = new string[]{ "" };
+
+ Profiles.Add(temp);
+ }
+
try
{
foreach (Profile p in Profiles)
@@ -773,7 +848,7 @@ namespace SSH_Test
{
log.Error(ex.Message);
}
-
+
dataGridViewTask.Refresh();
}
catch
@@ -782,6 +857,9 @@ namespace SSH_Test
}
}
+
+ //reload tasklist
+ buttonLoad_Click(null, null);
}
}
diff --git a/bin/Debug/FHT.exe b/bin/Debug/FHT.exe
new file mode 100644
index 0000000..da7c141
Binary files /dev/null and b/bin/Debug/FHT.exe differ
diff --git a/bin/Debug/FHT.exe.config b/bin/Debug/FHT.exe.config
new file mode 100644
index 0000000..1b52a61
--- /dev/null
+++ b/bin/Debug/FHT.exe.config
@@ -0,0 +1,31 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/bin/Debug/FHT.pdb b/bin/Debug/FHT.pdb
new file mode 100644
index 0000000..bfc24f3
Binary files /dev/null and b/bin/Debug/FHT.pdb differ
diff --git a/bin/Debug/log4net.dll b/bin/Debug/log4net.dll
index e1d866f..c78f2db 100644
Binary files a/bin/Debug/log4net.dll and b/bin/Debug/log4net.dll differ
diff --git a/bin/Debug/log4net.pdb b/bin/Debug/log4net.pdb
index 10f4b6a..5b56ca4 100644
Binary files a/bin/Debug/log4net.pdb and b/bin/Debug/log4net.pdb differ
diff --git a/bin/Debug/log4net.xml b/bin/Debug/log4net.xml
index 6bd977c..3061fd2 100644
--- a/bin/Debug/log4net.xml
+++ b/bin/Debug/log4net.xml
@@ -240,8 +240,8 @@
Should transactions be used to insert logging events in the database.
- true if transactions should be used to insert logging events in
- the database, otherwise false. The default value is true.
+ if transactions should be used to insert logging events in
+ the database, otherwise . The default value is .
@@ -276,8 +276,8 @@
Should this appender try to reconnect to the database on error.
- true if the appender should try to reconnect to the database after an
- error has occurred, otherwise false. The default value is false,
+ if the appender should try to reconnect to the database after an
+ error has occurred, otherwise . The default value is ,
i.e. not to try to reconnect.
@@ -287,7 +287,7 @@
To force the appender to attempt to reconnect to the database set this
- property to true.
+ property to .
When the appender attempts to connect to the database there may be a
@@ -371,7 +371,7 @@
The array of events to insert into the database.
- The transaction argument can be null if the appender has been
+ The transaction argument can be if the appender has been
configured not to use transactions. See
property for more information.
@@ -1249,7 +1249,7 @@
- If this appender has not been closed then the Finalize method
+ If this appender has not been closed then the method
will call .
@@ -1385,7 +1385,7 @@
-
Calls and checks that
- it returns true.
+ it returns .
@@ -1428,7 +1428,7 @@
-
Calls and checks that
- it returns true.
+ it returns .
@@ -1443,7 +1443,7 @@
Test if the logging event should we output by this appender
the event to test
- true if the event should be output, false if the event should be ignored
+ if the event should be output, if the event should be ignored
This method checks the logging event against the threshold level set
@@ -1502,8 +1502,8 @@
to test against.
- true if the meets the
- requirements of this appender. A null level always maps to true,
+ if the meets the
+ requirements of this appender. A null level always maps to ,
the equivalent of .
@@ -1592,7 +1592,7 @@
this base class if it is overridden.
- true if the call to should proceed.
+ if the call to should proceed.
@@ -1653,14 +1653,14 @@
In the rather exceptional case, where the appender
implementation admits a layout but can also work without it,
- then the appender should return true.
+ then the appender should return .
- This default implementation always returns false.
+ This default implementation always returns .
- true if the appender requires a layout object, otherwise false.
+ if the appender requires a layout object, otherwise .
@@ -1670,7 +1670,7 @@
This implementation doesn't flush anything and always returns true
- True if all logging events were flushed successfully, else false.
+ if all logging events were flushed successfully, else .
@@ -1813,7 +1813,7 @@
The buffering appender can be configured in a mode.
By default the appender is NOT lossy. When the buffer is full all
the buffered events are sent with .
- If the property is set to true then the
+ If the property is set to then the
buffer will not be sent when it is full, and new events arriving
in the appender will overwrite the oldest event in the buffer.
In lossy mode the buffer will only be sent when the
@@ -1842,7 +1842,7 @@
Initializes a new instance of the class.
the events passed through this appender must be
- fixed by the time that they arrive in the derived class' SendBuffer method.
+ fixed by the time that they arrive in the derived class' method.
Protected constructor to allow subclassing.
@@ -1859,7 +1859,7 @@
Gets or sets a value that indicates whether the appender is lossy.
- true if the appender is lossy, otherwise false. The default is false.
+ if the appender is lossy, otherwise . The default is .
@@ -1867,10 +1867,10 @@
delivering them. A triggering event causes the whole buffer
to be sent to the remote sink. If the buffer overruns before
a triggering event then logging events could be lost. Set
- to false to prevent logging events
+ to to prevent logging events
from being lost.
- If is set to true then an
+ If is set to then an
must be specified.
@@ -1914,7 +1914,7 @@
appender. If the evaluator triggers then the current buffer will
immediately be sent (see ).
- If is set to true then an
+ If is set to then an
must be specified.
@@ -1954,7 +1954,7 @@
Flushes any buffered log data.
The maximum time to wait for logging events to be flushed.
- True if all logging events were flushed successfully, else false.
+ if all logging events were flushed successfully, else .
@@ -1974,21 +1974,21 @@
Flush the currently buffered events
- set to true to flush the buffer of lossy events
+ set to to flush the buffer of lossy events
Flushes events that have been buffered. If is
- false then events will only be flushed if this buffer is non-lossy mode.
+ then events will only be flushed if this buffer is non-lossy mode.
If the appender is buffering in mode then the contents
- of the buffer will only be flushed if is true.
+ of the buffer will only be flushed if is .
In this case the contents of the buffer will be tested against the
and if triggering will be output. All other buffered
events will be discarded.
- If is true then the buffer will always
+ If is then the buffer will always
be emptied by calling this method.
@@ -2173,7 +2173,7 @@
The name of the appender to lookup.
- The appender with the specified name, or null.
+ The appender with the specified name, or .
@@ -2559,7 +2559,7 @@
The default behavior is to flush at the end of each
- write. If the option is set tofalse, then the underlying
+ write. If the option is set to, then the underlying
stream can defer writing to physical medium to a later time.
@@ -2588,7 +2588,7 @@
Flushes any buffered log data.
The maximum time to wait for logging events to be flushed.
- True if all logging events were flushed successfully, else false.
+ if all logging events were flushed successfully, else .
@@ -2598,7 +2598,7 @@
Writes the logging event to the system.
- If is true then the
+ If is then the
is called.
@@ -2623,8 +2623,8 @@
on the .
- The Category of the event log entry can be
- set using the Category property ()
+ The of the event log entry can be
+ set using the property ()
on the .
@@ -2750,7 +2750,7 @@
- Gets or sets the EventId to use unless one is explicitly specified via the LoggingEvent's properties.
+ Gets or sets the to use unless one is explicitly specified via the LoggingEvent's properties.
@@ -2763,12 +2763,12 @@
- Gets or sets the Category to use unless one is explicitly specified via the LoggingEvent's properties.
+ Gets or sets the to use unless one is explicitly specified via the LoggingEvent's properties.
- The Category of the event log entry will normally be
- set using the Category property ()
+ The of the event log entry will normally be
+ set using the property ()
on the .
This property provides the fallback value which defaults to 0.
@@ -2819,7 +2819,7 @@
This appender requires a to be set.
- true
+
@@ -3759,7 +3759,7 @@
The name of the appender to lookup.
- The appender with the specified name, or null.
+ The appender with the specified name, or .
@@ -3915,7 +3915,7 @@
The maximum time to wait for logging events to be flushed.
- True if all logging events were flushed successfully, else false.
+ if all logging events were flushed successfully, else .
@@ -4509,11 +4509,20 @@
- Appends log events to the OutputDebugString system.
+ Appends log events to the OutputDebugString system
Nicko Cadell
Gert Driesen
+
+
+
+
+
+ Constructor for unit testing
+
+ replacement for
+
Writes the logging event to the output debug string API
@@ -4752,6 +4761,26 @@
reserved for local use
+
+
+ Options for handling newlines (\r or \n) in
+
+
+
+
+ escape the newlines (\\r for \r and \\n for \n)
+
+
+
+
+ split the message at new lines
+
+
+
+
+ keep newlines as is (many syslog servers can handle newlines in the message part)
+
+
Initializes a new instance of the class.
@@ -4784,6 +4813,12 @@
is .
+
+
+ NewLine handling
+
+ The default value is .
+
Gets or sets the delegate used to create instances of .
@@ -5505,7 +5540,7 @@
If countDirection < 0, then files
{File.1, ..., File.curSizeRollBackups -1}
are renamed to {File.2, ...,
- File.curSizeRollBackups}. Moreover, File is
+ File.curSizeRollBackups}. Moreover, is
renamed File.1 and closed.
@@ -5513,10 +5548,10 @@
If maxSizeRollBackups is equal to zero, then the
- File is truncated with no backup files created.
+ is truncated with no backup files created.
- If maxSizeRollBackups < 0, then File is
+ If maxSizeRollBackups < 0, then is
renamed if needed and no files are deleted.
@@ -5538,10 +5573,10 @@
If maxSizeRollBackups is equal to zero, then the
- File is truncated with no backup files created.
+ is truncated with no backup files created.
- If maxSizeRollBackups < 0, then File is
+ If maxSizeRollBackups < 0, then is
renamed if needed and no files are deleted.
@@ -6240,7 +6275,7 @@
append operation.
- If this option is set to false, then the underlying
+ If this option is set to , then the underlying
stream can defer persisting the logging event to a later
time.
@@ -6281,7 +6316,7 @@
layout has been set.
- false if any of the preconditions fail.
+ if any of the preconditions fail.
@@ -6416,7 +6451,7 @@
Flushes any buffered log data.
The maximum time to wait for logging events to be flushed.
- True if all logging events were flushed successfully, else false.
+ if all logging events were flushed successfully, else .
@@ -6454,7 +6489,7 @@
The default behavior is to flush at the end of each
- write. If the option is set tofalse, then the underlying
+ write. If the option is set to, then the underlying
stream can defer writing to physical medium to a later time.
@@ -6494,7 +6529,7 @@
Flushes any buffered log data.
The maximum time to wait for logging events to be flushed.
- True if all logging events were flushed successfully, else false.
+ if all logging events were flushed successfully, else .
@@ -7764,11 +7799,11 @@
Gets or sets a value indicating whether to watch the configuration file.
- true if the configuration should be watched, false otherwise.
+ if the configuration should be watched, otherwise.
- If this flag is specified and set to true then the framework
+ If this flag is specified and set to then the framework
will watch the configuration file and will reload the config each time
the file is modified.
@@ -7905,7 +7940,7 @@
The for the specified repository.
- Returns the named repository. If is null
+ Returns the named repository. If is
a is thrown. If the repository
does not exist a is thrown.
@@ -7961,7 +7996,7 @@
the assembly to use to create the repository to associate with the .
The type of repository to create, must implement .
The name to assign to the created repository
- Set to true to read and apply the assembly attributes
+ Set to to read and apply the assembly attributes
The repository created.
@@ -8017,7 +8052,7 @@
Test if a named repository exists
the named repository to check
- true if the repository exists
+ if the repository exists
Test if a named repository exists. Use
@@ -8211,9 +8246,9 @@
Is this the triggering event?
The event to check
- This method returns true, if the logging event Exception
+ This method returns , if the logging event Exception
Type is .
- Otherwise it returns false
+ Otherwise it returns
This evaluator will trigger if the Exception Type of the event
@@ -8350,7 +8385,7 @@
Gets a collection of attached appenders.
If there are no attached appenders the
implementation should return an empty
- collection rather than null.
+ collection rather than .
@@ -8360,13 +8395,13 @@
The name of the appender to get.
- The appender with the name specified, or null if no appender with the
+ The appender with the name specified, or if no appender with the
specified name is found.
Returns an attached appender with the specified.
- If no appender with the specified name is found null will be
+ If no appender with the specified name is found will be
returned.
@@ -8523,7 +8558,7 @@
the stack boundary into the logging system for this call.
The level of the message to be logged.
The message object to log.
- the exception to log, including its stack trace. Pass null to not log an exception.
+ the exception to log, including its stack trace. Pass to not log an exception.
This generic form is intended to be used by wrappers.
@@ -8548,7 +8583,7 @@
The level to check.
- true if this logger is enabled for level, otherwise false.
+ if this logger is enabled for level, otherwise .
@@ -8752,7 +8787,7 @@
Test if a named repository exists
the named repository to check
- true if the repository exists
+ if the repository exists
Test if a named repository exists. Use
@@ -8810,10 +8845,10 @@
Test if this event triggers the action
The event to check
- true if this event triggers the action, otherwise false
+ if this event triggers the action, otherwise
- Return true if this event triggers the action
+ Return if this event triggers the action
@@ -9255,8 +9290,8 @@
Advances the enumerator to the next element in the collection.
- true if the enumerator was successfully advanced to the next element;
- false if the enumerator has passed the end of the collection.
+ if the enumerator was successfully advanced to the next element;
+ if the enumerator has passed the end of the collection.
The collection was modified after the enumerator was created.
@@ -9269,52 +9304,52 @@
- Creates a read-only wrapper for a LevelCollection instance.
+ Creates a read-only wrapper for a instance.
list to create a readonly wrapper arround
- A LevelCollection wrapper that is read-only.
+ A wrapper that is read-only.
- Initializes a new instance of the LevelCollection class
+ Initializes a new instance of the class
that is empty and has the default initial capacity.
- Initializes a new instance of the LevelCollection class
+ Initializes a new instance of the class
that has the specified initial capacity.
- The number of elements that the new LevelCollection is initially capable of storing.
+ The number of elements that the new is initially capable of storing.
- Initializes a new instance of the LevelCollection class
- that contains elements copied from the specified LevelCollection.
+ Initializes a new instance of the class
+ that contains elements copied from the specified .
- The LevelCollection whose elements are copied to the new collection.
+ The whose elements are copied to the new collection.
- Initializes a new instance of the LevelCollection class
+ Initializes a new instance of the class
that contains elements copied from the specified array.
The array whose elements are copied to the new list.
- Initializes a new instance of the LevelCollection class
+ Initializes a new instance of the class
that contains elements copied from the specified collection.
The collection whose elements are copied to the new list.
- Initializes a new instance of the LevelCollection class
+ Initializes a new instance of the class
that contains elements copied from the specified collection.
The collection whose elements are copied to the new list.
@@ -9337,19 +9372,19 @@
- Gets the number of elements actually contained in the LevelCollection.
+ Gets the number of elements actually contained in the .
- Copies the entire LevelCollection to a one-dimensional
+ Copies the entire to a one-dimensional
array.
The one-dimensional array to copy to.
- Copies the entire LevelCollection to a one-dimensional
+ Copies the entire to a one-dimensional
array, starting at the specified index of the target array.
The one-dimensional array to copy to.
@@ -9379,14 +9414,14 @@
- Adds a to the end of the LevelCollection.
+ Adds a to the end of the .
- The to be added to the end of the LevelCollection.
+ The to be added to the end of the .
The index at which the value has been added.
- Removes all elements from the LevelCollection.
+ Removes all elements from the .
@@ -9397,25 +9432,25 @@
- Determines whether a given is in the LevelCollection.
+ Determines whether a given is in the .
The to check for.
- true if is found in the LevelCollection; otherwise, false.
+ if is found in the ; otherwise, .
Returns the zero-based index of the first occurrence of a
- in the LevelCollection.
+ in the .
- The to locate in the LevelCollection.
+ The to locate in the .
The zero-based index of the first occurrence of
- in the entire LevelCollection, if found; otherwise, -1.
+ in the entire , if found; otherwise, -1.
- Inserts an element into the LevelCollection at the specified index.
+ Inserts an element into the at the specified index.
The zero-based index at which should be inserted.
The to insert.
@@ -9427,16 +9462,16 @@
- Removes the first occurrence of a specific from the LevelCollection.
+ Removes the first occurrence of a specific from the .
- The to remove from the LevelCollection.
+ The to remove from the .
- The specified was not found in the LevelCollection.
+ The specified was not found in the .
- Removes the element at the specified index of the LevelCollection.
+ Removes the element at the specified index of the .
The zero-based index of the element to remove.
@@ -9459,35 +9494,35 @@
- Returns an enumerator that can iterate through the LevelCollection.
+ Returns an enumerator that can iterate through the .
- An for the entire LevelCollection.
+ An for the entire .
- Gets or sets the number of elements the LevelCollection can contain.
+ Gets or sets the number of elements the can contain.
- Adds the elements of another LevelCollection to the current LevelCollection.
+ Adds the elements of another to the current .
- The LevelCollection whose elements should be added to the end of the current LevelCollection.
- The new of the LevelCollection.
+ The whose elements should be added to the end of the current .
+ The new of the .
- Adds the elements of a array to the current LevelCollection.
+ Adds the elements of a array to the current .
- The array whose elements should be added to the end of the LevelCollection.
- The new of the LevelCollection.
+ The array whose elements should be added to the end of the .
+ The new of the .
- Adds the elements of a collection to the current LevelCollection.
+ Adds the elements of a collection to the current .
- The collection whose elements should be added to the end of the LevelCollection.
- The new of the LevelCollection.
+ The collection whose elements should be added to the end of the .
+ The new of the .
@@ -9515,7 +9550,7 @@
- Initializes a new instance of the Enumerator class.
+ Initializes a new instance of the class.
@@ -9529,8 +9564,8 @@
Advances the enumerator to the next element in the collection.
- true if the enumerator was successfully advanced to the next element;
- false if the enumerator has passed the end of the collection.
+ if the enumerator was successfully advanced to the next element;
+ if the enumerator has passed the end of the collection.
The collection was modified after the enumerator was created.
@@ -9605,9 +9640,9 @@
Is this the triggering event?
The event to check
- This method returns true, if the event level
+ This method returns , if the event level
is equal or higher than the .
- Otherwise it returns false
+ Otherwise it returns
@@ -9642,7 +9677,7 @@
Looks up a by name
The name of the Level to look up.
- A Level from the map with the name specified, or null if none is found.
+ A Level from the map with the name specified, or if none is found.
@@ -9959,14 +9994,14 @@
The repository to lookup in.
The fully qualified logger name to look for.
- The logger found, or null if the named logger does not exist in the
+ The logger found, or if the named logger does not exist in the
specified repository.
If the named logger exists (in the specified repository) then it
returns a reference to the logger, otherwise it returns
- null.
+ .
@@ -9977,14 +10012,14 @@
The assembly to use to look up the repository.
The fully qualified logger name to look for.
- The logger found, or null if the named logger does not exist in the
+ The logger found, or if the named logger does not exist in the
specified assembly's repository.
If the named logger exists (in the specified assembly's repository) then it
returns a reference to the logger, otherwise it returns
- null.
+ .
@@ -10158,8 +10193,8 @@
Resets all values contained in the repository instance to their
defaults. This removes all appenders from all loggers, sets
- the level of all non-root loggers to null,
- sets their additivity flag to true and sets the level
+ the level of all non-root loggers to ,
+ sets their additivity flag to and sets the level
of the root logger to . Moreover,
message disabling is set its default "off" value.
@@ -10174,8 +10209,8 @@
Resets all values contained in the repository instance to their
defaults. This removes all appenders from all loggers, sets
- the level of all non-root loggers to null,
- sets their additivity flag to true and sets the level
+ the level of all non-root loggers to ,
+ sets their additivity flag to and sets the level
of the root logger to . Moreover,
message disabling is set its default "off" value.
@@ -10347,7 +10382,7 @@
- The Logger object may not be the same object as this object
+ The object may not be the same object as this object
because of logger decorators.
@@ -12033,8 +12068,8 @@
level.
- true if this logger is enabled for DEBUG events,
- false otherwise.
+ if this logger is enabled for DEBUG events,
+ otherwise.
@@ -12065,8 +12100,8 @@
construction if debugging is disabled for log. On
the other hand, if the log is debug enabled, you
will incur the cost of evaluating whether the logger is debug
- enabled twice. Once in IsDebugEnabled and once in
- the Debug. This is an insignificant overhead
+ enabled twice. Once in and once in
+ the . This is an insignificant overhead
since evaluating a logger takes about 1% of the time it
takes to actually log.
@@ -12077,8 +12112,8 @@
Checks if this logger is enabled for the INFO level.
- true if this logger is enabled for INFO events,
- false otherwise.
+ if this logger is enabled for INFO events,
+ otherwise.
@@ -12093,8 +12128,8 @@
Checks if this logger is enabled for the WARN level.
- true if this logger is enabled for WARN events,
- false otherwise.
+ if this logger is enabled for WARN events,
+ otherwise.
@@ -12109,8 +12144,8 @@
Checks if this logger is enabled for the ERROR level.
- true if this logger is enabled for ERROR events,
- false otherwise.
+ if this logger is enabled for ERROR events,
+ otherwise.
@@ -12124,8 +12159,8 @@
Checks if this logger is enabled for the FATAL level.
- true if this logger is enabled for FATAL events,
- false otherwise.
+ if this logger is enabled for FATAL events,
+ otherwise.
@@ -12229,7 +12264,7 @@
State supplied by the caller
An instance that will
- revoke the impersonation of this SecurityContext, or null
+ revoke the impersonation of this SecurityContext, or
Impersonate this security context. Further calls on the current
@@ -12461,9 +12496,9 @@
Is this the triggering event?
The event to check
- This method returns true, if the specified time period
+ This method returns , if the specified time period
has passed since last check..
- Otherwise it returns false
+ Otherwise it returns
This evaluator will trigger if the specified time period
@@ -12938,7 +12973,7 @@
the chain.
- This method is marked abstract and must be implemented
+ This method is marked and must be implemented
in a subclass.
@@ -13038,7 +13073,7 @@
of the option and the of the
, then the method returns in
case the option value is set
- to true, if it is false then
+ to , if it is then
is returned. If the does not match then
the result will be .
@@ -13058,7 +13093,7 @@
logging event, otherwise it will the event.
- The default is true i.e. to the event.
+ The default is i.e. to the event.
@@ -13102,7 +13137,7 @@
. If there is a match between the range
of priorities and the of the , then the
method returns in case the
- option value is set to true, if it is false
+ option value is set to , if it is
then is returned. If there is no match, is returned.
@@ -13121,7 +13156,7 @@
logging event, otherwise it will the event.
- The default is true i.e. to the event.
+ The default is i.e. to the event.
@@ -13177,8 +13212,8 @@
of the starts
with the value of the option, then the
method returns in
- case the option value is set to true,
- if it is false then is returned.
+ case the option value is set to ,
+ if it is then is returned.
Daniel Cazzulino
@@ -13195,7 +13230,7 @@
logging event, otherwise it will the event.
- The default is true i.e. to the event.
+ The default is i.e. to the event.
@@ -13362,7 +13397,7 @@
logging event, otherwise it will the event.
- The default is true i.e. to the event.
+ The default is i.e. to the event.
@@ -13425,7 +13460,7 @@
- The GlobalContext provides a location for global debugging
+ The provides a location for global debugging
information to be stored.
@@ -14262,7 +14297,7 @@
Checks if this logger is enabled for the level.
- true if this logger is enabled for events, false otherwise.
+ if this logger is enabled for events, otherwise.
@@ -14333,7 +14368,7 @@
Checks if this logger is enabled for the level.
- true if this logger is enabled for events, false otherwise.
+ if this logger is enabled for events, otherwise.
For more information see .
@@ -14347,7 +14382,7 @@
Checks if this logger is enabled for the level.
- true if this logger is enabled for events, false otherwise.
+ if this logger is enabled for events, otherwise.
For more information see .
@@ -14361,7 +14396,7 @@
Checks if this logger is enabled for the level.
- true if this logger is enabled for events, false otherwise.
+ if this logger is enabled for events, otherwise.
For more information see .
@@ -14375,7 +14410,7 @@
Checks if this logger is enabled for the level.
- true if this logger is enabled for events, false otherwise.
+ if this logger is enabled for events, otherwise.
For more information see .
@@ -14588,13 +14623,13 @@
Flag indicating if this layout handle exceptions
- false if this layout handles exceptions
+ if this layout handles exceptions
If this layout handles the exception object contained within
, then the layout should return
- false. Otherwise, if the layout ignores the exception
- object, then the layout should return true.
+ . Otherwise, if the layout ignores the exception
+ object, then the layout should return .
@@ -14621,6 +14656,11 @@
TextWriter
XmlWriter
+
+
+ writes the attribute and replaces invalid characters
+
+
Interface for raw layout objects
@@ -14817,17 +14857,17 @@
Flag indicating if this layout handles exceptions.
- false if this layout handles exceptions
+ if this layout handles exceptions
If this layout handles the exception object contained within
, then the layout should return
- false. Otherwise, if the layout ignores the exception
- object, then the layout should return true.
+ . Otherwise, if the layout ignores the exception
+ object, then the layout should return .
Set this value to override the default setting. The default
- value is true, this layout does not handle the exception.
+ value is , this layout does not handle the exception.
@@ -15449,17 +15489,17 @@
Flag indicating if this converter handles the logging event exception
- false if this converter handles the logging event exception
+ if this converter handles the logging event exception
If this converter handles the exception object contained within
, then this property should be set to
- false. Otherwise, if the layout ignores the exception
- object, then the property should be set to true.
+ . Otherwise, if the layout ignores the exception
+ object, then the property should be set to .
Set this value to override a this default setting. The default
- value is true, this converter does not handle the exception.
+ value is , this converter does not handle the exception.
@@ -15490,7 +15530,7 @@
property.
- If the is set to null
+ If the is set to
then all the properties are written as key value pairs.
@@ -15509,7 +15549,7 @@
property.
- If the is set to null
+ If the is set to
then all the properties are written as key value pairs.
@@ -16662,7 +16702,7 @@
Can the sourceType be converted to an
the source to be to be converted
- true if the source type can be converted to
+ if the source type can be converted to
Test if the can be converted to a
@@ -16706,7 +16746,7 @@
Looks up and returns the object value of the property
named . If there is no property defined
- with than name then null will be returned.
+ with than name then will be returned.
@@ -16983,7 +17023,7 @@
The parameter determines whether
location information will be output by the layout. If
- is set to true, then the
+ is set to , then the
file name and line number of the statement at the origin of the log
statement will be output.
@@ -17000,12 +17040,12 @@
the XML events.
- true if location information should be included in the XML
- events; otherwise, false.
+ if location information should be included in the XML
+ events; otherwise, .
- If is set to true, then the file
+ If is set to , then the file
name and line number of the statement at the origin of the log
statement will be output.
@@ -17160,9 +17200,9 @@
- The LogicalThreadContext provides a location for specific debugging
+ The provides a location for specific debugging
information to be stored.
- The LogicalThreadContext properties override any or
+ The properties override any or
properties with the same name.
@@ -17215,7 +17255,7 @@
- The LogicalThreadContext properties override any
+ The properties override any
or properties with the same name.
@@ -17265,11 +17305,11 @@
If the named logger exists (in the default repository) then it
- returns a reference to the logger, otherwise it returns null.
+ returns a reference to the logger, otherwise it returns .
The fully qualified logger name to look for.
- The logger found, or null if no logger could be found.
+ The logger found, or if no logger could be found.
Get the currently defined loggers.
@@ -17309,13 +17349,13 @@
If the named logger exists (in the specified repository) then it
returns a reference to the logger, otherwise it returns
- null.
+ .
The repository to lookup in.
The fully qualified logger name to look for.
- The logger found, or null if the logger doesn't exist in the specified
+ The logger found, or if the logger doesn't exist in the specified
repository.
@@ -17327,13 +17367,13 @@
If the named logger exists (in the repository for the specified assembly) then it
returns a reference to the logger, otherwise it returns
- null.
+ .
The assembly to use to look up the repository.
The fully qualified logger name to look for.
- The logger, or null if the logger doesn't exist in the specified
+ The logger, or if the logger doesn't exist in the specified
assembly's repository.
@@ -17528,8 +17568,8 @@
Resets all values contained in the repository instance to their
defaults. This removes all appenders from all loggers, sets
- the level of all non-root loggers to null,
- sets their additivity flag to true and sets the level
+ the level of all non-root loggers to ,
+ sets their additivity flag to and sets the level
of the root logger to . Moreover,
message disabling is set to its default "off" value.
@@ -17543,8 +17583,8 @@
Reset all values contained in the repository instance to their
defaults. This removes all appenders from all loggers, sets
- the level of all non-root loggers to null,
- sets their additivity flag to true and sets the level
+ the level of all non-root loggers to ,
+ sets their additivity flag to and sets the level
of the root logger to . Moreover,
message disabling is set to its default "off" value.
@@ -17559,8 +17599,8 @@
Reset all values contained in the repository instance to their
defaults. This removes all appenders from all loggers, sets
- the level of all non-root loggers to null,
- sets their additivity flag to true and sets the level
+ the level of all non-root loggers to ,
+ sets their additivity flag to and sets the level
of the root logger to . Moreover,
message disabling is set to its default "off" value.
@@ -17691,7 +17731,7 @@
Flushes logging events buffered in all configured appenders in the default repository.
The maximum time in milliseconds to wait for logging events from asynchronous appenders to be flushed.
- True if all logging events were flushed successfully, else false.
+ if all logging events were flushed successfully, else .
@@ -17752,7 +17792,7 @@
Gets the context value identified by the parameter.
The key to lookup in the MDC.
- The string value held for the key, or a null reference if no corresponding value is found.
+ The string value held for the key, or a reference if no corresponding value is found.
@@ -17762,7 +17802,7 @@
If the parameter does not look up to a
- previously defined context then null will be returned.
+ previously defined context then will be returned.
@@ -17787,7 +17827,7 @@
If a value is already defined for the
specified then the value will be replaced. If the
- is specified as null then the key value mapping will be removed.
+ is specified as then the key value mapping will be removed.
@@ -17963,7 +18003,7 @@
Remove the top context from the stack, and return
it to the caller. If the stack is empty then an
- empty string (not null) is returned.
+ empty string (not ) is returned.
@@ -17986,11 +18026,11 @@
Pushes a new context onto the context stack. An
is returned that can be used to clean up the context stack. This
- can be easily combined with the using keyword to scope the
+ can be easily combined with the keyword to scope the
context.
- Simple example of using the Push method with the using keyword.
+ Simple example of using the method with the keyword.
using(log4net.NDC.Push("NDC_Message"))
{
@@ -18019,11 +18059,11 @@
Pushes a new context onto the context stack. An
is returned that can be used to clean up the context stack. This
- can be easily combined with the using keyword to scope the
+ can be easily combined with the keyword to scope the
context.
- Simple example of using the Push method with the using keyword.
+ Simple example of using the method with the keyword.
var someValue = "ExampleContext"
using(log4net.NDC.PushFormat("NDC_Message {0}", someValue))
@@ -18113,7 +18153,7 @@
Rendered String
-
- null
+
"(null)"
@@ -18269,7 +18309,7 @@
The method is used to render an
- object using the appropriate renderers defined in this map,
+ using the appropriate renderers defined in this map,
using a default renderer if no custom renderer is defined for a type.
@@ -18334,7 +18374,7 @@
Recursively searches interfaces.
The type for which to look up the renderer.
- The renderer for the specified type, or null if not found.
+ The renderer for the specified type, or if not found.
@@ -18460,8 +18500,8 @@
Advances the enumerator to the next element in the collection.
- true if the enumerator was successfully advanced to the next element;
- false if the enumerator has passed the end of the collection.
+ if the enumerator was successfully advanced to the next element;
+ if the enumerator has passed the end of the collection.
The collection was modified after the enumerator was created.
@@ -18474,52 +18514,52 @@
- Creates a read-only wrapper for a PluginCollection instance.
+ Creates a read-only wrapper for a instance.
list to create a readonly wrapper arround
- A PluginCollection wrapper that is read-only.
+ A wrapper that is read-only.
- Initializes a new instance of the PluginCollection class
+ Initializes a new instance of the class
that is empty and has the default initial capacity.
- Initializes a new instance of the PluginCollection class
+ Initializes a new instance of the class
that has the specified initial capacity.
- The number of elements that the new PluginCollection is initially capable of storing.
+ The number of elements that the new is initially capable of storing.
- Initializes a new instance of the PluginCollection class
- that contains elements copied from the specified PluginCollection.
+ Initializes a new instance of the class
+ that contains elements copied from the specified .
- The PluginCollection whose elements are copied to the new collection.
+ The whose elements are copied to the new collection.
- Initializes a new instance of the PluginCollection class
+ Initializes a new instance of the class
that contains elements copied from the specified array.
The array whose elements are copied to the new list.
- Initializes a new instance of the PluginCollection class
+ Initializes a new instance of the class
that contains elements copied from the specified collection.
The collection whose elements are copied to the new list.
- Initializes a new instance of the PluginCollection class
+ Initializes a new instance of the class
that contains elements copied from the specified collection.
The collection whose elements are copied to the new list.
@@ -18544,19 +18584,19 @@
- Gets the number of elements actually contained in the PluginCollection.
+ Gets the number of elements actually contained in the .
- Copies the entire PluginCollection to a one-dimensional
+ Copies the entire to a one-dimensional
array.
The one-dimensional array to copy to.
- Copies the entire PluginCollection to a one-dimensional
+ Copies the entire to a one-dimensional
array, starting at the specified index of the target array.
The one-dimensional array to copy to.
@@ -18589,14 +18629,14 @@
- Adds a to the end of the PluginCollection.
+ Adds a to the end of the .
- The to be added to the end of the PluginCollection.
+ The to be added to the end of the .
The index at which the value has been added.
- Removes all elements from the PluginCollection.
+ Removes all elements from the .
@@ -18607,25 +18647,25 @@
- Determines whether a given is in the PluginCollection.
+ Determines whether a given is in the .
The to check for.
- true if is found in the PluginCollection; otherwise, false.
+ if is found in the ; otherwise, .
Returns the zero-based index of the first occurrence of a
- in the PluginCollection.
+ in the .
- The to locate in the PluginCollection.
+ The to locate in the .
The zero-based index of the first occurrence of
- in the entire PluginCollection, if found; otherwise, -1.
+ in the entire , if found; otherwise, -1.
- Inserts an element into the PluginCollection at the specified index.
+ Inserts an element into the at the specified index.
The zero-based index at which should be inserted.
The to insert.
@@ -18637,16 +18677,16 @@
- Removes the first occurrence of a specific from the PluginCollection.
+ Removes the first occurrence of a specific from the .
- The to remove from the PluginCollection.
+ The to remove from the .
- The specified was not found in the PluginCollection.
+ The specified was not found in the .
- Removes the element at the specified index of the PluginCollection.
+ Removes the element at the specified index of the .
The zero-based index of the element to remove.
@@ -18659,55 +18699,55 @@
Gets a value indicating whether the collection has a fixed size.
- true if the collection has a fixed size; otherwise, false. The default is false.
+ if the collection has a fixed size; otherwise, . The default is .
Gets a value indicating whether the IList is read-only.
- true if the collection is read-only; otherwise, false. The default is false.
+ if the collection is read-only; otherwise, . The default is .
- Returns an enumerator that can iterate through the PluginCollection.
+ Returns an enumerator that can iterate through the .
- An for the entire PluginCollection.
+ An for the entire .
- Gets or sets the number of elements the PluginCollection can contain.
+ Gets or sets the number of elements the can contain.
- The number of elements the PluginCollection can contain.
+ The number of elements the can contain.
- Adds the elements of another PluginCollection to the current PluginCollection.
+ Adds the elements of another to the current .
- The PluginCollection whose elements should be added to the end of the current PluginCollection.
- The new of the PluginCollection.
+ The whose elements should be added to the end of the current .
+ The new of the .
- Adds the elements of a array to the current PluginCollection.
+ Adds the elements of a array to the current .
- The array whose elements should be added to the end of the PluginCollection.
- The new of the PluginCollection.
+ The array whose elements should be added to the end of the .
+ The new of the .
- Adds the elements of a collection to the current PluginCollection.
+ Adds the elements of a collection to the current .
- The collection whose elements should be added to the end of the PluginCollection.
- The new of the PluginCollection.
+ The collection whose elements should be added to the end of the .
+ The new of the .
- Adds the elements of a collection to the current PluginCollection.
+ Adds the elements of a collection to the current .
- The collection whose elements should be added to the end of the PluginCollection.
- The new of the PluginCollection.
+ The collection whose elements should be added to the end of the .
+ The new of the .
@@ -18736,7 +18776,7 @@
- Initializes a new instance of the Enumerator class.
+ Initializes a new instance of the class.
@@ -18750,8 +18790,8 @@
Advances the enumerator to the next element in the collection.
- true if the enumerator was successfully advanced to the next element;
- false if the enumerator has passed the end of the collection.
+ if the enumerator was successfully advanced to the next element;
+ if the enumerator has passed the end of the collection.
The collection was modified after the enumerator was created.
@@ -18800,7 +18840,7 @@
The name of the to lookup.
The from the map with the name specified, or
- null if no plugin is found.
+ if no plugin is found.
@@ -18949,7 +18989,7 @@
Create a new instance with the specified name.
The that will own the .
- The name of the . If null, the root logger is returned.
+ The name of the . If , the root logger is returned.
The instance for the specified name.
@@ -19496,7 +19536,7 @@
new named instances.
- If the is null then the root logger
+ If the is then the root logger
must be returned.
@@ -19841,6 +19881,20 @@
+
+
+ Atomically replaces all appenders with the provided collection.
+
+ The new set of appenders to attach.
+
+
+ This method removes the existing appenders and attaches all new
+ appenders inside a single writer lock, minimizing the window
+ during which the logger has no appenders. This reduces silent log
+ event loss during reconfiguration.
+
+
+
Used internally to accelerate hash table searches.
@@ -19944,7 +19998,7 @@
that it provides several guarantees.
- First, it cannot be assigned a null
+ First, it cannot be assigned a
level. Second, since the root logger cannot have a parent, the
property always returns the value of the
level field without walking the hierarchy.
@@ -19977,7 +20031,7 @@
Because the root logger cannot have a parent and its level
- must not be null this property just returns the
+ must not be this property just returns the
value of .
@@ -19991,7 +20045,7 @@
- Setting the level of the root logger to a null reference
+ Setting the level of the root logger to a reference
may have catastrophic results. We prevent this here.
@@ -20050,7 +20104,7 @@
Parses an appender element.
The appender element.
- The appender instance or null when parsing failed.
+ The appender instance or when parsing failed.
Parse an XML element that represents an appender and return
@@ -20091,6 +20145,11 @@
Parse the child elements of a <logger> element.
+
+ Appenders are collected from XML first, then applied atomically via
+ , minimizing the window during
+ which the logger has no appenders and silent log event loss can occur.
+
@@ -20140,14 +20199,14 @@
Test if an element has no attributes or child elements
the element to inspect
- true if the element has any attributes or child elements, false otherwise
+ if the element has any attributes or child elements, otherwise
Test if a is constructible with Activator.CreateInstance.
the type to inspect
- true if the type is creatable using a default constructor, false otherwise
+ if the type is creatable using a default constructor, otherwise
@@ -20173,7 +20232,7 @@
An object of type with value or
- null when the conversion could not be performed.
+ when the conversion could not be performed.
@@ -20184,7 +20243,7 @@
The XML element that contains the definition of the object.
The object type to use if not explicitly specified.
The type that the returned object must be or must inherit from.
- The object or null
+ The object or
Parse an XML element and create an object instance based on the configuration
@@ -20309,10 +20368,10 @@
- Gets the named logger, or null.
+ Gets the named logger, or .
The name of the logger to look up.
- The logger if found, or null.
+ The logger if found, or .
@@ -20568,7 +20627,7 @@
Check if the named logger exists in the repository. If so return
- its reference, otherwise returns null.
+ its reference, otherwise returns .
@@ -20788,7 +20847,7 @@
The maximum time in milliseconds to wait for logging events from asynchronous appenders to be flushed,
or to wait indefinitely.
- True if all logging events were flushed successfully, else false.
+ if all logging events were flushed successfully, else .
@@ -20796,9 +20855,9 @@
- The ThreadContext provides a location for thread specific debugging
+ The provides a location for thread specific debugging
information to be stored.
- The ThreadContext properties override any
+ The properties override any
properties with the same name.
@@ -20844,7 +20903,7 @@
- The ThreadContext properties override any
+ The properties override any
properties with the same name.
@@ -20944,7 +21003,7 @@
Gets all attached appenders.
- A collection of attached appenders, or null if there
+ A collection of attached appenders, or if there
are no attached appenders.
@@ -20959,7 +21018,7 @@
The name of the appender to get.
- The appender with the name specified, or null if no appender with the
+ The appender with the name specified, or if no appender with the
specified name is found.
@@ -21064,7 +21123,7 @@
If none of the collections contain the specified key then
- null is returned.
+ is returned.
@@ -21242,11 +21301,11 @@
Appends a to the buffer.
The event to append to the buffer.
- The event discarded from the buffer, if the buffer is full, otherwise null.
+ The event discarded from the buffer, if the buffer is full, otherwise .
Append an event to the buffer. If the buffer still contains free space then
- null is returned. If the buffer is full then an event will be dropped
+ is returned. If the buffer is full then an event will be dropped
to make space for the new event, the dropped event is returned.
@@ -21291,7 +21350,7 @@
If is outside the range 0 to the number of events
- currently in the buffer, then null is returned.
+ currently in the buffer, then is returned.
@@ -21378,7 +21437,7 @@
- For the this property is always true.
+ For the this property is always .
@@ -21561,10 +21620,10 @@
with the specified key.
The key to locate in the .
- false
+
- As the collection is empty the method always returns false.
+ As the collection is empty the method always returns .
@@ -21599,10 +21658,10 @@
Gets a value indicating whether the has a fixed size.
- true
+
- As the collection is empty always returns true.
+ As the collection is empty always returns .
@@ -21610,10 +21669,10 @@
Gets a value indicating whether the is read-only.
- true
+
- As the collection is empty always returns true.
+ As the collection is empty always returns .
@@ -21644,11 +21703,11 @@
Gets or sets the element with the specified key.
The key of the element to get or set.
- null
+
As the collection is empty no values can be looked up or stored.
- If the index getter is called then null is returned.
+ If the index getter is called then is returned.
A is thrown if the setter is called.
@@ -21816,7 +21875,7 @@
- This variable is declared volatile to prevent the compiler and JIT from
+ This variable is declared to prevent the compiler and JIT from
reordering reads and writes of this thread performed on different threads.
@@ -23214,11 +23273,11 @@
Pushes a new context onto this stack. An
is returned that can be used to clean up this stack. This
- can be easily combined with the using keyword to scope the
+ can be easily combined with the keyword to scope the
context.
- Simple example of using the Push method with the using keyword.
+ Simple example of using the method with the keyword.
using(log4net.LogicalThreadContext.Stacks["NDC"].Push("Stack_Message"))
{
@@ -23468,12 +23527,12 @@
The log4net.Internal.Debug application setting
controls internal debugging. This setting should be set
- to true to enable debugging.
+ to to enable debugging.
The log4net.Internal.Quiet application setting
suppresses all internal logging including error messages.
- This setting should be set to true to enable message
+ This setting should be set to to enable message
suppression.
@@ -23484,12 +23543,12 @@
is enabled or disabled.
- true if log4net internal logging is enabled, otherwise
- false.
+ if log4net internal logging is enabled, otherwise
+ .
- When set to true, internal debug level logging will be
+ When set to , internal debug level logging will be
displayed.
@@ -23498,7 +23557,7 @@
file.
- The default value is false, i.e. debugging is
+ The default value is , i.e. debugging is
disabled.
@@ -23522,12 +23581,12 @@
from internal logging, not even for errors.
- true if log4net should generate no output at all from internal
- logging, otherwise false.
+ if log4net should generate no output at all from internal
+ logging, otherwise .
- When set to true will cause internal logging at all levels to be
+ When set to will cause internal logging at all levels to be
suppressed. This means that no warning or error reports will be logged.
This option overrides the setting and
disables all debug also.
@@ -23536,7 +23595,7 @@
log4net.Internal.Quiet in the application configuration file.
- The default value is false, i.e. internal logging is not
+ The default value is , i.e. internal logging is not
disabled.
@@ -23554,9 +23613,15 @@
-
+ Configures whether internal messages are emitted to Console.Out and Console.Error.
+
+
+ Execute the callback with internal messages suppressed
+
+ Callback
+
Raises the LogReceived event when an internal messages is received.
@@ -23571,7 +23636,7 @@
Test if LogLog.Debug is enabled for output.
- true if Debug is enabled
+ if Debug is enabled
@@ -23613,7 +23678,7 @@
Test if LogLog.Warn is enabled for output.
- true if Warn is enabled
+ if Warn is enabled
@@ -23650,7 +23715,7 @@
Test if LogLog.Error is enabled for output.
- true if Error is enabled
+ if Error is enabled
@@ -23966,12 +24031,12 @@
Test if the enumerator can advance, if so advance.
- false as the cannot advance.
+ as the cannot advance.
As the enumerator is over an empty collection its
value cannot be moved over a valid position, therefore
- will always return false.
+ will always return .
@@ -24091,12 +24156,12 @@
Test if the enumerator can advance, if so advance
- false as the cannot advance.
+ as the cannot advance.
As the enumerator is over an empty collection its
value cannot be moved over a valid position, therefore
- will always return false.
+ will always return .
@@ -24148,10 +24213,10 @@
Impersonate this SecurityContext
State supplied by the caller
- null
+
- No impersonation is done and null is always returned.
+ No impersonation is done and is always returned.
@@ -24326,8 +24391,8 @@
The value of .
- If is "true", then true is returned.
- If is "false", then false is returned.
+ If is "true", then is returned.
+ If is "false", then is returned.
Otherwise, is returned.
@@ -24357,7 +24422,7 @@
The target type to convert to.
The string to convert to an object.
- The object converted from a string or null when the
+ The object converted from a string or when the
conversion failed.
@@ -24373,7 +24438,7 @@
The type to convert from.
The type to convert to.
- true if there is a conversion from the source type to the target type.
+ if there is a conversion from the source type to the target type.
Checks if there is an appropriate type conversion from the source type to the target type.
@@ -24464,7 +24529,7 @@
The type to convert to.
The enum string value.
- If true, ignore case; otherwise, regard case.
+ If , ignore case; otherwise, regard case.
An object of type whose value is represented by .
@@ -24664,7 +24729,7 @@
- The PatternParser processes a pattern string and
+ The processes a pattern string and
returns a chain of objects.
@@ -24780,7 +24845,7 @@
This class functions similarly to the
in that it accepts a pattern and renders it to a string. Unlike the
- however the PatternString
+ however the
does not render the properties of a specific but
of the process in general.
@@ -25181,7 +25246,7 @@
property.
- If the is set to null
+ If the is set to
then all the properties are written as key value pairs.
@@ -25566,7 +25631,7 @@
property.
- If the is set to null
+ If the is set to
then all the properties are written as key value pairs.
@@ -25837,12 +25902,12 @@
See
- false
+
This collection is modifiable. This property always
- returns false.
+ returns .
@@ -25954,7 +26019,7 @@
Gets a value indicating whether this writer is closed.
- true if this writer is closed, otherwise false.
+ if this writer is closed, otherwise .
@@ -26013,11 +26078,11 @@
- ReaderWriterLock is used to synchronize access to a resource.
+ is used to synchronize access to a resource.
At any given time, it allows either concurrent read access for
multiple threads, or write access for a single thread. In a
situation where a resource is changed infrequently, a
- ReaderWriterLock provides better throughput than a simple
+ provides better throughput than a simple
one-at-a-time lock, such as .
@@ -26468,11 +26533,11 @@
- Text to output when a null is encountered.
+ Text to output when a is encountered.
- Use this value to indicate a null has been encountered while
+ Use this value to indicate a has been encountered while
outputting a string representation of an item.
@@ -26549,9 +26614,9 @@
A sibling type to use to load the type.
The name of the type to load.
- Flag set to true to throw an exception if the type cannot be loaded.
- true to ignore the case of the type name; otherwise, false
- The type loaded or null if it could not be loaded.
+ Flag set to to throw an exception if the type cannot be loaded.
+ to ignore the case of the type name; otherwise,
+ The type loaded or if it could not be loaded.
If the type name is fully qualified, i.e. if contains an assembly name in
@@ -26570,9 +26635,9 @@
Loads the type specified in the type string.
The name of the type to load.
- Flag set to true to throw an exception if the type cannot be loaded.
- true to ignore the case of the type name; otherwise, false
- The type loaded or null if it could not be loaded.
+ Flag set to to throw an exception if the type cannot be loaded.
+ to ignore the case of the type name; otherwise,
+ The type loaded or if it could not be loaded.
If the type name is fully qualified, i.e. if contains an assembly name in
@@ -26592,9 +26657,9 @@
An assembly to load the type from.
The name of the type to load.
- Flag set to true to throw an exception if the type cannot be loaded.
- true to ignore the case of the type name; otherwise, false
- The type loaded or null if it could not be loaded.
+ Flag set to to throw an exception if the type cannot be loaded.
+ to ignore the case of the type name; otherwise,
+ The type loaded or if it could not be loaded.
If the type name is fully qualified, i.e. if contains an assembly name in
@@ -26633,11 +26698,11 @@
the string to parse
out param where the parsed value is placed
- true if the string was parsed into an integer
+ if the string was parsed into an integer
Attempts to parse the string into an integer. If the string cannot
- be parsed then this method returns false. The method does not throw an exception.
+ be parsed then this method returns . The method does not throw an exception.
@@ -26647,11 +26712,11 @@
the string to parse
out param where the parsed value is placed
- true if the string was parsed into an integer
+ if the string was parsed into an integer
Attempts to parse the string into an integer. If the string cannot
- be parsed then this method returns false. The method does not throw an exception.
+ be parsed then this method returns . The method does not throw an exception.
@@ -26661,11 +26726,11 @@
the string to parse
out param where the parsed value is placed
- true if the string was parsed into an integer
+ if the string was parsed into an integer
Attempts to parse the string into an integer. If the string cannot
- be parsed then this method returns false. The method does not throw an exception.
+ be parsed then this method returns . The method does not throw an exception.
@@ -26674,7 +26739,7 @@
Lookup an application setting
the application settings key to lookup
- the value for the key, or null
+ the value for the key, or
@@ -26711,13 +26776,13 @@
If the platform permits, culture information is ignored completely (ordinal comparison).
- The aim of this method is to provide a fast comparison that deals with null and ignores different casing.
+ The aim of this method is to provide a fast comparison that deals with and ignores different casing.
It is not supposed to deal with various, culture-specific habits.
Use it to compare against pure ASCII constants, like keywords etc.
The one string.
The other string.
- true if the strings are equal, false otherwise.
+ if the strings are equal, otherwise.
@@ -27083,11 +27148,11 @@
Pushes a new context onto this stack. An
is returned that can be used to clean up this stack. This
- can be easily combined with the using keyword to scope the
+ can be easily combined with the keyword to scope the
context.
- Simple example of using the Push method with the using keyword.
+ Simple example of using the method with the keyword.
using(log4net.ThreadContext.Stacks["NDC"].Push("Stack_Message"))
{
@@ -27229,9 +27294,6 @@
Utility class for transforming strings.
-
- Utility class for transforming strings.
-
Nicko Cadell
Gert Driesen
@@ -27266,6 +27328,10 @@
This method replaces any illegal characters in the input string
with the mask string specified.
+
+ Supplementary characters (U+10000�U+10FFFF) encoded as valid UTF-16 surrogate
+ pairs are preserved; only lone surrogates and other illegal code units are masked.
+
@@ -27281,9 +27347,12 @@
-
+
- Characters illegal in XML 1.0
+ Matches either a valid UTF-16 surrogate pair (preserved) or a single character
+ that is illegal in XML 1.0 (replaced). The surrogate-pair alternative must come
+ first so the engine consumes both code units together before the single-char
+ alternative can match them individually.
@@ -27292,7 +27361,7 @@
- Supports conversion from string to bool type.
+ Supports conversion from string to type.
@@ -27307,7 +27376,7 @@
the type to convert
- True if the is
+ if the is
the type.
@@ -27464,7 +27533,7 @@
The type being converted from.
The type being converted to.
- The type converter instance to use for type conversions or null
+ The type converter instance to use for type conversions or
if no type converter is found.
@@ -27474,7 +27543,7 @@
The type being converted to.
- The type converter instance to use for type conversions or null
+ The type converter instance to use for type conversions or
if no type converter is found.
@@ -27485,7 +27554,7 @@
The type being converted to.
- The type converter instance to use for type conversions or null
+ The type converter instance to use for type conversions or
if no type converter is found.
@@ -27495,7 +27564,7 @@
The type of the type converter.
- The type converter instance to use for type conversions or null
+ The type converter instance to use for type conversions or
if no type converter is found.
@@ -27531,7 +27600,7 @@
the type to convert
- True if the is
+ if the is
the type.
@@ -27652,7 +27721,7 @@
true if the conversion is possible
- Returns true if the is
+ Returns if the is
the type.
@@ -27697,7 +27766,7 @@
the type to convert
- True if the is
+ if the is
the type.
@@ -27747,7 +27816,7 @@
true if the conversion is possible
- Returns true if the is
+ Returns if the is
assignable from a type.
@@ -27777,7 +27846,7 @@
the type to convert
- True if the is
+ if the is
the type.
@@ -27815,7 +27884,7 @@
the type to convert
- True if the is
+ if the is
the type.
@@ -27850,7 +27919,7 @@
To associate a type converter with a target type apply a
- TypeConverterAttribute to the target type. Specify the
+ to the target type. Specify the
type of the type converter on the attribute.
diff --git a/bin/Debug/profile - laptop.json b/bin/Debug/profile - laptop.json
new file mode 100644
index 0000000..2250e9b
Binary files /dev/null and b/bin/Debug/profile - laptop.json differ
diff --git a/bin/Debug/profile.json b/bin/Debug/profile.json
index 0d634c0..39d0b56 100644
Binary files a/bin/Debug/profile.json and b/bin/Debug/profile.json differ
diff --git a/bin/Debug/tasklist.json b/bin/Debug/tasklist.json
index a5b7373..83e8ff9 100644
Binary files a/bin/Debug/tasklist.json and b/bin/Debug/tasklist.json differ
diff --git a/packages.config b/packages.config
index 9efe4b4..9bcfaff 100644
--- a/packages.config
+++ b/packages.config
@@ -1,7 +1,7 @@
-
+
diff --git a/profile.json b/profile.json
index 3be3e8a..6db9b58 100644
--- a/profile.json
+++ b/profile.json
@@ -417,7 +417,10 @@
"ProfileCommands": [
"racadm set iDRAC.Users.{Index}.Username {Username}",
"racadm set iDRAC.Users.{Index}.Password {Password}",
- "racadm get iDRAC.Users.{Index}.Username"
+ "racadm get iDRAC.Users.{Index}.Username",
+ "racadm set iDRAC.Users.{Index}.Enable 1",
+ "racadm set iDRAC.Users.{Index}.IpmiLanPriv 4"
+
],
"ProfileParameters": [ "{Index}", "{Username}", "{Password}" ]
},
@@ -433,7 +436,11 @@
"racadm set iDRAC.Users.4.Password {Password 4}",
"racadm get iDRAC.Users.2.Username",
"racadm get iDRAC.Users.3.Username",
- "racadm get iDRAC.Users.4.Username"
+ "racadm get iDRAC.Users.4.Username",
+ "racadm set iDRAC.Users.3.Enable 1",
+ "racadm set iDRAC.Users.3.IpmiLanPriv 4",
+ "racadm set iDRAC.Users.4.Enable 1",
+ "racadm set iDRAC.Users.4.IpmiLanPriv 4"
],
"ProfileParameters": [
"{Password 2 root}",