Skip to content

Commit 682e226

Browse files
author
Maxim Volkov
committed
Second release
1 parent 134f4ed commit 682e226

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

Maximus.Base.Library.ManagedWorkflowBase/Maximus.Base.Library.ManagedWorkflowBase.csproj

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
<DefineConstants>DEBUG;TRACE</DefineConstants>
2222
<ErrorReport>prompt</ErrorReport>
2323
<WarningLevel>4</WarningLevel>
24-
<CodeAnalysisRuleSet>Maximus.Base.Library.ManagedWorkflowBase.ruleset</CodeAnalysisRuleSet>
24+
<CodeAnalysisRuleSet>
25+
</CodeAnalysisRuleSet>
2526
</PropertyGroup>
2627
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
2728
<DebugType>pdbonly</DebugType>
@@ -31,7 +32,8 @@
3132
<ErrorReport>prompt</ErrorReport>
3233
<WarningLevel>4</WarningLevel>
3334
<DocumentationFile>bin\Release\Maximus.Base.Library.ManagedWorkflowBase.xml</DocumentationFile>
34-
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
35+
<CodeAnalysisRuleSet>
36+
</CodeAnalysisRuleSet>
3537
</PropertyGroup>
3638
<PropertyGroup>
3739
<SignAssembly>true</SignAssembly>
@@ -89,7 +91,6 @@
8991
<Compile Include="WellKnownIDs\SCOM.Windows.ID.cs" />
9092
</ItemGroup>
9193
<ItemGroup>
92-
<None Include="Maximus.Base.Library.ManagedWorkflowBase.ruleset" />
9394
<None Include="Maximus.snk" />
9495
<None Include="packages.config" />
9596
</ItemGroup>

Maximus.Base.Library.ManagedWorkflowBase/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
3434
[assembly: AssemblyVersion("1.0.1.0")] // to reference the library
35-
[assembly: AssemblyFileVersion("1.0.1.3")]
35+
[assembly: AssemblyFileVersion("1.0.1.4")]

Maximus.Base.Library.ManagedWorkflowBase/ServiceHelpers/LoggingHelper.cs

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public enum EventLoggingLevel { None = 0, Error = 1, Warning = 2, Informational
1515
public class LoggingHelper
1616
{
1717
// internal fields
18-
private string _eventSourceName = "";
18+
private string _eventSourceName = "Health Service Script";
1919
private Dictionary<Type, int> _eventTypeIDs = new Dictionary<Type, int>();
2020
private object _eventTypeIDs_lock = new object();
2121
private const string SoftwareKeyName = "Maximus";
@@ -35,8 +35,15 @@ public string EventSourceName
3535
{
3636
if (_eventSourceName != value)
3737
{
38-
_eventSourceName = value;
39-
RegisterEventSource(value);
38+
try
39+
{
40+
_eventSourceName = value;
41+
RegisterEventSource(value);
42+
}
43+
catch
44+
{
45+
_eventSourceName = "Health Service Script"; // use pre-existing source.
46+
}
4047
}
4148
}
4249
}
3 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)