Skip to content

Commit 7c925a8

Browse files
committed
Initial setup
1 parent cc4863d commit 7c925a8

File tree

80 files changed

+2198
-3290
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2198
-3290
lines changed

src/Standard/NDF/CodeFactory.Automation.Standard.NDF/CodeFactory.Automation.Standard.NDF.csproj renamed to src/Architecture/CodeFactory.Architecture.Blazor.Server/CodeFactory.Architecture.Blazor.Server.csproj

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProductVersion>8.0.30703</ProductVersion>
88
<SchemaVersion>2.0</SchemaVersion>
9-
<ProjectGuid>{DF91E081-52B7-4698-AB4A-9ABAE2DBEEBE}</ProjectGuid>
9+
<ProjectGuid>{AE271FAB-E0EC-4E9E-B658-39F7010FABE2}</ProjectGuid>
1010
<OutputType>Library</OutputType>
1111
<AppDesignerFolder>Properties</AppDesignerFolder>
12-
<RootNamespace>CodeFactory.Automation.Standard.NDF</RootNamespace>
13-
<AssemblyName>CodeFactory.Automation.Standard.NDF</AssemblyName>
12+
<RootNamespace>CodeFactory.Architecture.Blazor.Server</RootNamespace>
13+
<AssemblyName>CodeFactory.Architecture.Blazor.Server</AssemblyName>
1414
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1515
<FileAlignment>512</FileAlignment>
1616
<StartAction>Program</StartAction>
@@ -24,7 +24,6 @@
2424
<DefineConstants>DEBUG;TRACE</DefineConstants>
2525
<ErrorReport>prompt</ErrorReport>
2626
<WarningLevel>4</WarningLevel>
27-
<DocumentationFile>bin\Debug\CodeFactory.Automation.Standard.NDF.xml</DocumentationFile>
2827
</PropertyGroup>
2928
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
3029
<DebugType>pdbonly</DebugType>
@@ -49,15 +48,7 @@
4948
<Reference Include="WindowsBase" />
5049
</ItemGroup>
5150
<ItemGroup>
52-
<Compile Include="AddMissingMembersNDF.cs" />
5351
<Compile Include="Properties\AssemblyInfo.cs" />
54-
<Compile Include="RegisterTransientServices.cs" />
55-
</ItemGroup>
56-
<ItemGroup>
57-
<ProjectReference Include="..\CodeFactory.Automation.Standard.NDF.Logic\CodeFactory.Automation.Standard.NDF.Logic.csproj">
58-
<Project>{cf0f98b6-e6c9-4bba-b61f-20e00260676f}</Project>
59-
<Name>CodeFactory.Automation.Standard.NDF.Logic</Name>
60-
</ProjectReference>
6152
</ItemGroup>
6253
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6354
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.7.34031.279
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeFactory.Architecture.Blazor.Server", "CodeFactory.Architecture.Blazor.Server.csproj", "{AE271FAB-E0EC-4E9E-B658-39F7010FABE2}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeFactory.Automation.Standard.Logic", "..\..\Automation\CodeFactory.Automation.Standard.Logic\CodeFactory.Automation.Standard.Logic.csproj", "{B1973F62-7951-41D3-A227-F3584B7F3CDE}"
9+
EndProject
10+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodeFactory.Automation.NDF.Logic", "..\..\Automation\CodeFactory.Automation.NDF.Logic\CodeFactory.Automation.NDF.Logic.csproj", "{01F5417B-D33E-43BA-9D13-E9114EB989AC}"
11+
EndProject
12+
Global
13+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
14+
Debug|Any CPU = Debug|Any CPU
15+
Release|Any CPU = Release|Any CPU
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{AE271FAB-E0EC-4E9E-B658-39F7010FABE2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{AE271FAB-E0EC-4E9E-B658-39F7010FABE2}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{AE271FAB-E0EC-4E9E-B658-39F7010FABE2}.Release|Any CPU.ActiveCfg = Release|Any CPU
21+
{AE271FAB-E0EC-4E9E-B658-39F7010FABE2}.Release|Any CPU.Build.0 = Release|Any CPU
22+
{B1973F62-7951-41D3-A227-F3584B7F3CDE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
23+
{B1973F62-7951-41D3-A227-F3584B7F3CDE}.Debug|Any CPU.Build.0 = Debug|Any CPU
24+
{B1973F62-7951-41D3-A227-F3584B7F3CDE}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{B1973F62-7951-41D3-A227-F3584B7F3CDE}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{01F5417B-D33E-43BA-9D13-E9114EB989AC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
27+
{01F5417B-D33E-43BA-9D13-E9114EB989AC}.Debug|Any CPU.Build.0 = Debug|Any CPU
28+
{01F5417B-D33E-43BA-9D13-E9114EB989AC}.Release|Any CPU.ActiveCfg = Release|Any CPU
29+
{01F5417B-D33E-43BA-9D13-E9114EB989AC}.Release|Any CPU.Build.0 = Release|Any CPU
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {B3FA3DFE-B4B5-4D5D-BF33-4E77AB875805}
36+
EndGlobalSection
37+
EndGlobal

src/Standard/NDF/CodeFactory.Automation.Standard.NDF/Properties/AssemblyInfo.cs renamed to src/Architecture/CodeFactory.Architecture.Blazor.Server/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
// General Information about an assembly is controlled through the following
77
// set of attributes. Change these attribute values to modify the information
88
// associated with an assembly.
9-
[assembly: AssemblyTitle("CodeFactory.Automation.Standard.NDF")]
9+
[assembly: AssemblyTitle("CodeFactory.Architecture.Blazor.Server")]
1010
[assembly: AssemblyDescription("")]
1111
[assembly: AssemblyConfiguration("")]
1212
[assembly: AssemblyCompany("")]
13-
[assembly: AssemblyProduct("CodeFactory.Automation.Standard.NDF")]
13+
[assembly: AssemblyProduct("CodeFactory.Architecture.Blazor.Server")]
1414
[assembly: AssemblyCopyright("Copyright © 2023")]
1515
[assembly: AssemblyTrademark("")]
1616
[assembly: AssemblyCulture("")]
@@ -21,7 +21,7 @@
2121
[assembly: ComVisible(false)]
2222

2323
// The following GUID is for the ID of the typelib if this project is exposed to COM
24-
[assembly: Guid("df91e081-52b7-4698-ab4a-9abae2dbeebe")]
24+
[assembly: Guid("ae271fab-e0ec-4e9e-b658-39f7010fabe2")]
2525

2626
// Version information for an assembly consists of the following four values:
2727
//
@@ -34,6 +34,6 @@
3434
// by using the '*' as shown below:
3535
// [assembly: AssemblyVersion("1.0.*")]
3636
[assembly: AssemblyVersion("1.0.0.0")]
37-
[assembly: AssemblyFileVersion("2.23164.0.1")]
37+
[assembly: AssemblyFileVersion("1.0.0.0")]
3838
[assembly: AssemblyCFEnvironment("CFVSW")]
3939
[assembly: AssemblyCFSdkVersion("2.23160.0.1")]

src/Standard/CodeFactory.Automation.Standard/CodeFactory.Automation.Standard.csproj renamed to src/Automation/CodeFactory.Automation.NDF.AspNetCore.Logic/CodeFactory.Automation.NDF.AspNetCore.Logic.csproj

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProductVersion>8.0.30703</ProductVersion>
88
<SchemaVersion>2.0</SchemaVersion>
9-
<ProjectGuid>{B3A2C1A3-3605-4E17-BA5B-1DA7ED5D6CCC}</ProjectGuid>
9+
<ProjectGuid>{EAFD1523-F740-4FB2-B392-64F267333B33}</ProjectGuid>
1010
<OutputType>Library</OutputType>
1111
<AppDesignerFolder>Properties</AppDesignerFolder>
12-
<RootNamespace>CodeFactory.Automation.Standard</RootNamespace>
13-
<AssemblyName>CodeFactory.Automation.Standard</AssemblyName>
12+
<RootNamespace>CodeFactory.Automation.NDF.AspNetCore.Logic</RootNamespace>
13+
<AssemblyName>CodeFactory.Automation.NDF.AspNetCore.Logic</AssemblyName>
1414
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1515
<FileAlignment>512</FileAlignment>
1616
<StartAction>Program</StartAction>
@@ -48,14 +48,10 @@
4848
<Reference Include="WindowsBase" />
4949
</ItemGroup>
5050
<ItemGroup>
51-
<Compile Include="AddMissingMembers.cs" />
5251
<Compile Include="Properties\AssemblyInfo.cs" />
5352
</ItemGroup>
5453
<ItemGroup>
55-
<ProjectReference Include="..\CodeFactory.Automation.Standard.Logic\CodeFactory.Automation.Standard.Logic.csproj">
56-
<Project>{4a7d7959-1e8f-41cf-a606-ef326737cd78}</Project>
57-
<Name>CodeFactory.Automation.Standard.Logic</Name>
58-
</ProjectReference>
54+
<Folder Include="Service\Rest\Json\" />
5955
</ItemGroup>
6056
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6157
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

src/Standard/NDF/CodeFactory.Automation.Standard.NDF.Logic/Properties/AssemblyInfo.cs renamed to src/Automation/CodeFactory.Automation.NDF.AspNetCore.Logic/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
// General Information about an assembly is controlled through the following
77
// set of attributes. Change these attribute values to modify the information
88
// associated with an assembly.
9-
[assembly: AssemblyTitle("CodeFactory.Automation.Standard.NDF.Logic")]
9+
[assembly: AssemblyTitle("CodeFactory.Automation.NDF.AspNetCore.Logic")]
1010
[assembly: AssemblyDescription("")]
1111
[assembly: AssemblyConfiguration("")]
1212
[assembly: AssemblyCompany("")]
13-
[assembly: AssemblyProduct("CodeFactory.Automation.Standard.NDF.Logic")]
13+
[assembly: AssemblyProduct("CodeFactory.Automation.NDF.AspNetCore.Logic")]
1414
[assembly: AssemblyCopyright("Copyright © 2023")]
1515
[assembly: AssemblyTrademark("")]
1616
[assembly: AssemblyCulture("")]
@@ -21,7 +21,7 @@
2121
[assembly: ComVisible(false)]
2222

2323
// The following GUID is for the ID of the typelib if this project is exposed to COM
24-
[assembly: Guid("cf0f98b6-e6c9-4bba-b61f-20e00260676f")]
24+
[assembly: Guid("eafd1523-f740-4fb2-b392-64f267333b33")]
2525

2626
// Version information for an assembly consists of the following four values:
2727
//
@@ -34,6 +34,6 @@
3434
// by using the '*' as shown below:
3535
// [assembly: AssemblyVersion("1.0.*")]
3636
[assembly: AssemblyVersion("1.0.0.0")]
37-
[assembly: AssemblyFileVersion("2.23164.0.1")]
37+
[assembly: AssemblyFileVersion("1.0.0.0")]
3838
[assembly: AssemblyCFEnvironment("CFVSW")]
3939
[assembly: AssemblyCFSdkVersion("2.23160.0.1")]

src/Testing.MSTest/CodeFactory.Automation.Testing.MSTest/CodeFactory.Automation.Testing.MSTest.csproj renamed to src/Automation/CodeFactory.Automation.NDF.Data.Sql.EF.Logic/CodeFactory.Automation.NDF.Data.Sql.EF.Logic.csproj

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
77
<ProductVersion>8.0.30703</ProductVersion>
88
<SchemaVersion>2.0</SchemaVersion>
9-
<ProjectGuid>{CBD945AF-3211-4F28-ADE5-8FAC6745DA31}</ProjectGuid>
9+
<ProjectGuid>{7C2FF0E1-7DD5-48EC-B5AC-B9FF7A531595}</ProjectGuid>
1010
<OutputType>Library</OutputType>
1111
<AppDesignerFolder>Properties</AppDesignerFolder>
12-
<RootNamespace>CodeFactory.Automation.Testing.MSTest</RootNamespace>
13-
<AssemblyName>CodeFactory.Automation.Testing.MSTest</AssemblyName>
12+
<RootNamespace>CodeFactory.Automation.NDF.Data.Sql.EF.Logic</RootNamespace>
13+
<AssemblyName>CodeFactory.Automation.NDF.Data.Sql.EF.Logic</AssemblyName>
1414
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
1515
<FileAlignment>512</FileAlignment>
1616
<StartAction>Program</StartAction>
@@ -48,17 +48,7 @@
4848
<Reference Include="WindowsBase" />
4949
</ItemGroup>
5050
<ItemGroup>
51-
<Compile Include="CreateAutomationConfiguration.cs" />
52-
<Compile Include="LoadConfigurations.cs" />
5351
<Compile Include="Properties\AssemblyInfo.cs" />
54-
<Compile Include="RefreshTest.cs" />
55-
<Compile Include="ReloadAutomationConfiguration.cs" />
56-
</ItemGroup>
57-
<ItemGroup>
58-
<ProjectReference Include="..\CodeFactory.Automation.Testing.MSTest.Logic\CodeFactory.Automation.Testing.MSTest.Logic.csproj">
59-
<Project>{abc7b845-db0e-460e-83aa-3b0d199d4063}</Project>
60-
<Name>CodeFactory.Automation.Testing.MSTest.Logic</Name>
61-
</ProjectReference>
6252
</ItemGroup>
6353
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
6454
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.

src/Standard/CodeFactory.Automation.Standard/Properties/AssemblyInfo.cs renamed to src/Automation/CodeFactory.Automation.NDF.Data.Sql.EF.Logic/Properties/AssemblyInfo.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
// General Information about an assembly is controlled through the following
77
// set of attributes. Change these attribute values to modify the information
88
// associated with an assembly.
9-
[assembly: AssemblyTitle("CodeFactory.Automation.Standard")]
9+
[assembly: AssemblyTitle("CodeFactory.Automation.NDF.Data.Sql.EF.Logic")]
1010
[assembly: AssemblyDescription("")]
1111
[assembly: AssemblyConfiguration("")]
1212
[assembly: AssemblyCompany("")]
13-
[assembly: AssemblyProduct("CodeFactory.Automation.Standard")]
13+
[assembly: AssemblyProduct("CodeFactory.Automation.NDF.Data.Sql.EF.Logic")]
1414
[assembly: AssemblyCopyright("Copyright © 2023")]
1515
[assembly: AssemblyTrademark("")]
1616
[assembly: AssemblyCulture("")]
@@ -21,7 +21,7 @@
2121
[assembly: ComVisible(false)]
2222

2323
// The following GUID is for the ID of the typelib if this project is exposed to COM
24-
[assembly: Guid("b3a2c1a3-3605-4e17-ba5b-1da7ed5d6ccc")]
24+
[assembly: Guid("7c2ff0e1-7dd5-48ec-b5ac-b9ff7a531595")]
2525

2626
// Version information for an assembly consists of the following four values:
2727
//
@@ -34,6 +34,6 @@
3434
// by using the '*' as shown below:
3535
// [assembly: AssemblyVersion("1.0.*")]
3636
[assembly: AssemblyVersion("1.0.0.0")]
37-
[assembly: AssemblyFileVersion("2.23164.0.1")]
37+
[assembly: AssemblyFileVersion("1.0.0.0")]
3838
[assembly: AssemblyCFEnvironment("CFVSW")]
3939
[assembly: AssemblyCFSdkVersion("2.23160.0.1")]
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
using CodeFactory.WinVs.Models.CSharp.Builder;
2+
using Microsoft.Extensions.Logging;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Text;
7+
using System.Threading.Tasks;
8+
9+
namespace CodeFactory.Automation.NDF.Logic.AspNetCore.Blazor
10+
{
11+
/// <summary>
12+
/// CodeBlock that builds a catch block for a standard Exception and returns a NDF managed exception.
13+
/// </summary>
14+
public class CatchBlockExceptionBlazorControllerMessage:BaseCatchBlock
15+
{
16+
/// <summary>
17+
/// Log level used for catch block log messages.
18+
/// </summary>
19+
private readonly LogLevel _logLevel;
20+
21+
/// <summary>
22+
/// Name of the method that will display the error message.
23+
/// </summary>
24+
private readonly string _showErrorMessageName;
25+
26+
27+
/// <summary>
28+
/// Creates a instances of the <see cref="CatchBlockExceptionNDF"/>
29+
/// </summary>
30+
/// <param name="loggerBlock">Optional, logger block to use for logging in the catch block.</param>
31+
/// <param name="logLevel">Optional, sets the level for log messages default is Error.</param>
32+
/// <param name="showErrorMethodName">Default name of the method to call from the controller when raising the message from a NDF managed exception, default is 'ShowErrorMessage'</param>
33+
public CatchBlockExceptionBlazorControllerMessage(ILoggerBlock loggerBlock = null,LogLevel logLevel = LogLevel.Error, string showErrorMethodName = null) : base(loggerBlock)
34+
{
35+
_showErrorMessageName = showErrorMethodName != null
36+
? showErrorMethodName
37+
: "ShowErrorMessage";
38+
}
39+
40+
/// <summary>Builds the catch block</summary>
41+
/// <param name="syntax">Syntax to be injected into the catch block, optional parameter.</param>
42+
/// <param name="multipleSyntax">Multiple syntax statements has been provided to be used by the catch block,optional parameter.</param>
43+
/// <param name="memberName">Optional parameter that determines the target member the catch block is implemented in.</param>
44+
/// <returns>Returns the generated catch block</returns>
45+
protected override string BuildCatchBlock(string syntax = null, IEnumerable<NamedSyntax> multipleSyntax = null, string memberName = null)
46+
{
47+
SourceFormatter formatter = new SourceFormatter();
48+
49+
formatter.AppendCodeLine(0,"catch (Exception unhandledException)");
50+
formatter.AppendCodeLine(0,"{");
51+
if (LoggerBlock != null)
52+
{
53+
formatter.AppendCodeLine(1, LoggerBlock.GenerateLogging(LogLevel.Error, "The following unhandled exception occurred, see exception details. Throwing a unhandled managed exception.",false,"unhandledException") );
54+
formatter.AppendCodeLine(1, LoggerBlock.GenerateExitLogging(_logLevel, memberName));
55+
}
56+
formatter.AppendCodeLine(1,"var unhandledError = new UnhandledException();");
57+
formatter.AppendCodeLine(1,$"{_showErrorMessageName}(unhandledError.Message);");
58+
formatter.AppendCodeLine(0,"}");
59+
60+
return formatter.ReturnSource();
61+
}
62+
}
63+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
using CodeFactory.WinVs.Models.CSharp.Builder;
2+
using Microsoft.Extensions.Logging;
3+
using System;
4+
using System.Collections.Generic;
5+
using System.Linq;
6+
using System.Text;
7+
using System.Threading.Tasks;
8+
9+
namespace CodeFactory.Automation.NDF.Logic.AspNetCore.Blazor
10+
{
11+
/// <summary>
12+
/// CodeBlock that builds a catch block for ManagedException and passes the exception through to the next caller in the chain.
13+
/// </summary>
14+
public class CatchBlockManagedExceptionBlazorControllerMessage:BaseCatchBlock
15+
{
16+
/// <summary>
17+
/// Log level used for catch block log messages.
18+
/// </summary>
19+
private readonly LogLevel _logLevel;
20+
21+
/// <summary>
22+
/// Name of the method that will display the error message.
23+
/// </summary>
24+
private readonly string _showErrorMessageName;
25+
26+
/// <summary>
27+
/// Creates a instances of the <see cref="CatchBlockManagedExceptionNDF"/>
28+
/// </summary>
29+
/// <param name="loggerBlock">Optional, logger block to use for logging in the catch block.</param>
30+
/// <param name="logLevel">Optional, sets the level for log messages default is Error.</param>
31+
/// <param name="showErrorMethodName">Default name of the method to call from the controller when raising the message from a NDF managed exception, default is 'ShowErrorMessage'</param>
32+
public CatchBlockManagedExceptionBlazorControllerMessage(ILoggerBlock loggerBlock = null,LogLevel logLevel = LogLevel.Error,string showErrorMethodName = null) : base(loggerBlock)
33+
{
34+
_logLevel = logLevel;
35+
36+
_showErrorMessageName = showErrorMethodName != null
37+
? showErrorMethodName
38+
: "ShowErrorMessage";
39+
}
40+
41+
/// <summary>Builds the catch block</summary>
42+
/// <param name="syntax">Syntax to be injected into the catch block, optional parameter.</param>
43+
/// <param name="multipleSyntax">Multiple syntax statements has been provided to be used by the catch block,optional parameter.</param>
44+
/// <param name="memberName">Optional parameter that determines the target member the catch block is implemented in.</param>
45+
/// <returns>Returns the generated catch block</returns>
46+
protected override string BuildCatchBlock(string syntax = null, IEnumerable<NamedSyntax> multipleSyntax = null, string memberName = null)
47+
{
48+
SourceFormatter formatter = new SourceFormatter();
49+
50+
formatter.AppendCodeLine(0,"catch (ManagedException managedException)");
51+
formatter.AppendCodeLine(0,"{");
52+
if (LoggerBlock != null)
53+
{
54+
formatter.AppendCodeLine(1, LoggerBlock.GenerateExitLogging(_logLevel));
55+
}
56+
formatter.AppendCodeLine(1,$"{_showErrorMessageName}(managedException.Message);");
57+
formatter.AppendCodeLine(0,"}");
58+
59+
return formatter.ReturnSource();
60+
}
61+
}
62+
}

src/Standard/NDF/CodeFactory.Automation.Standard.NDF.Logic/BoundsCheckBlockNullNDF.cs renamed to src/Automation/CodeFactory.Automation.NDF.Logic/BoundsCheckBlockNullNDFException.cs

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,23 @@
1-
//***************************************************************************
2-
//* Code Factory Packages
3-
//* Copyright (c) 2023 CodeFactory, LLC
4-
//***************************************************************************
5-
1+
using CodeFactory.WinVs.Models.CSharp.Builder;
2+
using CodeFactory.WinVs.Models.CSharp;
3+
using Microsoft.Extensions.Logging;
64
using System;
75
using System.Collections.Generic;
86
using System.Linq;
97
using System.Text;
108
using System.Threading.Tasks;
11-
using CodeFactory.WinVs.Models.CSharp;
12-
using CodeFactory.WinVs.Models.CSharp.Builder;
13-
using Microsoft.Extensions.Logging;
149

15-
namespace CodeFactory.Automation.Standard.NDF.Logic
10+
namespace CodeFactory.Automation.NDF.Logic
1611
{
1712
/// <summary>
1813
/// Null bounds check that support NDF logging and exceptions.
1914
/// </summary>
20-
public class BoundsCheckBlockNullNDF:BaseBoundsCheckBlock
15+
public class BoundsCheckBlockNullNDFException:BaseBoundsCheckBlock
2116
{
2217
/// <summary>Initializes the base class for the bounds check.</summary>
2318
/// <param name="ignoreWhenDefaultValueIsSet">Flag that determines if the bounds checking should be ignored if a default value is set.</param>
2419
/// <param name="loggerBlock">Logger block used with bounds check logic.</param>
25-
public BoundsCheckBlockNullNDF(bool ignoreWhenDefaultValueIsSet, ILoggerBlock loggerBlock) : base(nameof(BoundsCheckBlockNullNDF), ignoreWhenDefaultValueIsSet, loggerBlock)
20+
public BoundsCheckBlockNullNDFException(bool ignoreWhenDefaultValueIsSet, ILoggerBlock loggerBlock) : base(nameof(BoundsCheckBlockNullNDFException), ignoreWhenDefaultValueIsSet, loggerBlock)
2621
{
2722
//Intentionally blank
2823
}

0 commit comments

Comments
 (0)