Skip to content

Commit

Permalink
Update WexflowEngine.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
aelassas committed Jul 5, 2023
1 parent 3044324 commit 4fe1de8
Show file tree
Hide file tree
Showing 4 changed files with 90 additions and 84 deletions.
50 changes: 50 additions & 0 deletions src/net/Wexflow.Core/DbType.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
// ReSharper disable InconsistentNaming
namespace Wexflow.Core
{
/// <summary>
/// Database type
/// </summary>
public enum DbType
{
/// <summary>
/// LiteDB
/// </summary>
LiteDB,
/// <summary>
/// MongoDB
/// </summary>
MongoDB,
/// <summary>
/// RavenDB
/// </summary>
RavenDB,
/// <summary>
/// PostgreSQL
/// </summary>
PostgreSQL,
/// <summary>
/// SQLServer
/// </summary>
SQLServer,
/// <summary>
/// MySQL
/// </summary>
MySQL,
/// <summary>
/// SQLite
/// </summary>
SQLite,
/// <summary>
/// Firebird
/// </summary>
Firebird,
/// <summary>
/// Oracle
/// </summary>
Oracle,
/// <summary>
/// MariaDB
/// </summary>
MariaDB
}
}
29 changes: 29 additions & 0 deletions src/net/Wexflow.Core/LogLevel.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
namespace Wexflow.Core
{
/// <summary>
/// Log level
/// </summary>
public enum LogLevel
{
/// <summary>
/// All logs and debug logs.
/// </summary>
Debug,
/// <summary>
/// All logs without debug logs.
/// </summary>
All,
/// <summary>
/// Only last workflow log and error logs.
/// </summary>
Severely,
/// <summary>
/// Only last workflow log.
/// </summary>
Minimum,
/// <summary>
/// No logs.
/// </summary>
None
}
}
4 changes: 3 additions & 1 deletion src/net/Wexflow.Core/Wexflow.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
Expand Down Expand Up @@ -117,6 +117,7 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Attribute.cs" />
<Compile Include="DbType.cs" />
<Compile Include="ExecutionGraph\Flowchart\Case.cs" />
<Compile Include="ExecutionGraph\Flowchart\If.cs" />
<Compile Include="ExecutionGraph\Flowchart\Switch.cs" />
Expand All @@ -129,6 +130,7 @@
<Compile Include="LaunchType.cs" />
<Compile Include="Logger.cs" />
<Compile Include="ExecutionGraph\Node.cs" />
<Compile Include="LogLevel.cs" />
<Compile Include="NetworkShareAccesser.cs" />
<Compile Include="Setting.cs" />
<Compile Include="Status.cs" />
Expand Down
91 changes: 8 additions & 83 deletions src/net/Wexflow.Core/WexflowEngine.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,84 +9,9 @@
using System.Xml.Linq;
using System.Xml.XPath;
using Wexflow.Core.Db;
// ReSharper disable InconsistentNaming

namespace Wexflow.Core
{
/// <summary>
/// Log level
/// </summary>
public enum LogLevel
{
/// <summary>
/// All logs and debug logs.
/// </summary>
Debug,
/// <summary>
/// All logs without debug logs.
/// </summary>
All,
/// <summary>
/// Only last workflow log and error logs.
/// </summary>
Severely,
/// <summary>
/// Only last workflow log.
/// </summary>
Minimum,
/// <summary>
/// No logs.
/// </summary>
None
}

/// <summary>
/// Database type
/// </summary>
public enum DbType
{
/// <summary>
/// LiteDB
/// </summary>
LiteDB,
/// <summary>
/// MongoDB
/// </summary>
MongoDB,
/// <summary>
/// RavenDB
/// </summary>
RavenDB,
/// <summary>
/// PostgreSQL
/// </summary>
PostgreSQL,
/// <summary>
/// SQLServer
/// </summary>
SQLServer,
/// <summary>
/// MySQL
/// </summary>
MySQL,
/// <summary>
/// SQLite
/// </summary>
SQLite,
/// <summary>
/// Firebird
/// </summary>
Firebird,
/// <summary>
/// Oracle
/// </summary>
Oracle,
/// <summary>
/// MariaDB
/// </summary>
MariaDB
}

/// <summary>
/// Wexflow engine.
/// </summary>
Expand All @@ -95,7 +20,7 @@ public class WexflowEngine
/// <summary>
/// Log level.
/// </summary>
public LogLevel LogLevel { get; private set; }
public LogLevel LogLevel { get; }
/// <summary>
/// Records db folder name.
/// </summary>
Expand All @@ -115,31 +40,31 @@ public class WexflowEngine
/// <summary>
/// Indicates whether email notifications are enabled or not.
/// </summary>
public bool EnableEmailNotifications { get; private set; }
public bool EnableEmailNotifications { get; }
/// <summary>
/// SMTP host.
/// </summary>
public string SmptHost { get; private set; }
public string SmptHost { get; }
/// <summary>
/// SMTP port.
/// </summary>
public int SmtpPort { get; private set; }
public int SmtpPort { get; }
/// <summary>
/// Indicates whether to enable SMTP SSL or not.
/// </summary>
public bool SmtpEnableSsl { get; private set; }
public bool SmtpEnableSsl { get; }
/// <summary>
/// SMTP user.
/// </summary>
public string SmtpUser { get; private set; }
public string SmtpUser { get; }
/// <summary>
/// SMTP password.
/// </summary>
public string SmtpPassword { get; private set; }
public string SmtpPassword { get; }
/// <summary>
/// SMTP from.
/// </summary>
public string SmtpFrom { get; private set; }
public string SmtpFrom { get; }
/// <summary>
/// Workflows hot folder path.
/// </summary>
Expand Down

0 comments on commit 4fe1de8

Please sign in to comment.