diff --git a/.gitignore b/.gitignore
index 7c7ee90..6ba6148 100644
--- a/.gitignore
+++ b/.gitignore
@@ -22,7 +22,6 @@ x86/
bld/
[Bb]in/
[Oo]bj/
-[Ll]og/
# Visual Studio 2015/2017 cache/options directory
.vs/
diff --git a/.groovy b/.groovy
new file mode 100644
index 0000000..f2dfb90
--- /dev/null
+++ b/.groovy
@@ -0,0 +1,172 @@
+#!/usr/bin/env groovy
+/* groovylint-disable CompileStatic, ConsecutiveStringConcatenation, DuplicateNumberLiteral, DuplicateStringLiteral, LineLength, NestedBlockDepth, NoDef, VariableTypeRequired */
+import groovy.transform.Field
+
+@Field String _DDrive = 'D:/'
+@Field String _GitName = 'EC'
+@Field String _AssemblyName = '...'
+@Field String _TargetLocation = '...'
+@Field String _GitCommitSeven = '...'
+@Field String _TestProjectDirectory = 'Adaptation'
+@Field String _AgentStaging = 'mestsa07ec-ecmeseaf'
+@Field String _DDriveNet = "${_DDrive}Framework4.8"
+@Field String _AgentProduction = 'messa08ec-ecmeseaf'
+@Field String _AgentDevelopment = 'mestsa003-mesedasvc'
+@Field String _ProgramFilesDotnet = 'C:/Program Files/dotnet/dotnet.exe'
+@Field String _ProgramFilesMSBuild = 'C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/MSBuild/Current/Bin/MSBuild.exe'
+
+pipeline {
+ agent {
+ label env.JENKINS_ENVIRONMENT == 'Development' ? _AgentDevelopment : env.JENKINS_ENVIRONMENT == 'Staging' ? _AgentStaging : env.JENKINS_ENVIRONMENT == 'Production' ? _AgentProduction : 'Else'
+ }
+ parameters {
+ string(name: 'GIT_SERVER', defaultValue: env.JENKINS_ENVIRONMENT == 'Development' ? 'mestsa003.infineon.com' : 'mestsa07ec.ec.local', description: 'git server')
+ string(name: 'DEFAULT_FILE_SERVER', defaultValue: env.JENKINS_ENVIRONMENT == 'Development' ? 'messv02ecc1_ec_local' : 'messv02ecc1.ec.local', description: 'Default file server...')
+ }
+ stages {
+ stage('Git') {
+ steps {
+ bat(returnStatus: true, script: 'git init')
+ bat(returnStatus: true, script: 'git remote add origin \\\\' + params.GIT_SERVER + '\\Git\\' + _GitName + '.git')
+ bat(returnStatus: true, script: 'git pull origin master')
+ }
+ }
+ stage('Setup') {
+ steps {
+ script {
+ _AssemblyName = "${env.JOB_NAME}"
+ _GitCommitSeven = '1234567'
+ // _GitCommitSeven = env.GIT_COMMIT.substring(0, 7)
+ def files = findFiles(glob: '*.csproj')
+ if (files.length != 1) {
+ error("Build failed because couldn't find a *.csproj file")
+ }
+ echo """
+ ${files[0].name}
+ ${files[0].path}
+ ${files[0].directory}
+ ${files[0].length}
+ ${files[0].lastModified}
+ """
+ _AssemblyName = files[0].name.split('[.]csproj')[0]
+ _TargetLocation = "\\\\${params.DEFAULT_FILE_SERVER}\\EC_EAFRepository\\${env.JENKINS_ENVIRONMENT}\\DeploymentStorage\\Adaptation_${_AssemblyName}"
+ }
+ }
+ }
+ stage('Info') {
+ steps {
+ echo "_AssemblyName ${_AssemblyName}" // ...
+ echo "BUILD_NUMBER ${env.BUILD_NUMBER}" // 11
+ echo "DEFAULT_FILE_SERVER ${params.DEFAULT_FILE_SERVER}" // 11
+ echo "GIT_BRANCH ${env.GIT_BRANCH}" // origin/master
+ echo "GIT_COMMIT ${env.GIT_COMMIT}" // 73b814069f2cf0173a62a8228815a9bc9ba93c41
+ echo "GIT_SERVER ${params.GIT_SERVER}" // ...
+ echo "GIT_URL ${env.GIT_URL}" // D:\ProgramData\Git\....git
+ echo "JENKINS_ENVIRONMENT ${env.JENKINS_ENVIRONMENT}" // 11
+ echo "JENKINS_URL ${env.JENKINS_URL}" // http://localhost:8080/
+ echo "JOB_NAME ${env.JOB_NAME}" // ...
+ echo "WORKSPACE ${env.WORKSPACE}" // D:\.jenkins\_\...
+ }
+ }
+ // stage('Restore') {
+ // steps {
+ // bat(returnStatus: true, script: 'dotnet --info')
+ // }
+ // }
+ stage('Safe storage of app secrets') {
+ steps {
+ dir(_TestProjectDirectory) {
+ bat(returnStatus: true, script: '"' + _ProgramFilesDotnet + '" ' +
+ 'user-secrets init')
+ bat(returnStatus: true, script: '"' + _ProgramFilesDotnet + '" ' +
+ 'user-secrets set "BuildNumber" "' + env.BUILD_NUMBER + '"')
+ bat(returnStatus: true, script: '"' + _ProgramFilesDotnet + '" ' +
+ 'user-secrets set "GitCommitSeven" "' + _GitCommitSeven + '"')
+ bat(returnStatus: true, script: '"' + _ProgramFilesDotnet + '" ' +
+ 'user-secrets set "Server" "' + params.DEFAULT_FILE_SERVER + '"')
+ }
+ }
+ }
+ stage('Core Build') {
+ steps {
+ echo "Build number is ${currentBuild.number}"
+ dir(_TestProjectDirectory) {
+ bat(returnStatus: true, script: '"' + _ProgramFilesDotnet + '" ' +
+ 'build --runtime win-x64 --self-contained --verbosity quiet')
+ }
+ }
+ }
+ // stage('Test') {
+ // options {
+ // timeout(time: 10, unit: 'MINUTES')
+ // }
+ // steps {
+ // dir(_TestProjectDirectory) {
+ // bat('dotnet --info')
+ // }
+ // }
+ // }
+ stage('Framework Build') {
+ steps {
+ echo "Build number is ${currentBuild.number}"
+ bat(returnStatus: true, script: '"' + _ProgramFilesMSBuild + '" ' +
+ '/target:Restore ' +
+ '/detailedsummary ' +
+ '/consoleloggerparameters:PerformanceSummary;ErrorsOnly; ' +
+ '/property:Configuration=Debug;TargetFrameworkVersion=v4.8 ' +
+ _AssemblyName + '.csproj')
+ bat(returnStatus: true, script: '"' + _ProgramFilesMSBuild + '" ' +
+ '/target:Build ' +
+ '/detailedsummary ' +
+ '/consoleloggerparameters:PerformanceSummary;ErrorsOnly; ' +
+ '/property:Configuration=Debug;TargetFrameworkVersion=v4.8 ' +
+ _AssemblyName + '.csproj')
+ }
+ }
+ stage('Commit Id') {
+ steps {
+ dir('bin/Debug') {
+ writeFile file: "${_AssemblyName}.txt", text: "${env.GIT_COMMIT}-${env.BUILD_NUMBER}-${env.GIT_URL}"
+ }
+ }
+ }
+ stage('Package') {
+ steps {
+ fileOperations([fileZipOperation(folderPath: 'bin/Debug', outputFolderPath: "${_DDriveNet}/${_GitCommitSeven}-${env.BUILD_NUMBER}-${env.JOB_NAME}-Debug")])
+ fileOperations([fileCopyOperation(excludes: '', flattenFiles: true, includes: "${_AssemblyName}*", renameFiles: false, sourceCaptureExpression: '', targetLocation: "${_DDriveNet}/${_GitCommitSeven}-${env.BUILD_NUMBER}-${env.JOB_NAME}-Debug", targetNameExpression: '')])
+ }
+ }
+ // stage('Force Fail') {
+ // steps {
+ // error("Build failed because of this and that..")
+ // }
+ // }
+ stage('Copy Files to: file-share') {
+ steps {
+ dir('bin/Debug') {
+ fileOperations([fileCopyOperation(excludes: '', flattenFiles: true, includes: "${_AssemblyName}*.txt", renameFiles: false, sourceCaptureExpression: '', targetLocation: _TargetLocation, targetNameExpression: '')])
+ fileOperations([fileCopyOperation(excludes: '', flattenFiles: true, includes: "${_AssemblyName}*.dll", renameFiles: false, sourceCaptureExpression: '', targetLocation: _TargetLocation, targetNameExpression: '')])
+ fileOperations([fileCopyOperation(excludes: '', flattenFiles: true, includes: "${_AssemblyName}*.exe", renameFiles: false, sourceCaptureExpression: '', targetLocation: _TargetLocation, targetNameExpression: '')])
+ fileOperations([fileCopyOperation(excludes: '', flattenFiles: true, includes: "${_AssemblyName}*.pdb", renameFiles: false, sourceCaptureExpression: '', targetLocation: _TargetLocation, targetNameExpression: '')])
+ }
+ }
+ }
+ }
+ post {
+ always {
+ dir('bin') {
+ deleteDir()
+ }
+ dir('obj') {
+ deleteDir()
+ }
+ dir(_TestProjectDirectory + '/bin') {
+ deleteDir()
+ }
+ dir(_TestProjectDirectory + '/obj') {
+ deleteDir()
+ }
+ // cleanWs()
+ }
+ }
+}
diff --git a/Adaptation/.editorconfig b/Adaptation/.editorconfig
index a3ebdb2..2220133 100644
--- a/Adaptation/.editorconfig
+++ b/Adaptation/.editorconfig
@@ -1,137 +1,10 @@
-# Remove the line below if you want to inherit .editorconfig settings from higher directories
-root = true
-
-# C# files
[*.cs]
-
-#### Core EditorConfig Options ####
-
-# Indentation and spacing
-indent_size = 4
-indent_style = space
-tab_width = 4
-
-# New line preferences
-end_of_line = crlf
-insert_final_newline = false
-
-#### .NET Coding Conventions ####
-
-# Organize usings
-dotnet_separate_import_directive_groups = false
-dotnet_sort_system_directives_first = false
-file_header_template = unset
-
-# this. and Me. preferences
-dotnet_style_qualification_for_event = false:error
-dotnet_style_qualification_for_field = false
-dotnet_style_qualification_for_method = false:error
-dotnet_style_qualification_for_property = false:error
-
-# Language keywords vs BCL types preferences
-dotnet_style_predefined_type_for_locals_parameters_members = true
-dotnet_style_predefined_type_for_member_access = true
-
-# Parentheses preferences
-dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
-dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
-dotnet_style_parentheses_in_other_operators = never_if_unnecessary
-dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
-
-# Modifier preferences
-dotnet_style_require_accessibility_modifiers = for_non_interface_members
-
-# Expression-level preferences
-dotnet_style_coalesce_expression = true
-dotnet_style_collection_initializer = true:warning
-dotnet_style_explicit_tuple_names = true:warning
-dotnet_style_namespace_match_folder = true
-dotnet_style_null_propagation = true:warning
-dotnet_style_object_initializer = true:warning
-dotnet_style_operator_placement_when_wrapping = beginning_of_line
-dotnet_style_prefer_auto_properties = true:warning
-dotnet_style_prefer_compound_assignment = true:warning
-dotnet_style_prefer_conditional_expression_over_assignment = false
-dotnet_style_prefer_conditional_expression_over_return = false
-dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning
-dotnet_style_prefer_inferred_tuple_names = true:warning
-dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
-dotnet_style_prefer_simplified_boolean_expressions = true:warning
-dotnet_style_prefer_simplified_interpolation = true
-
-# Field preferences
-dotnet_style_readonly_field = true:warning
-
-# Parameter preferences
-dotnet_code_quality_unused_parameters = all
-
-# Suppression preferences
-dotnet_remove_unnecessary_suppression_exclusions = 0
-
-# New line preferences
-dotnet_style_allow_multiple_blank_lines_experimental = false:warning
-dotnet_style_allow_statement_immediately_after_block_experimental = true
-
-#### C# Coding Conventions ####
-
-# var preferences
-csharp_style_var_elsewhere = false:warning
-csharp_style_var_for_built_in_types = false:warning
-csharp_style_var_when_type_is_apparent = false:warning
-
-# Expression-bodied members
-csharp_style_expression_bodied_accessors = when_on_single_line:warning
-csharp_style_expression_bodied_constructors = when_on_single_line:warning
-csharp_style_expression_bodied_indexers = when_on_single_line:warning
-csharp_style_expression_bodied_lambdas = when_on_single_line:warning
-csharp_style_expression_bodied_local_functions = when_on_single_line:warning
-csharp_style_expression_bodied_methods = when_on_single_line:warning
-csharp_style_expression_bodied_operators = when_on_single_line:warning
-csharp_style_expression_bodied_properties = when_on_single_line:warning
-
-# Pattern matching preferences
-csharp_style_pattern_matching_over_as_with_null_check = true:warning
-csharp_style_pattern_matching_over_is_with_cast_check = true:warning
-csharp_style_prefer_not_pattern = true:warning
-csharp_style_prefer_pattern_matching = true:warning
-csharp_style_prefer_switch_expression = true:warning
-
-# Null-checking preferences
-csharp_style_conditional_delegate_call = true
-
-# Modifier preferences
-csharp_prefer_static_local_function = true:warning
-csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async
-
-# Code-block preferences
-csharp_prefer_braces = false
-csharp_prefer_simple_using_statement = true:warning
-csharp_style_namespace_declarations = file_scoped:warning
-
-# Expression-level preferences
-csharp_prefer_simple_default_expression = true:warning
-csharp_style_deconstructed_variable_declaration = false
-csharp_style_implicit_object_creation_when_type_is_apparent = true:warning
-csharp_style_inlined_variable_declaration = false
-csharp_style_pattern_local_over_anonymous_function = true:warning
-csharp_style_prefer_index_operator = false:warning
-csharp_style_prefer_null_check_over_type_check = true
-csharp_style_prefer_range_operator = false:warning
-csharp_style_throw_expression = true
-csharp_style_unused_value_assignment_preference = discard_variable:warning
-csharp_style_unused_value_expression_statement_preference = discard_variable:warning
-
-# 'using' directive preferences
-csharp_using_directive_placement = outside_namespace
-
-# New line preferences
-csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
-csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true
-csharp_style_allow_embedded_statements_on_same_line_experimental = true
-
-#### C# Formatting Rules ####
-
-# New line preferences
+csharp_indent_block_contents = true
+csharp_indent_braces = false
+csharp_indent_case_contents = true
+csharp_indent_case_contents_when_block = true
+csharp_indent_labels = one_less_than_current
+csharp_indent_switch_labels = true
csharp_new_line_before_catch = true
csharp_new_line_before_else = true
csharp_new_line_before_finally = true
@@ -139,16 +12,13 @@ csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_open_brace = all
csharp_new_line_between_query_expression_clauses = true
-
-# Indentation preferences
-csharp_indent_block_contents = true
-csharp_indent_braces = false
-csharp_indent_case_contents = true
-csharp_indent_case_contents_when_block = true
-csharp_indent_labels = one_less_than_current
-csharp_indent_switch_labels = true
-
-# Space preferences
+csharp_prefer_braces = false
+csharp_prefer_simple_default_expression = true:warning
+csharp_prefer_simple_using_statement = true:warning
+csharp_prefer_static_local_function = true:warning
+csharp_preferred_modifier_order = public,private,protected,internal,static,extern,new,virtual,abstract,sealed,override,readonly,unsafe,volatile,async
+csharp_preserve_single_line_blocks = true
+csharp_preserve_single_line_statements = false
csharp_space_after_cast = false
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_after_comma = true
@@ -171,166 +41,203 @@ csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_parentheses = false
csharp_space_between_square_brackets = false
-
-# Wrapping preferences
-csharp_preserve_single_line_blocks = true
-csharp_preserve_single_line_statements = false
-
-#### Naming styles ####
-
-# Naming rules
-
-dotnet_naming_rule.interface_should_be_begins_with_i.severity = warning
-dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
-dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
-
-dotnet_naming_rule.types_should_be_pascal_case.severity = warning
-dotnet_naming_rule.types_should_be_pascal_case.symbols = types
-dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
-
-dotnet_naming_rule.private_or_internal_field_should_be_private_of_internal_field.severity = warning
-dotnet_naming_rule.private_or_internal_field_should_be_private_of_internal_field.symbols = private_or_internal_field
-dotnet_naming_rule.private_or_internal_field_should_be_private_of_internal_field.style = private_of_internal_field
-
-dotnet_naming_rule.enum_should_be_pascal_case.severity = warning
-dotnet_naming_rule.enum_should_be_pascal_case.symbols = enum
-dotnet_naming_rule.enum_should_be_pascal_case.style = pascal_case
-
-dotnet_naming_rule.public_or_protected_field_should_be_private_of_internal_field.severity = warning
-dotnet_naming_rule.public_or_protected_field_should_be_private_of_internal_field.symbols = public_or_protected_field
-dotnet_naming_rule.public_or_protected_field_should_be_private_of_internal_field.style = private_of_internal_field
-
-dotnet_naming_rule.class_should_be_pascal_case.severity = warning
-dotnet_naming_rule.class_should_be_pascal_case.symbols = class
-dotnet_naming_rule.class_should_be_pascal_case.style = pascal_case
-
-dotnet_naming_rule.method_should_be_pascal_case.severity = warning
-dotnet_naming_rule.method_should_be_pascal_case.symbols = method
-dotnet_naming_rule.method_should_be_pascal_case.style = pascal_case
-
-dotnet_naming_rule.private_or_internal_static_field_should_be_private_of_internal_field.severity = warning
-dotnet_naming_rule.private_or_internal_static_field_should_be_private_of_internal_field.symbols = private_or_internal_static_field
-dotnet_naming_rule.private_or_internal_static_field_should_be_private_of_internal_field.style = private_of_internal_field
-
-dotnet_naming_rule.static_field_should_be_pascal_case.severity = warning
-dotnet_naming_rule.static_field_should_be_pascal_case.symbols = static_field
-dotnet_naming_rule.static_field_should_be_pascal_case.style = pascal_case
-
-dotnet_naming_rule.property_should_be_pascal_case.severity = warning
-dotnet_naming_rule.property_should_be_pascal_case.symbols = property
-dotnet_naming_rule.property_should_be_pascal_case.style = pascal_case
-
-dotnet_naming_rule.static_method_should_be_pascal_case.severity = warning
-dotnet_naming_rule.static_method_should_be_pascal_case.symbols = static_method
-dotnet_naming_rule.static_method_should_be_pascal_case.style = pascal_case
-
+csharp_style_allow_blank_line_after_colon_in_constructor_initializer_experimental = true
+csharp_style_allow_blank_lines_between_consecutive_braces_experimental = true
+csharp_style_allow_embedded_statements_on_same_line_experimental = true
+csharp_style_conditional_delegate_call = true
+csharp_style_deconstructed_variable_declaration = false
+csharp_style_expression_bodied_accessors = when_on_single_line:warning
+csharp_style_expression_bodied_constructors = when_on_single_line:warning
+csharp_style_expression_bodied_indexers = when_on_single_line:warning
+csharp_style_expression_bodied_lambdas = when_on_single_line:warning
+csharp_style_expression_bodied_local_functions = when_on_single_line:warning
+csharp_style_expression_bodied_methods = when_on_single_line:warning
+csharp_style_expression_bodied_operators = when_on_single_line:warning
+csharp_style_expression_bodied_properties = when_on_single_line:warning
+csharp_style_implicit_object_creation_when_type_is_apparent = true:warning
+csharp_style_inlined_variable_declaration = false
+csharp_style_namespace_declarations = file_scoped:warning
+csharp_style_pattern_local_over_anonymous_function = true:warning
+csharp_style_pattern_matching_over_as_with_null_check = true:warning
+csharp_style_pattern_matching_over_is_with_cast_check = true:warning
+csharp_style_prefer_index_operator = false:warning
+csharp_style_prefer_not_pattern = true:warning
+csharp_style_prefer_null_check_over_type_check = true
+csharp_style_prefer_pattern_matching = true:warning
+csharp_style_prefer_range_operator = false:warning
+csharp_style_prefer_switch_expression = true:warning
+csharp_style_throw_expression = true
+csharp_style_unused_value_assignment_preference = discard_variable:warning
+csharp_style_unused_value_expression_statement_preference = discard_variable:warning
+csharp_style_var_elsewhere = false:warning
+csharp_style_var_for_built_in_types = false:warning
+csharp_style_var_when_type_is_apparent = false:warning
+csharp_using_directive_placement = outside_namespace
+dotnet_code_quality_unused_parameters = all
+dotnet_code_quality_unused_parameters = non_public # IDE0060: Remove unused parameter
+dotnet_code_quality.CAXXXX.api_surface = private, internal
+dotnet_diagnostic.CA1825.severity = warning # CA1823: Avoid zero-length array allocations
+dotnet_diagnostic.CA1829.severity = warning # CA1829: Use Length/Count property instead of Count() when available
+dotnet_diagnostic.CA1834.severity = warning # CA1834: Consider using 'StringBuilder.Append(char)' when applicable
+dotnet_diagnostic.IDE0001.severity = warning # IDE0001: Simplify name
+dotnet_diagnostic.IDE0002.severity = warning # Simplify (member access) - System.Version.Equals("1", "2"); Version.Equals("1", "2");
+dotnet_diagnostic.IDE0005.severity = warning # Using directive is unnecessary
+dotnet_diagnostic.IDE0047.severity = warning # IDE0047: Parentheses can be removed
+dotnet_diagnostic.IDE0060.severity = warning # IDE0060: Remove unused parameter
dotnet_naming_rule.abstract_method_should_be_pascal_case.severity = warning
-dotnet_naming_rule.abstract_method_should_be_pascal_case.symbols = abstract_method
dotnet_naming_rule.abstract_method_should_be_pascal_case.style = pascal_case
-
-dotnet_naming_rule.private_method_should_be_pascal_case.severity = warning
-dotnet_naming_rule.private_method_should_be_pascal_case.symbols = private_method
-dotnet_naming_rule.private_method_should_be_pascal_case.style = pascal_case
-
-dotnet_naming_rule.event_should_be_pascal_case.severity = warning
-dotnet_naming_rule.event_should_be_pascal_case.symbols = event
-dotnet_naming_rule.event_should_be_pascal_case.style = pascal_case
-
+dotnet_naming_rule.abstract_method_should_be_pascal_case.symbols = abstract_method
+dotnet_naming_rule.class_should_be_pascal_case.severity = warning
+dotnet_naming_rule.class_should_be_pascal_case.style = pascal_case
+dotnet_naming_rule.class_should_be_pascal_case.symbols = class
dotnet_naming_rule.delegate_should_be_pascal_case.severity = warning
-dotnet_naming_rule.delegate_should_be_pascal_case.symbols = delegate
dotnet_naming_rule.delegate_should_be_pascal_case.style = pascal_case
-
-dotnet_naming_rule.struct_should_be_pascal_case.severity = warning
-dotnet_naming_rule.struct_should_be_pascal_case.symbols = struct
-dotnet_naming_rule.struct_should_be_pascal_case.style = pascal_case
-
+dotnet_naming_rule.delegate_should_be_pascal_case.symbols = delegate
+dotnet_naming_rule.enum_should_be_pascal_case.severity = warning
+dotnet_naming_rule.enum_should_be_pascal_case.style = pascal_case
+dotnet_naming_rule.enum_should_be_pascal_case.symbols = enum
+dotnet_naming_rule.event_should_be_pascal_case.severity = warning
+dotnet_naming_rule.event_should_be_pascal_case.style = pascal_case
+dotnet_naming_rule.event_should_be_pascal_case.symbols = event
+dotnet_naming_rule.interface_should_be_begins_with_i.severity = warning
+dotnet_naming_rule.interface_should_be_begins_with_i.style = begins_with_i
+dotnet_naming_rule.interface_should_be_begins_with_i.symbols = interface
+dotnet_naming_rule.method_should_be_pascal_case.severity = warning
+dotnet_naming_rule.method_should_be_pascal_case.style = pascal_case
+dotnet_naming_rule.method_should_be_pascal_case.symbols = method
dotnet_naming_rule.non_field_members_should_be_pascal_case.severity = warning
-dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
dotnet_naming_rule.non_field_members_should_be_pascal_case.style = pascal_case
-
-# Symbol specifications
-
-dotnet_naming_symbols.class.applicable_kinds = class
-dotnet_naming_symbols.class.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.class.required_modifiers =
-
-dotnet_naming_symbols.interface.applicable_kinds = interface
-dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.interface.required_modifiers =
-
-dotnet_naming_symbols.struct.applicable_kinds = struct
-dotnet_naming_symbols.struct.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.struct.required_modifiers =
-
-dotnet_naming_symbols.enum.applicable_kinds = enum
-dotnet_naming_symbols.enum.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.enum.required_modifiers =
-
-dotnet_naming_symbols.delegate.applicable_kinds = delegate
-dotnet_naming_symbols.delegate.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.delegate.required_modifiers =
-
-dotnet_naming_symbols.event.applicable_kinds = event
-dotnet_naming_symbols.event.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.event.required_modifiers =
-
-dotnet_naming_symbols.method.applicable_kinds = method
-dotnet_naming_symbols.method.applicable_accessibilities = public
-dotnet_naming_symbols.method.required_modifiers =
-
-dotnet_naming_symbols.private_method.applicable_kinds = method
-dotnet_naming_symbols.private_method.applicable_accessibilities = private
-dotnet_naming_symbols.private_method.required_modifiers =
-
-dotnet_naming_symbols.abstract_method.applicable_kinds = method
-dotnet_naming_symbols.abstract_method.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.abstract_method.required_modifiers = abstract
-
-dotnet_naming_symbols.static_method.applicable_kinds = method
-dotnet_naming_symbols.static_method.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.static_method.required_modifiers = static
-
-dotnet_naming_symbols.property.applicable_kinds = property
-dotnet_naming_symbols.property.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.property.required_modifiers =
-
-dotnet_naming_symbols.public_or_protected_field.applicable_kinds = field
-dotnet_naming_symbols.public_or_protected_field.applicable_accessibilities = public, protected
-dotnet_naming_symbols.public_or_protected_field.required_modifiers =
-
-dotnet_naming_symbols.static_field.applicable_kinds = field
-dotnet_naming_symbols.static_field.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.static_field.required_modifiers = static
-
-dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field
-dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected
-dotnet_naming_symbols.private_or_internal_field.required_modifiers =
-
-dotnet_naming_symbols.private_or_internal_static_field.applicable_kinds = field
-dotnet_naming_symbols.private_or_internal_static_field.applicable_accessibilities = internal, private, private_protected
-dotnet_naming_symbols.private_or_internal_static_field.required_modifiers = static
-
-dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
-dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.types.required_modifiers =
-
-dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
-dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
-dotnet_naming_symbols.non_field_members.required_modifiers =
-
-# Naming styles
-
-dotnet_naming_style.pascal_case.required_prefix =
-dotnet_naming_style.pascal_case.required_suffix =
-dotnet_naming_style.pascal_case.word_separator =
-dotnet_naming_style.pascal_case.capitalization = pascal_case
-
+dotnet_naming_rule.non_field_members_should_be_pascal_case.symbols = non_field_members
+dotnet_naming_rule.private_method_should_be_pascal_case.severity = warning
+dotnet_naming_rule.private_method_should_be_pascal_case.style = pascal_case
+dotnet_naming_rule.private_method_should_be_pascal_case.symbols = private_method
+dotnet_naming_rule.private_or_internal_field_should_be_private_of_internal_field.severity = warning
+dotnet_naming_rule.private_or_internal_field_should_be_private_of_internal_field.style = private_of_internal_field
+dotnet_naming_rule.private_or_internal_field_should_be_private_of_internal_field.symbols = private_or_internal_field
+dotnet_naming_rule.private_or_internal_static_field_should_be_private_of_internal_field.severity = warning
+dotnet_naming_rule.private_or_internal_static_field_should_be_private_of_internal_field.style = private_of_internal_field
+dotnet_naming_rule.private_or_internal_static_field_should_be_private_of_internal_field.symbols = private_or_internal_static_field
+dotnet_naming_rule.property_should_be_pascal_case.severity = warning
+dotnet_naming_rule.property_should_be_pascal_case.style = pascal_case
+dotnet_naming_rule.property_should_be_pascal_case.symbols = property
+dotnet_naming_rule.public_or_protected_field_should_be_private_of_internal_field.severity = warning
+dotnet_naming_rule.public_or_protected_field_should_be_private_of_internal_field.style = private_of_internal_field
+dotnet_naming_rule.public_or_protected_field_should_be_private_of_internal_field.symbols = public_or_protected_field
+dotnet_naming_rule.static_field_should_be_pascal_case.severity = warning
+dotnet_naming_rule.static_field_should_be_pascal_case.style = pascal_case
+dotnet_naming_rule.static_field_should_be_pascal_case.symbols = static_field
+dotnet_naming_rule.static_method_should_be_pascal_case.severity = warning
+dotnet_naming_rule.static_method_should_be_pascal_case.style = pascal_case
+dotnet_naming_rule.static_method_should_be_pascal_case.symbols = static_method
+dotnet_naming_rule.struct_should_be_pascal_case.severity = warning
+dotnet_naming_rule.struct_should_be_pascal_case.style = pascal_case
+dotnet_naming_rule.struct_should_be_pascal_case.symbols = struct
+dotnet_naming_rule.types_should_be_pascal_case.severity = warning
+dotnet_naming_rule.types_should_be_pascal_case.style = pascal_case
+dotnet_naming_rule.types_should_be_pascal_case.symbols = types
+dotnet_naming_style.begins_with_i.capitalization = pascal_case
dotnet_naming_style.begins_with_i.required_prefix = I
dotnet_naming_style.begins_with_i.required_suffix =
dotnet_naming_style.begins_with_i.word_separator =
-dotnet_naming_style.begins_with_i.capitalization = pascal_case
-
+dotnet_naming_style.pascal_case.capitalization = pascal_case
+dotnet_naming_style.pascal_case.required_prefix =
+dotnet_naming_style.pascal_case.required_suffix =
+dotnet_naming_style.pascal_case.word_separator =
+dotnet_naming_style.private_of_internal_field.capitalization = pascal_case
dotnet_naming_style.private_of_internal_field.required_prefix = _
dotnet_naming_style.private_of_internal_field.required_suffix =
dotnet_naming_style.private_of_internal_field.word_separator =
-dotnet_naming_style.private_of_internal_field.capitalization = pascal_case
+dotnet_naming_symbols.abstract_method.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.abstract_method.applicable_kinds = method
+dotnet_naming_symbols.abstract_method.required_modifiers = abstract
+dotnet_naming_symbols.class.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.class.applicable_kinds = class
+dotnet_naming_symbols.class.required_modifiers =
+dotnet_naming_symbols.delegate.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.delegate.applicable_kinds = delegate
+dotnet_naming_symbols.delegate.required_modifiers =
+dotnet_naming_symbols.enum.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.enum.applicable_kinds = enum
+dotnet_naming_symbols.enum.required_modifiers =
+dotnet_naming_symbols.event.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.event.applicable_kinds = event
+dotnet_naming_symbols.event.required_modifiers =
+dotnet_naming_symbols.interface.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.interface.applicable_kinds = interface
+dotnet_naming_symbols.interface.required_modifiers =
+dotnet_naming_symbols.method.applicable_accessibilities = public
+dotnet_naming_symbols.method.applicable_kinds = method
+dotnet_naming_symbols.method.required_modifiers =
+dotnet_naming_symbols.non_field_members.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.non_field_members.applicable_kinds = property, event, method
+dotnet_naming_symbols.non_field_members.required_modifiers =
+dotnet_naming_symbols.private_method.applicable_accessibilities = private
+dotnet_naming_symbols.private_method.applicable_kinds = method
+dotnet_naming_symbols.private_method.required_modifiers =
+dotnet_naming_symbols.private_or_internal_field.applicable_accessibilities = internal, private, private_protected
+dotnet_naming_symbols.private_or_internal_field.applicable_kinds = field
+dotnet_naming_symbols.private_or_internal_field.required_modifiers =
+dotnet_naming_symbols.private_or_internal_static_field.applicable_accessibilities = internal, private, private_protected
+dotnet_naming_symbols.private_or_internal_static_field.applicable_kinds = field
+dotnet_naming_symbols.private_or_internal_static_field.required_modifiers = static
+dotnet_naming_symbols.property.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.property.applicable_kinds = property
+dotnet_naming_symbols.property.required_modifiers =
+dotnet_naming_symbols.public_or_protected_field.applicable_accessibilities = public, protected
+dotnet_naming_symbols.public_or_protected_field.applicable_kinds = field
+dotnet_naming_symbols.public_or_protected_field.required_modifiers =
+dotnet_naming_symbols.static_field.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.static_field.applicable_kinds = field
+dotnet_naming_symbols.static_field.required_modifiers = static
+dotnet_naming_symbols.static_method.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.static_method.applicable_kinds = method
+dotnet_naming_symbols.static_method.required_modifiers = static
+dotnet_naming_symbols.struct.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.struct.applicable_kinds = struct
+dotnet_naming_symbols.struct.required_modifiers =
+dotnet_naming_symbols.types.applicable_accessibilities = public, internal, private, protected, protected_internal, private_protected
+dotnet_naming_symbols.types.applicable_kinds = class, struct, interface, enum
+dotnet_naming_symbols.types.required_modifiers =
+dotnet_remove_unnecessary_suppression_exclusions = 0
+dotnet_separate_import_directive_groups = false
+dotnet_sort_system_directives_first = false
+dotnet_style_allow_multiple_blank_lines_experimental = false:warning
+dotnet_style_allow_statement_immediately_after_block_experimental = true
+dotnet_style_coalesce_expression = true
+dotnet_style_collection_initializer = true:warning
+dotnet_style_explicit_tuple_names = true:warning
+dotnet_style_namespace_match_folder = true
+dotnet_style_null_propagation = true:warning
+dotnet_style_object_initializer = true:warning
+dotnet_style_operator_placement_when_wrapping = beginning_of_line
+dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity
+dotnet_style_parentheses_in_other_binary_operators = always_for_clarity
+dotnet_style_parentheses_in_other_operators = never_if_unnecessary
+dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity
+dotnet_style_predefined_type_for_locals_parameters_members = true
+dotnet_style_predefined_type_for_member_access = true
+dotnet_style_prefer_auto_properties = true:warning
+dotnet_style_prefer_compound_assignment = true:warning
+dotnet_style_prefer_conditional_expression_over_assignment = false
+dotnet_style_prefer_conditional_expression_over_return = false
+dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning
+dotnet_style_prefer_inferred_tuple_names = true:warning
+dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning
+dotnet_style_prefer_simplified_boolean_expressions = true:warning
+dotnet_style_prefer_simplified_interpolation = true
+dotnet_style_qualification_for_event = false:error
+dotnet_style_qualification_for_field = false
+dotnet_style_qualification_for_method = false:error
+dotnet_style_qualification_for_property = false:error
+dotnet_style_readonly_field = true:warning
+dotnet_style_require_accessibility_modifiers = for_non_interface_members
+end_of_line = crlf
+file_header_template = unset
+indent_size = 4
+indent_style = space
+insert_final_newline = false
+root = true
+tab_width = 4
+# https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/quality-rules/ca1822
+# https://github.com/dotnet/aspnetcore/blob/main/.editorconfig
+# https://github.com/dotnet/project-system/blob/main/.editorconfig
\ No newline at end of file
diff --git a/Adaptation/.vscode/format-report.json b/Adaptation/.vscode/format-report.json
index 9ae900b..5632c60 100644
--- a/Adaptation/.vscode/format-report.json
+++ b/Adaptation/.vscode/format-report.json
@@ -2,954 +2,18 @@
{
"DocumentId": {
"ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
+ "Id": "42d7f187-9268-4dad-a1cf-c225ec4ce98c"
},
- "Id": "d9f60266-24bb-47b9-b90b-505448626929"
- },
- "FileName": "FileRead.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\FileHandlers\\MapEafDrives\\FileRead.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "WHITESPACE",
- "FormatDescription": "Fix whitespace formatting."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "de53d871-2af5-4e72-a249-4706287d2495"
- },
- "FileName": "Description.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Duplicator\\Description.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "WHITESPACE",
- "FormatDescription": "Fix whitespace formatting."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "de538843-3afc-4f93-8d4b-a7336d8c0663"
- },
- "FileName": "FileRead.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\FileRead.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "WHITESPACE",
- "FormatDescription": "Fix whitespace formatting."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "3117d767-6c30-478c-bf1d-cbb545918be9"
- },
- "FileName": "Logistics.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Logistics.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "WHITESPACE",
- "FormatDescription": "Fix whitespace formatting."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "9901695b-af4f-43cf-aa10-ce95320d6ee4"
- },
- "FileName": "Logistics2.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Logistics2.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "WHITESPACE",
- "FormatDescription": "Fix whitespace formatting."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "95b11142-f663-40fa-847c-33edfd59bd3e"
- },
- "FileName": "IDrive.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Methods\\IDrive.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "WHITESPACE",
- "FormatDescription": "Fix whitespace formatting."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "d2139ba2-0b1c-4874-872c-c3a577261b71"
- },
- "FileName": "IProcessData.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Methods\\IProcessData.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "WHITESPACE",
- "FormatDescription": "Fix whitespace formatting."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "2301c874-bc87-4c16-92b1-77fac0472818"
- },
- "FileName": "IFileRead.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Properties\\IFileRead.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "WHITESPACE",
- "FormatDescription": "Fix whitespace formatting."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "e52d0c25-4154-4afe-8bba-22def5765f09"
- },
- "FileName": "IProcessData.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Properties\\IProcessData.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "WHITESPACE",
- "FormatDescription": "Fix whitespace formatting."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "60578405-c12c-40bb-9155-35fb6b6bb7e9"
+ "Id": "5fcb5135-ab8a-43c8-a4c7-a4453478f816"
},
"FileName": "RijndaelEncryption.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\RijndaelEncryption.cs",
+ "FilePath": "T:\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\RijndaelEncryption.cs",
"FileChanges": [
{
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "WHITESPACE",
- "FormatDescription": "Fix whitespace formatting."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "09a03f4f-43c5-4e44-ab07-7e36f92295bf"
- },
- "FileName": "Backbone.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Eaf\\Core\\Backbone.cs",
- "FileChanges": [
- {
- "LineNumber": 48,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "7d964d7e-b115-4ca4-b114-12bee52e0643"
- },
- "FileName": "EmailMessage.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Eaf\\Core\\Smtp\\EmailMessage.cs",
- "FileChanges": [
- {
- "LineNumber": 24,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "3a200b51-0c41-4a2d-bccb-2fa8796bb3c5"
- },
- "FileName": "ISmtp.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Eaf\\Core\\Smtp\\ISmtp.cs",
- "FileChanges": [
- {
- "LineNumber": 9,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "66de3251-be58-4b16-90c1-33c03dd09031"
- },
- "FileName": "MailPriority.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Eaf\\Core\\Smtp\\MailPriority.cs",
- "FileChanges": [
- {
- "LineNumber": 11,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "10443daf-832a-4106-be1e-3fa7c6a04276"
- },
- "FileName": "ParameterValue.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Eaf\\EquipmentCore\\DataCollection\\Reporting\\ParameterValue.cs",
- "FileChanges": [
- {
- "LineNumber": 20,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "c3508e46-1b52-4c6a-872e-f28d031db8e2"
- },
- "FileName": "EquipmentParameter.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Eaf\\EquipmentCore\\SelfDescription\\ElementDescription\\EquipmentParameter.cs",
- "FileChanges": [
- {
- "LineNumber": 24,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "92146d96-c33e-47e6-8638-caf4eca88475"
- },
- "FileName": "Field.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Eaf\\EquipmentCore\\SelfDescription\\ParameterTypes\\Field.cs",
- "FileChanges": [
- {
- "LineNumber": 12,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "50cb7671-7ac7-49c7-87ea-2a426e0b78ca"
- },
- "FileName": "ParameterTypeDefinition.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Eaf\\EquipmentCore\\SelfDescription\\ParameterTypes\\ParameterTypeDefinition.cs",
- "FileChanges": [
- {
- "LineNumber": 12,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "56927a86-2a2e-45a7-abff-e90398fe70ff"
- },
- "FileName": "StructuredType.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Eaf\\EquipmentCore\\SelfDescription\\ParameterTypes\\StructuredType.cs",
- "FileChanges": [
- {
- "LineNumber": 12,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "e21e86a2-fc06-4ead-8a75-5bb18fa58d5f"
- },
- "FileName": "CellInstanceConnectionName.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\FileHandlers\\CellInstanceConnectionName.cs",
- "FileChanges": [
- {
- "LineNumber": 29,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "d9f60266-24bb-47b9-b90b-505448626929"
- },
- "FileName": "FileRead.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\FileHandlers\\MapEafDrives\\FileRead.cs",
- "FileChanges": [
- {
- "LineNumber": 144,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "6ee264c9-fd4e-404d-a587-044a5a2a6dc0"
- },
- "FileName": "FileRead.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\FileHandlers\\RijndaelEncryption\\FileRead.cs",
- "FileChanges": [
- {
- "LineNumber": 149,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "1cc13acb-fed0-4082-a6d4-78a70ad10de8"
- },
- "FileName": "FileConnectorParameterTypeDefinitionProvider.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Ifx\\Eaf\\EquipmentConnector\\File\\SelfDescription\\FileConnectorParameterTypeDefinitionProvider.cs",
- "FileChanges": [
- {
- "LineNumber": 14,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "00770792-9f9b-427f-b0f5-f169e00f734e"
- },
- "FileName": "AppSettings.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\AppSettings.cs",
- "FileChanges": [
- {
- "LineNumber": 8,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "3e5b157e-bdf5-4478-9380-5b8bbde33474"
- },
- "FileName": "Drive.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Drive.cs",
- "FileChanges": [
- {
- "LineNumber": 79,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "de53d871-2af5-4e72-a249-4706287d2495"
- },
- "FileName": "Description.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Duplicator\\Description.cs",
- "FileChanges": [
- {
- "LineNumber": 148,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "de538843-3afc-4f93-8d4b-a7336d8c0663"
- },
- "FileName": "FileRead.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\FileRead.cs",
- "FileChanges": [
- {
- "LineNumber": 832,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "11c599c1-e39a-4d7e-bf69-6602107aa43f"
- },
- "FileName": "IsEnvironment.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\IsEnvironment.cs",
- "FileChanges": [
- {
- "LineNumber": 153,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "3117d767-6c30-478c-bf1d-cbb545918be9"
- },
- "FileName": "Logistics.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Logistics.cs",
- "FileChanges": [
- {
- "LineNumber": 223,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "9901695b-af4f-43cf-aa10-ce95320d6ee4"
- },
- "FileName": "Logistics2.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Logistics2.cs",
- "FileChanges": [
- {
- "LineNumber": 81,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "aa929740-8282-4f53-a017-9f4fd0bc52de"
- },
- "FileName": "IAppSettings.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Methods\\IAppSettings.cs",
- "FileChanges": [
- {
- "LineNumber": 7,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "daa0c510-3814-4d60-a2f7-ddcbdac284f7"
- },
- "FileName": "IDescription.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Methods\\IDescription.cs",
- "FileChanges": [
- {
- "LineNumber": 25,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "95b11142-f663-40fa-847c-33edfd59bd3e"
- },
- "FileName": "IDrive.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Methods\\IDrive.cs",
- "FileChanges": [
- {
- "LineNumber": 13,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "082bf78f-326d-4598-9624-de7b8c41589e"
- },
- "FileName": "IFileRead.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Methods\\IFileRead.cs",
- "FileChanges": [
- {
- "LineNumber": 26,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "c31d006f-a0ea-4d2b-9e35-c6c3a87d8707"
- },
- "FileName": "ILogistics.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Methods\\ILogistics.cs",
- "FileChanges": [
- {
- "LineNumber": 8,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "a04628a6-fd18-47e5-9eb7-9b05bdd61fad"
- },
- "FileName": "ILogistics2.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Methods\\ILogistics2.cs",
- "FileChanges": [
- {
- "LineNumber": 8,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "d2139ba2-0b1c-4874-872c-c3a577261b71"
- },
- "FileName": "IProcessData.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Methods\\IProcessData.cs",
- "FileChanges": [
- {
- "LineNumber": 17,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "aa4a15be-be39-4035-94c5-b6ed92316c24"
- },
- "FileName": "ISMTP.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Methods\\ISMTP.cs",
- "FileChanges": [
- {
- "LineNumber": 9,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "f995a138-de8c-4110-be73-e415454cb9b8"
- },
- "FileName": "ParameterType.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\ParameterType.cs",
- "FileChanges": [
- {
- "LineNumber": 13,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "1e670147-df4e-4f24-98f4-576d4a408290"
- },
- "FileName": "ProcessDataStandardFormat.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\ProcessDataStandardFormat.cs",
- "FileChanges": [
- {
- "LineNumber": 426,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "b970c7f4-17ff-403e-908f-316e5ee1bb98"
- },
- "FileName": "IAppSettings.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Properties\\IAppSettings.cs",
- "FileChanges": [
- {
- "LineNumber": 9,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "c84aae6c-a6ea-43d2-948e-5b5bf93286fb"
- },
- "FileName": "IDescription.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Properties\\IDescription.cs",
- "FileChanges": [
- {
- "LineNumber": 13,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "bf19c0ca-5466-4f95-accc-256e2aaad068"
- },
- "FileName": "IDrive.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Properties\\IDrive.cs",
- "FileChanges": [
- {
- "LineNumber": 12,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "2301c874-bc87-4c16-92b1-77fac0472818"
- },
- "FileName": "IFileRead.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Properties\\IFileRead.cs",
- "FileChanges": [
- {
- "LineNumber": 20,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "252dfa2d-fcdc-4d7f-96f2-57bd3e8f1756"
- },
- "FileName": "ILogistics.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Properties\\ILogistics.cs",
- "FileChanges": [
- {
- "LineNumber": 25,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "1a39af2c-fdf3-44e3-b174-0eaa16ca826d"
- },
- "FileName": "ILogistics2.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Properties\\ILogistics2.cs",
- "FileChanges": [
- {
- "LineNumber": 17,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "e52d0c25-4154-4afe-8bba-22def5765f09"
- },
- "FileName": "IProcessData.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Properties\\IProcessData.cs",
- "FileChanges": [
- {
- "LineNumber": 13,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "60da3853-999e-4ebf-a4f5-ed0ea26551a6"
- },
- "FileName": "IScopeInfo.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Properties\\IScopeInfo.cs",
- "FileChanges": [
- {
- "LineNumber": 20,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "60578405-c12c-40bb-9155-35fb6b6bb7e9"
- },
- "FileName": "RijndaelEncryption.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\RijndaelEncryption.cs",
- "FileChanges": [
- {
- "LineNumber": 96,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "0d60a51d-8dcc-4653-bc2f-f69e8809e824"
- },
- "FileName": "Test.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Test.cs",
- "FileChanges": [
- {
- "LineNumber": 57,
- "CharNumber": 2,
- "DiagnosticId": "FINALNEWLINE",
- "FormatDescription": "Fix final newline. Delete 2 characters."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "3e5b157e-bdf5-4478-9380-5b8bbde33474"
- },
- "FileName": "Drive.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Drive.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "IMPORTS",
- "FormatDescription": "Fix imports ordering."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "3117d767-6c30-478c-bf1d-cbb545918be9"
- },
- "FileName": "Logistics.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Logistics.cs",
- "FileChanges": [
- {
- "LineNumber": 1,
- "CharNumber": 1,
- "DiagnosticId": "IMPORTS",
- "FormatDescription": "Fix imports ordering."
- }
- ]
- },
- {
- "DocumentId": {
- "ProjectId": {
- "Id": "e377a3ee-8088-4e2c-9e03-2f86769f945f"
- },
- "Id": "3117d767-6c30-478c-bf1d-cbb545918be9"
- },
- "FileName": "Logistics.cs",
- "FilePath": "L:\\Workspaces\\33_CS29_79_72\\MIT_EAF_Adaptations\\Trunk\\MET08AFMD3100\\06_SourceCode\\EC\\Adaptation\\Shared\\Logistics.cs",
- "FileChanges": [
- {
- "LineNumber": 186,
- "CharNumber": 31,
- "DiagnosticId": "IDE0003",
- "FormatDescription": "error IDE0003: Name can be simplified."
+ "LineNumber": 16,
+ "CharNumber": 27,
+ "DiagnosticId": "IDE1006",
+ "FormatDescription": "warning IDE1006: Naming rule violation: Missing prefix: \u0027_\u0027"
}
]
}
diff --git a/Adaptation/.vscode/settings.json b/Adaptation/.vscode/settings.json
new file mode 100644
index 0000000..7619243
--- /dev/null
+++ b/Adaptation/.vscode/settings.json
@@ -0,0 +1,23 @@
+{
+ "workbench.colorCustomizations": {
+ "activityBar.activeBackground": "#d791c9",
+ "activityBar.activeBorder": "#e8eed0",
+ "activityBar.background": "#d791c9",
+ "activityBar.foreground": "#15202b",
+ "activityBar.inactiveForeground": "#15202b99",
+ "activityBarBadge.background": "#e8eed0",
+ "activityBarBadge.foreground": "#15202b",
+ "sash.hoverBorder": "#d791c9",
+ "statusBar.background": "#ca6bb7",
+ "statusBar.foreground": "#15202b",
+ "statusBarItem.hoverBackground": "#bd45a5",
+ "statusBarItem.remoteBackground": "#ca6bb7",
+ "statusBarItem.remoteForeground": "#15202b",
+ "titleBar.activeBackground": "#ca6bb7",
+ "titleBar.activeForeground": "#15202b",
+ "titleBar.inactiveBackground": "#ca6bb799",
+ "titleBar.inactiveForeground": "#15202b99"
+ },
+ "peacock.color": "#ca6bb7",
+ "cSpell.enabled": false
+}
\ No newline at end of file
diff --git a/Adaptation/EC.csproj b/Adaptation/EC.Tests.csproj
similarity index 63%
rename from Adaptation/EC.csproj
rename to Adaptation/EC.Tests.csproj
index f50f217..b99615f 100644
--- a/Adaptation/EC.csproj
+++ b/Adaptation/EC.Tests.csproj
@@ -6,12 +6,16 @@
SAK
- net6.0
+ disable
false
+ 10.0
+ disable
+ win-x64
+ net6.0
trx
- ../../../Trunk/EC/05_TestResults/TestResults
+ ../../../../EC/05_TestResults/TestResults
true
@@ -28,70 +32,58 @@
Linux
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
- NU1701
-
-
- NU1701
-
-
- NU1701
-
-
- NU1701
-
-
- NU1701
-
+
+
-
- NU1701
+
+
+
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
-
- NU1701
-
-
- NU1701
-
-
- NU1701
-
-
- NU1701
-
-
- NU1701
-
-
- NU1701
-
-
- NU1701
-
-
+
+
+
+
+
+
+
+ NU1701
+ NU1701
+ NU1701
+
+
+ NU1701
+ NU1701
+ NU1701
+ NU1701
+ NU1701
+ NU1701
+ NU1701
+ NU1701
+
Always
diff --git a/Adaptation/Eaf/Core/AutoGenerated/BackboneComponent.cs b/Adaptation/Eaf/Core/AutoGenerated/BackboneComponent.cs
index 4b83dcf..06ec233 100644
--- a/Adaptation/Eaf/Core/AutoGenerated/BackboneComponent.cs
+++ b/Adaptation/Eaf/Core/AutoGenerated/BackboneComponent.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.Core
+namespace Adaptation.Eaf.Core;
+
+public class BackboneComponent
{
- public class BackboneComponent
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Core/AutoGenerated/BackboneStatusCache.cs b/Adaptation/Eaf/Core/AutoGenerated/BackboneStatusCache.cs
index 5da2cda..69d3b7a 100644
--- a/Adaptation/Eaf/Core/AutoGenerated/BackboneStatusCache.cs
+++ b/Adaptation/Eaf/Core/AutoGenerated/BackboneStatusCache.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.Core
+namespace Adaptation.Eaf.Core;
+
+public class BackboneStatusCache
{
- public class BackboneStatusCache
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Core/AutoGenerated/ILoggingSetupManager.cs b/Adaptation/Eaf/Core/AutoGenerated/ILoggingSetupManager.cs
index ba939e7..62e12d8 100644
--- a/Adaptation/Eaf/Core/AutoGenerated/ILoggingSetupManager.cs
+++ b/Adaptation/Eaf/Core/AutoGenerated/ILoggingSetupManager.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.Core
+namespace Adaptation.Eaf.Core;
+
+public interface ILoggingSetupManager
{
- public interface ILoggingSetupManager
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Core/AutoGenerated/StatusItem.cs b/Adaptation/Eaf/Core/AutoGenerated/StatusItem.cs
index 4dc8f3b..f981297 100644
--- a/Adaptation/Eaf/Core/AutoGenerated/StatusItem.cs
+++ b/Adaptation/Eaf/Core/AutoGenerated/StatusItem.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.Core
+namespace Adaptation.Eaf.Core;
+
+public class StatusItem
{
- public class StatusItem
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Core/Backbone.cs b/Adaptation/Eaf/Core/Backbone.cs
index d4b6f03..f39f081 100644
--- a/Adaptation/Eaf/Core/Backbone.cs
+++ b/Adaptation/Eaf/Core/Backbone.cs
@@ -2,47 +2,52 @@
using System;
using System.Collections.Generic;
-namespace Adaptation.Eaf.Core
+namespace Adaptation.Eaf.Core;
+
+public class Backbone
{
- public class Backbone
- {
- public const string STATE_ERROR = "Error";
- public const string STATE_OFFLINE = "Offline";
- public const string STATE_RUNNING = "Running";
- public const string STATE_SHUTDOWN = "Shutting Down";
- public const string STATE_STARTING = "Starting";
- protected Backbone() { }
+#pragma warning disable CA1822
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
- [NotNull]
- public static Backbone Instance { get; }
- [NotNull]
- public ILoggingSetupManager LoggingConfigurationManager { get; set; }
- public BackboneStatusCache Status { get; }
- public bool IsAutomatedRestartActive { get; }
- public bool IsReadyForRestart { get; }
- public string StartTime { get; }
- public string State { get; }
- public string Name { get; }
- public string ConfigurationServiceAddress { get; }
- public string CellName { get; }
- protected bool IsInitialized { get; set; }
- protected Dictionary BackboneComponents { get; }
+ public const string STATE_ERROR = "Error";
+ public const string STATE_OFFLINE = "Offline";
+ public const string STATE_RUNNING = "Running";
+ public const string STATE_SHUTDOWN = "Shutting Down";
+ public const string STATE_STARTING = "Starting";
+
+ protected Backbone() { }
+
+ [NotNull]
+ public static Backbone Instance { get; }
+ [NotNull]
+ public ILoggingSetupManager LoggingConfigurationManager { get; set; }
+ public BackboneStatusCache Status { get; }
+ public bool IsAutomatedRestartActive { get; }
+ public bool IsReadyForRestart { get; }
+ public string StartTime { get; }
+ public string State { get; }
+ public string Name { get; }
+ public string ConfigurationServiceAddress { get; }
+ public string CellName { get; }
+ protected bool IsInitialized { get; set; }
+ protected Dictionary BackboneComponents { get; }
+
+ public void AddBackboneComponent(BackboneComponent backboneComponent) { }
+ public bool ContainsBackboneComponent(string id) => throw new NotImplementedException();
+ [Obsolete("Use the capabilities exposed via the Status property -> GetAll. Will be removed with next major release.")]
+ public List GetAllStatuses() => throw new NotImplementedException();
+ public BackboneComponent GetBackboneComponentById(string id) => throw new NotImplementedException();
+ public List GetBackboneComponentsOfType() => throw new NotImplementedException();
+ public List GetBackboneComponentsOfType(Type type) => throw new NotImplementedException();
+ public void RegisterSubprocess(int pid) { }
+ [Obsolete("Use the capabilities exposed via the Status property -> SetValue. Will be removed with next major release.")]
+ public void SetStatus(string statusName, string statusValue) { }
+ [Obsolete("Use the capabilities exposed via the Status property -> SetValue. Will be removed with next major release.")]
+ public void SetStatus(BackboneComponent source, string statusName, string statusValue) { }
+ protected void CloseConnectionOfComponents(List components) { }
+ protected virtual void StopAllComponents() { }
+ protected void StopComponents(List components) { }
- public void AddBackboneComponent(BackboneComponent backboneComponent) { }
- public bool ContainsBackboneComponent(string id) { throw new NotImplementedException(); }
- [Obsolete("Use the capabilities exposed via the Status property -> GetAll. Will be removed with next major release.")]
- public List GetAllStatuses() { throw new NotImplementedException(); }
- public BackboneComponent GetBackboneComponentById(string id) { throw new NotImplementedException(); }
- public List GetBackboneComponentsOfType() { throw new NotImplementedException(); }
- public List GetBackboneComponentsOfType(Type type) { throw new NotImplementedException(); }
- public void RegisterSubprocess(int pid) { }
- [Obsolete("Use the capabilities exposed via the Status property -> SetValue. Will be removed with next major release.")]
- public void SetStatus(string statusName, string statusValue) { }
- [Obsolete("Use the capabilities exposed via the Status property -> SetValue. Will be removed with next major release.")]
- public void SetStatus(BackboneComponent source, string statusName, string statusValue) { }
- protected void CloseConnectionOfComponents(List components) { }
- protected virtual void StopAllComponents() { }
- protected void StopComponents(List components) { }
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Core/Smtp/EmailMessage.cs b/Adaptation/Eaf/Core/Smtp/EmailMessage.cs
index f0c2baf..e16b8aa 100644
--- a/Adaptation/Eaf/Core/Smtp/EmailMessage.cs
+++ b/Adaptation/Eaf/Core/Smtp/EmailMessage.cs
@@ -1,24 +1,25 @@
using System;
-namespace Adaptation.Eaf.Core.Smtp
+namespace Adaptation.Eaf.Core.Smtp;
+
+public class EmailMessage
{
- public class EmailMessage
- {
- public EmailMessage() { }
- public EmailMessage(string subject, string body, MailPriority priority = MailPriority.Normal) { }
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
- public string Body { get; }
- public MailPriority Priority { get; }
- public string Subject { get; }
+ public EmailMessage() { }
+ public EmailMessage(string subject, string body, MailPriority priority = MailPriority.Normal) { }
- public EmailMessage PriorityHigh() { throw new NotImplementedException(); }
- public EmailMessage PriorityLow() { throw new NotImplementedException(); }
- public EmailMessage PriorityNormal() { throw new NotImplementedException(); }
- public EmailMessage SetBody(string body) { throw new NotImplementedException(); }
- public EmailMessage SetPriority(MailPriority priority) { throw new NotImplementedException(); }
- public EmailMessage SetSubject(string subject) { throw new NotImplementedException(); }
+ public string Body { get; }
+ public MailPriority Priority { get; }
+ public string Subject { get; }
- }
+ public EmailMessage PriorityHigh() => throw new NotImplementedException();
+ public EmailMessage PriorityLow() => throw new NotImplementedException();
+ public EmailMessage PriorityNormal() => throw new NotImplementedException();
+ public EmailMessage SetBody(string body) => throw new NotImplementedException();
+ public EmailMessage SetPriority(MailPriority priority) => throw new NotImplementedException();
+ public EmailMessage SetSubject(string subject) => throw new NotImplementedException();
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Core/Smtp/ISmtp.cs b/Adaptation/Eaf/Core/Smtp/ISmtp.cs
index 3a12278..0446065 100644
--- a/Adaptation/Eaf/Core/Smtp/ISmtp.cs
+++ b/Adaptation/Eaf/Core/Smtp/ISmtp.cs
@@ -1,9 +1,6 @@
-namespace Adaptation.Eaf.Core.Smtp
+namespace Adaptation.Eaf.Core.Smtp;
+
+public interface ISmtp
{
-
- public interface ISmtp
- {
- void Send(EmailMessage message);
- }
-
+ void Send(EmailMessage message);
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Core/Smtp/MailPriority.cs b/Adaptation/Eaf/Core/Smtp/MailPriority.cs
index 18ee1af..b59d146 100644
--- a/Adaptation/Eaf/Core/Smtp/MailPriority.cs
+++ b/Adaptation/Eaf/Core/Smtp/MailPriority.cs
@@ -1,11 +1,8 @@
-namespace Adaptation.Eaf.Core.Smtp
+namespace Adaptation.Eaf.Core.Smtp;
+
+public enum MailPriority
{
-
- public enum MailPriority
- {
- Low = 0,
- Normal = 1,
- High = 2
- }
-
+ Low = 0,
+ Normal = 1,
+ High = 2
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/ChangeDataCollectionHandler.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/ChangeDataCollectionHandler.cs
index 096cfd8..80e911e 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/ChangeDataCollectionHandler.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/ChangeDataCollectionHandler.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public class ChangeDataCollectionHandler
{
- public class ChangeDataCollectionHandler
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/DataCollectionRequest.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/DataCollectionRequest.cs
index f085c14..d49c557 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/DataCollectionRequest.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/DataCollectionRequest.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public class DataCollectionRequest
{
- public class DataCollectionRequest
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentEvent.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentEvent.cs
index fd97bcb..9d45cb1 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentEvent.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentEvent.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public class EquipmentEvent
{
- public class EquipmentEvent
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentException.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentException.cs
index 1a3babd..c0cf1c3 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentException.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentException.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public class EquipmentException
{
- public class EquipmentException
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentSelfDescription.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentSelfDescription.cs
index 3697004..92d7722 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentSelfDescription.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/EquipmentSelfDescription.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public class EquipmentSelfDescription
{
- public class EquipmentSelfDescription
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/GetParameterValuesHandler.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/GetParameterValuesHandler.cs
index bc26e0f..dca26fc 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/GetParameterValuesHandler.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/GetParameterValuesHandler.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public class GetParameterValuesHandler
{
- public class GetParameterValuesHandler
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IConnectionControl.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IConnectionControl.cs
index a9e800c..7481501 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IConnectionControl.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IConnectionControl.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public interface IConnectionControl
{
- public interface IConnectionControl
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IDataTracingHandler.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IDataTracingHandler.cs
index 3b98f85..cf0602a 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IDataTracingHandler.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IDataTracingHandler.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public interface IDataTracingHandler
{
- public interface IDataTracingHandler
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentCommandService.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentCommandService.cs
index 2a54add..9f6000e 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentCommandService.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentCommandService.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public interface IEquipmentCommandService
{
- public interface IEquipmentCommandService
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentControl.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentControl.cs
index a119d2b..8b4f8d1 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentControl.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentControl.cs
@@ -1,16 +1,15 @@
using Adaptation.PeerGroup.GCL.Annotations;
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public interface IEquipmentControl : IPackageSource
{
- public interface IEquipmentControl : IPackageSource
- {
- [NotNull]
- IEquipmentSelfDescriptionBuilder SelfDescriptionBuilder { get; }
- [NotNull]
- IEquipmentDataCollection DataCollection { get; }
- [NotNull]
- IEquipmentCommandService Commands { get; }
- [NotNull]
- IConnectionControl Connection { get; }
- }
+ [NotNull]
+ IEquipmentSelfDescriptionBuilder SelfDescriptionBuilder { get; }
+ [NotNull]
+ IEquipmentDataCollection DataCollection { get; }
+ [NotNull]
+ IEquipmentCommandService Commands { get; }
+ [NotNull]
+ IConnectionControl Connection { get; }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentSelfDescriptionBuilder.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentSelfDescriptionBuilder.cs
index b583e8c..f34413f 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentSelfDescriptionBuilder.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IEquipmentSelfDescriptionBuilder.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public interface IEquipmentSelfDescriptionBuilder
{
- public interface IEquipmentSelfDescriptionBuilder
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IPackage.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IPackage.cs
index 67ef808..eef26c3 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IPackage.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IPackage.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public interface IPackage
{
- public interface IPackage
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/ISelfDescriptionLookup.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/ISelfDescriptionLookup.cs
index 57b3215..be924e9 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/ISelfDescriptionLookup.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/ISelfDescriptionLookup.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public interface ISelfDescriptionLookup
{
- public interface ISelfDescriptionLookup
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IVirtualParameterValuesHandler.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IVirtualParameterValuesHandler.cs
index 64e4621..e7a76fc 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IVirtualParameterValuesHandler.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/IVirtualParameterValuesHandler.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public interface IVirtualParameterValuesHandler
{
- public interface IVirtualParameterValuesHandler
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/SetParameterValuesHandler.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/SetParameterValuesHandler.cs
index 200fb13..2615f40 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/SetParameterValuesHandler.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/SetParameterValuesHandler.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public class SetParameterValuesHandler
{
- public class SetParameterValuesHandler
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/TraceRequest.cs b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/TraceRequest.cs
index 84511e9..8d26e7b 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/TraceRequest.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/AutoGenerated/TraceRequest.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public class TraceRequest
{
- public class TraceRequest
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/IEquipmentDataCollection.cs b/Adaptation/Eaf/EquipmentCore/Control/IEquipmentDataCollection.cs
index 7a704b5..d0980ee 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/IEquipmentDataCollection.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/IEquipmentDataCollection.cs
@@ -3,37 +3,36 @@ using Adaptation.Eaf.EquipmentCore.SelfDescription.ElementDescription;
using System;
using System.Collections.Generic;
-namespace Adaptation.Eaf.EquipmentCore.Control
-{
- public interface IEquipmentDataCollection
- {
- IVirtualParameterValuesHandler VirtualParameterValuesHandler { get; }
- ISelfDescriptionLookup SelfDescriptionLookup { get; }
- EquipmentSelfDescription SelfDescription { get; }
- IEnumerable ActiveRequests { get; }
- IDataTracingHandler DataTracingHandler { get; }
+namespace Adaptation.Eaf.EquipmentCore.Control;
- ParameterValue CreateParameterValue(EquipmentParameter parameter, object value);
- void NotifyDataTracingAvailable(bool isAvailable);
- void RegisterChangeDataCollectionHandler(ChangeDataCollectionHandler handler);
- void RegisterDataTracingHandler(IDataTracingHandler handler);
- void RegisterGetParameterValuesHandler(GetParameterValuesHandler handler);
- void RegisterSetParameterValuesHandler(SetParameterValuesHandler handler);
- void TriggerDeactivate(DataCollectionRequest deactivateRequest);
- void TriggerEvent(EquipmentEvent equipmentEvent, IEnumerable parameters);
- void TriggerEvent(EquipmentEvent equipmentEvent, IEnumerable parameters, IPackage sourcePackage);
- void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters);
- void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters, IPackage sourcePackage);
- void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride);
- void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride, IPackage sourcePackage);
- void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride, IPackage sourcePackage);
- void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride);
- void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters, IPackage sourcePackage);
- void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters);
- void TriggerPerformanceRestored();
- void TriggerPerformanceWarning();
- void TriggerTraceSample(TraceRequest traceRequest, long sampleId, IEnumerable parameters);
- void TriggerTraceSample(TraceRequest traceRequest, long sampleId, IEnumerable parameters, IPackage sourcePackage);
- void TriggerTraceSample(TraceRequest traceRequest, long sampleId, IEnumerable parameters, DateTime equipmentTimeStamp);
- }
+public interface IEquipmentDataCollection
+{
+ IVirtualParameterValuesHandler VirtualParameterValuesHandler { get; }
+ ISelfDescriptionLookup SelfDescriptionLookup { get; }
+ EquipmentSelfDescription SelfDescription { get; }
+ IEnumerable ActiveRequests { get; }
+ IDataTracingHandler DataTracingHandler { get; }
+
+ ParameterValue CreateParameterValue(EquipmentParameter parameter, object value);
+ void NotifyDataTracingAvailable(bool isAvailable);
+ void RegisterChangeDataCollectionHandler(ChangeDataCollectionHandler handler);
+ void RegisterDataTracingHandler(IDataTracingHandler handler);
+ void RegisterGetParameterValuesHandler(GetParameterValuesHandler handler);
+ void RegisterSetParameterValuesHandler(SetParameterValuesHandler handler);
+ void TriggerDeactivate(DataCollectionRequest deactivateRequest);
+ void TriggerEvent(EquipmentEvent equipmentEvent, IEnumerable parameters);
+ void TriggerEvent(EquipmentEvent equipmentEvent, IEnumerable parameters, IPackage sourcePackage);
+ void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters);
+ void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters, IPackage sourcePackage);
+ void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride);
+ void TriggerExceptionClear(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride, IPackage sourcePackage);
+ void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride, IPackage sourcePackage);
+ void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters, string severityOverride, string descriptionOverride);
+ void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters, IPackage sourcePackage);
+ void TriggerExceptionSet(EquipmentException equipmentException, IEnumerable parameters);
+ void TriggerPerformanceRestored();
+ void TriggerPerformanceWarning();
+ void TriggerTraceSample(TraceRequest traceRequest, long sampleId, IEnumerable parameters);
+ void TriggerTraceSample(TraceRequest traceRequest, long sampleId, IEnumerable parameters, IPackage sourcePackage);
+ void TriggerTraceSample(TraceRequest traceRequest, long sampleId, IEnumerable parameters, DateTime equipmentTimeStamp);
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/Control/IPackageSource.cs b/Adaptation/Eaf/EquipmentCore/Control/IPackageSource.cs
index 2c0371e..86760aa 100644
--- a/Adaptation/Eaf/EquipmentCore/Control/IPackageSource.cs
+++ b/Adaptation/Eaf/EquipmentCore/Control/IPackageSource.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.EquipmentCore.Control
+namespace Adaptation.Eaf.EquipmentCore.Control;
+
+public interface IPackageSource
{
- public interface IPackageSource
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/DataCollection/Reporting/ParameterValue.cs b/Adaptation/Eaf/EquipmentCore/DataCollection/Reporting/ParameterValue.cs
index da3bc3c..468230d 100644
--- a/Adaptation/Eaf/EquipmentCore/DataCollection/Reporting/ParameterValue.cs
+++ b/Adaptation/Eaf/EquipmentCore/DataCollection/Reporting/ParameterValue.cs
@@ -1,20 +1,25 @@
-using Adaptation.Eaf.EquipmentCore.SelfDescription.ElementDescription;
+using Adaptation.Eaf.EquipmentCore.SelfDescription.ElementDescription;
using Adaptation.PeerGroup.GCL.Annotations;
using System;
-namespace Adaptation.Eaf.EquipmentCore.DataCollection.Reporting
+namespace Adaptation.Eaf.EquipmentCore.DataCollection.Reporting;
+
+public class ParameterValue
{
- public class ParameterValue
- {
- public ParameterValue(EquipmentParameter definition, object value) { }
- public ParameterValue(EquipmentParameter definition, object value, DateTime timestamp) { }
- public virtual object Value { get; protected internal set; }
- [NotNull]
- public EquipmentParameter Definition { get; }
- public DateTime Timestamp { get; protected set; }
+#pragma warning disable CA1822
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
+
+ public ParameterValue(EquipmentParameter definition, object value) { }
+ public ParameterValue(EquipmentParameter definition, object value, DateTime timestamp) { }
+
+ public virtual object Value { get; protected internal set; }
+ [NotNull]
+ public EquipmentParameter Definition { get; }
+ public DateTime Timestamp { get; protected set; }
+
+ public virtual ParameterValue Clone(EquipmentParameter newDefinition) => throw new NotImplementedException();
+ public override string ToString() => base.ToString();
- public virtual ParameterValue Clone(EquipmentParameter newDefinition) { throw new NotImplementedException(); }
- public override string ToString() { return base.ToString(); }
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/SelfDescription/ElementDescription/EquipmentParameter.cs b/Adaptation/Eaf/EquipmentCore/SelfDescription/ElementDescription/EquipmentParameter.cs
index 6cfad2a..f9c126d 100644
--- a/Adaptation/Eaf/EquipmentCore/SelfDescription/ElementDescription/EquipmentParameter.cs
+++ b/Adaptation/Eaf/EquipmentCore/SelfDescription/ElementDescription/EquipmentParameter.cs
@@ -1,24 +1,27 @@
-using Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes;
+using Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes;
-namespace Adaptation.Eaf.EquipmentCore.SelfDescription.ElementDescription
+namespace Adaptation.Eaf.EquipmentCore.SelfDescription.ElementDescription;
+
+public class EquipmentParameter
{
- public class EquipmentParameter
- {
- public EquipmentParameter(EquipmentParameter source, ParameterTypeDefinition typeDefinition) { }
- public EquipmentParameter(string name, ParameterTypeDefinition typeDefinition, string description, bool isTransient = false, bool isReadOnly = true) { }
- public EquipmentParameter(string id, string name, ParameterTypeDefinition typeDefinition, string description, bool isTransient = false, bool isReadOnly = true) { }
- public string Name { get; }
- public string Id { get; }
- public string Description { get; }
- public string SourcePath { get; }
- public string SourceEquipment { get; }
- public ParameterTypeDefinition TypeDefinition { get; }
- public bool IsTransient { get; }
- public bool IsReadOnly { get; }
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
- public override string ToString() { return base.ToString(); }
- public string ToStringWithDetails() { return base.ToString(); }
- }
+ public EquipmentParameter(EquipmentParameter source, ParameterTypeDefinition typeDefinition) { }
+ public EquipmentParameter(string name, ParameterTypeDefinition typeDefinition, string description, bool isTransient = false, bool isReadOnly = true) { }
+ public EquipmentParameter(string id, string name, ParameterTypeDefinition typeDefinition, string description, bool isTransient = false, bool isReadOnly = true) { }
+
+ public string Name { get; }
+ public string Id { get; }
+ public string Description { get; }
+ public string SourcePath { get; }
+ public string SourceEquipment { get; }
+ public ParameterTypeDefinition TypeDefinition { get; }
+ public bool IsTransient { get; }
+ public bool IsReadOnly { get; }
+
+ public override string ToString() => base.ToString();
+ public string ToStringWithDetails() => base.ToString();
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/Field.cs b/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/Field.cs
index a83b45f..726b51a 100644
--- a/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/Field.cs
+++ b/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/Field.cs
@@ -1,12 +1,16 @@
-namespace Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes
-{
- public class Field
- {
- public Field(string name, string description, bool canBeNull, ParameterTypeDefinition typeDefinition) { }
+namespace Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes;
+
+public class Field
+{
+
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
+
+ public Field(string name, string description, bool canBeNull, ParameterTypeDefinition typeDefinition) { }
+
+ public string Name { get; }
+ public string Description { get; }
+ public ParameterTypeDefinition TypeDefinition { get; }
+ public bool CanBeNull { get; }
- public string Name { get; }
- public string Description { get; }
- public ParameterTypeDefinition TypeDefinition { get; }
- public bool CanBeNull { get; }
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/ParameterTypeDefinition.cs b/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/ParameterTypeDefinition.cs
index 65ad7dd..00fc42a 100644
--- a/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/ParameterTypeDefinition.cs
+++ b/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/ParameterTypeDefinition.cs
@@ -1,12 +1,16 @@
-namespace Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes
+namespace Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes;
+
+public abstract class ParameterTypeDefinition
{
- public abstract class ParameterTypeDefinition
- {
- public ParameterTypeDefinition(string name, string description) { }
- public string Name { get; }
- public string Description { get; }
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
+
+ public ParameterTypeDefinition(string name, string description) { }
+
+ public string Name { get; }
+ public string Description { get; }
+
+ public override string ToString() => base.ToString();
- public override string ToString() { return base.ToString(); }
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/StructuredType.cs b/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/StructuredType.cs
index 24c5856..fe5fbce 100644
--- a/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/StructuredType.cs
+++ b/Adaptation/Eaf/EquipmentCore/SelfDescription/ParameterTypes/StructuredType.cs
@@ -1,12 +1,16 @@
using System.Collections.Generic;
-namespace Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes
+namespace Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes;
+
+public class StructuredType : ParameterTypeDefinition
{
- public class StructuredType : ParameterTypeDefinition
- {
- public StructuredType(string name, string description, IList fields) : base(name, description) { }
+#pragma warning disable CA1822
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
+
+ public StructuredType(string name, string description, IList fields) : base(name, description) { }
+
+ public IList Fields { get; }
- public IList Fields { get; }
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/IConfigurationObject.cs b/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/IConfigurationObject.cs
index 597ace3..70ef834 100644
--- a/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/IConfigurationObject.cs
+++ b/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/IConfigurationObject.cs
@@ -1,6 +1,5 @@
-namespace Adaptation.Eaf.Management.ConfigurationData.CellAutomation
+namespace Adaptation.Eaf.Management.ConfigurationData.CellAutomation;
+
+public interface IConfigurationObject
{
- public interface IConfigurationObject
- {
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterDefinition.cs b/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterDefinition.cs
index 0b772a2..bdc8731 100644
--- a/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterDefinition.cs
+++ b/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterDefinition.cs
@@ -1,26 +1,30 @@
using System;
-namespace Adaptation.Eaf.Management.ConfigurationData.CellAutomation
+namespace Adaptation.Eaf.Management.ConfigurationData.CellAutomation;
+
+[System.Runtime.Serialization.DataContract(IsReference = true)]
+public class ModelObjectParameterDefinition : IConfigurationObject
{
- [System.Runtime.Serialization.DataContractAttribute(IsReference = true)]
- public class ModelObjectParameterDefinition : IConfigurationObject
- {
- public ModelObjectParameterDefinition() { }
- public ModelObjectParameterDefinition(string name, ModelObjectParameterType valueType, object defaultValue) { }
- public ModelObjectParameterDefinition(string name, Type enumType, object defaultValue) { }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual long Id { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual string Name { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual string Value { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual ModelObjectParameterType ValueType { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual string EnumType { get; set; }
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
+
+ public ModelObjectParameterDefinition() { }
+ public ModelObjectParameterDefinition(string name, ModelObjectParameterType valueType, object defaultValue) { }
+ public ModelObjectParameterDefinition(string name, Type enumType, object defaultValue) { }
+
+ [System.Runtime.Serialization.DataMember]
+ public virtual long Id { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual string Name { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual string Value { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual ModelObjectParameterType ValueType { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual string EnumType { get; set; }
+
+ public virtual ModelObjectParameterDefinition Clone() => null;
+ public virtual bool IsValidValue(string value) => false;
- public virtual ModelObjectParameterDefinition Clone() { return null; }
- public virtual bool IsValidValue(string value) { return false; }
- }
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterType.cs b/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterType.cs
index 6f779af..c5a85c2 100644
--- a/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterType.cs
+++ b/Adaptation/Eaf/Management/ConfigurationData/CellAutomation/ModelObjectParameterType.cs
@@ -1,17 +1,16 @@
-namespace Adaptation.Eaf.Management.ConfigurationData.CellAutomation
+namespace Adaptation.Eaf.Management.ConfigurationData.CellAutomation;
+
+public enum ModelObjectParameterType
{
- public enum ModelObjectParameterType
- {
- String = 0,
- Bool = 1,
- Byte = 2,
- SignedByte = 3,
- Integer = 4,
- UnsignedInteger = 5,
- LongInteger = 6,
- UnsignedLongInteger = 7,
- Double = 8,
- Float = 9,
- Enum = 10
- }
+ String = 0,
+ Bool = 1,
+ Byte = 2,
+ SignedByte = 3,
+ Integer = 4,
+ UnsignedInteger = 5,
+ LongInteger = 6,
+ UnsignedLongInteger = 7,
+ Double = 8,
+ Float = 9,
+ Enum = 10
}
\ No newline at end of file
diff --git a/Adaptation/Eaf/Management/ConfigurationData/Semiconductor/CellInstances/SecsConnectionConfiguration.cs b/Adaptation/Eaf/Management/ConfigurationData/Semiconductor/CellInstances/SecsConnectionConfiguration.cs
index 91493b0..b8c1bd3 100644
--- a/Adaptation/Eaf/Management/ConfigurationData/Semiconductor/CellInstances/SecsConnectionConfiguration.cs
+++ b/Adaptation/Eaf/Management/ConfigurationData/Semiconductor/CellInstances/SecsConnectionConfiguration.cs
@@ -1,44 +1,43 @@
using Adaptation.PeerGroup.GCL.SecsDriver;
using System;
-namespace Adaptation.Eaf.Management.ConfigurationData.Semiconductor.CellInstances
-{
- [System.Runtime.Serialization.DataContractAttribute]
- public class SecsConnectionConfiguration
- {
- public SecsConnectionConfiguration() { }
+namespace Adaptation.Eaf.Management.ConfigurationData.Semiconductor.CellInstances;
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual TimeSpan T6HsmsControlMessage { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual TimeSpan T5ConnectionSeperation { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual TimeSpan T4InterBlock { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual TimeSpan T3MessageReply { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual TimeSpan T2Protocol { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual TimeSpan T1InterCharacter { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual SerialBaudRate? BaudRate { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual SecsTransportType? PortType { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual long? Port { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual TimeSpan LinkTestTimer { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual string Host { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual long? DeviceId { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual HsmsSessionMode? SessionMode { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual HsmsConnectionMode? ConnectionMode { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual TimeSpan T7ConnectionIdle { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual TimeSpan T8NetworkIntercharacter { get; set; }
- }
+[System.Runtime.Serialization.DataContract]
+public class SecsConnectionConfiguration
+{
+ public SecsConnectionConfiguration() { }
+
+ [System.Runtime.Serialization.DataMember]
+ public virtual TimeSpan T6HsmsControlMessage { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual TimeSpan T5ConnectionSeperation { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual TimeSpan T4InterBlock { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual TimeSpan T3MessageReply { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual TimeSpan T2Protocol { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual TimeSpan T1InterCharacter { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual SerialBaudRate? BaudRate { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual SecsTransportType? PortType { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual long? Port { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual TimeSpan LinkTestTimer { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual string Host { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual long? DeviceId { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual HsmsSessionMode? SessionMode { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual HsmsConnectionMode? ConnectionMode { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual TimeSpan T7ConnectionIdle { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual TimeSpan T8NetworkIntercharacter { get; set; }
}
\ No newline at end of file
diff --git a/Adaptation/FileHandlers/CellInstanceConnectionName.cs b/Adaptation/FileHandlers/CellInstanceConnectionName.cs
index 1e84804..c7bc112 100644
--- a/Adaptation/FileHandlers/CellInstanceConnectionName.cs
+++ b/Adaptation/FileHandlers/CellInstanceConnectionName.cs
@@ -4,26 +4,20 @@ using Adaptation.Shared.Methods;
using System;
using System.Collections.Generic;
-namespace Adaptation.FileHandlers
+namespace Adaptation.FileHandlers;
+
+public class CellInstanceConnectionName
{
- public class CellInstanceConnectionName
+ internal static IFileRead Get(ISMTP smtp, Dictionary fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList modelObjectParameters, string equipmentDictionaryName, Dictionary> dummyRuns, Dictionary> staticRuns, bool useCyclicalForDescription, bool isEAFHosted)
{
-
- internal static IFileRead Get(ISMTP smtp, Dictionary fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList modelObjectParameters, Dictionary> dummyRuns, bool useCyclicalForDescription, bool isEAFHosted)
+ IFileRead result = cellInstanceConnectionName switch
{
- int levelIsArchive = 6;
- int levelIsXToArchive = 5;
- bool isDuplicator = cellInstanceConnectionName.StartsWith(cellInstanceName);
- IFileRead result = cellInstanceConnectionName switch
- {
- nameof(MapEafDrives) => new MapEafDrives.FileRead(smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, dummyRuns, useCyclicalForDescription, isEAFHosted, levelIsXToArchive, levelIsArchive),
- nameof(RijndaelEncryption) => new RijndaelEncryption.FileRead(smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, dummyRuns, useCyclicalForDescription, isEAFHosted, levelIsXToArchive, levelIsArchive),
- _ => throw new Exception(),
- };
- return result;
- }
-
+ nameof(MapEafDrives) => new MapEafDrives.FileRead(smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted),
+ nameof(RijndaelEncryption) => new RijndaelEncryption.FileRead(smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted),
+ _ => throw new Exception(),
+ };
+ return result;
}
}
\ No newline at end of file
diff --git a/Adaptation/FileHandlers/MapEafDrives/FileRead.cs b/Adaptation/FileHandlers/MapEafDrives/FileRead.cs
index 38efadd..2eb07cb 100644
--- a/Adaptation/FileHandlers/MapEafDrives/FileRead.cs
+++ b/Adaptation/FileHandlers/MapEafDrives/FileRead.cs
@@ -11,134 +11,110 @@ using System.Diagnostics;
using System.IO;
using System.Text.Json;
-namespace Adaptation.FileHandlers.MapEafDrives
+namespace Adaptation.FileHandlers.MapEafDrives;
+
+public class FileRead : Shared.FileRead, IFileRead
{
- public class FileRead : Shared.FileRead, IFileRead
+ private readonly AppSettings _AppSettings;
+
+ public FileRead(ISMTP smtp, Dictionary fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList modelObjectParameters, string equipmentDictionaryName, Dictionary> dummyRuns, Dictionary> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
+ base(new Description(), true, smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted)
{
-
- private readonly AppSettings _AppSettings;
-
- public FileRead(ISMTP smtp, Dictionary fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList modelObjectParameters, string equipmentDictionaryName, Dictionary> dummyRuns, bool useCyclicalForDescription, bool isEAFHosted, int hyphenXToArchive, int hyphenIsArchive) :
- base(new Description(), true, smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, useCyclicalForDescription, isEAFHosted, hyphenXToArchive, hyphenIsArchive)
+ _MinFileLength = 10;
+ _NullData = string.Empty;
+ _Logistics = new(this);
+ if (_FileParameter is null)
+ throw new Exception(cellInstanceConnectionName);
+ if (_ModelObjectParameterDefinitions is null)
+ throw new Exception(cellInstanceConnectionName);
+ if (isEAFHosted)
{
- _MinFileLength = 10;
- _NullData = string.Empty;
- _Logistics = new Logistics(this);
- if (_FileParameter is null)
- throw new Exception(cellInstanceConnectionName);
- if (_ModelObjectParameterDefinitions is null)
- throw new Exception(cellInstanceConnectionName);
- if (isEAFHosted)
- {
- ILog log = LogManager.GetLogger(typeof(FileRead));
- IsEnvironment isEnvironment = new(processesCount: null, nullASPNetCoreEnvironmentIsDevelopment: Debugger.IsAttached, nullASPNetCoreEnvironmentIsProduction: !Debugger.IsAttached);
- IConfigurationBuilder configurationBuilder = new ConfigurationBuilder()
- .AddEnvironmentVariables()
- .AddJsonFile(isEnvironment.AppSettingsFileName, optional: false, reloadOnChange: true);
- IConfigurationRoot configurationRoot = configurationBuilder.Build();
- _AppSettings = new AppSettings();
- configurationRoot.Bind(_AppSettings);
- Drive.MapEafDrives(log, _AppSettings);
- }
+ ILog log = LogManager.GetLogger(typeof(FileRead));
+ IsEnvironment isEnvironment = new(processesCount: null, nullASPNetCoreEnvironmentIsDevelopment: Debugger.IsAttached, nullASPNetCoreEnvironmentIsProduction: !Debugger.IsAttached);
+ IConfigurationBuilder configurationBuilder = new ConfigurationBuilder()
+ .AddEnvironmentVariables()
+ .AddJsonFile(isEnvironment.AppSettingsFileName, optional: false, reloadOnChange: true);
+ IConfigurationRoot configurationRoot = configurationBuilder.Build();
+ _AppSettings = new AppSettings();
+ configurationRoot.Bind(_AppSettings);
+ Drive.MapEafDrives(log, _AppSettings);
}
+ }
- void IFileRead.Move(Tuple> extractResults, Exception exception)
- {
- Move(this, extractResults, exception);
- }
+ void IFileRead.Move(Tuple> extractResults, Exception exception) => Move(extractResults);
- void IFileRead.WaitForThread()
- {
- WaitForThread(thread: null, threadExceptions: null);
- }
+ void IFileRead.WaitForThread() => WaitForThread(thread: null, threadExceptions: null);
- string IFileRead.GetEventDescription()
- {
- string result = _Description.GetEventDescription();
- return result;
- }
+ string IFileRead.GetEventDescription()
+ {
+ string result = _Description.GetEventDescription();
+ return result;
+ }
- List IFileRead.GetHeaderNames()
- {
- List results = _Description.GetHeaderNames();
- return results;
- }
+ List IFileRead.GetHeaderNames()
+ {
+ List results = _Description.GetHeaderNames();
+ return results;
+ }
- string[] IFileRead.Move(Tuple> extractResults, string to, string from, string resolvedFileLocation, Exception exception)
- {
- string[] results = Move(extractResults, to, from, resolvedFileLocation, exception);
- return results;
- }
+ string[] IFileRead.Move(Tuple> extractResults, string to, string from, string resolvedFileLocation, Exception exception)
+ {
+ string[] results = Move(extractResults, to, from, resolvedFileLocation, exception);
+ return results;
+ }
- JsonProperty[] IFileRead.GetDefault()
- {
- JsonProperty[] results = _Description.GetDefault(this, _Logistics);
- return results;
- }
+ JsonProperty[] IFileRead.GetDefault()
+ {
+ JsonProperty[] results = _Description.GetDefault(this, _Logistics);
+ return results;
+ }
- Dictionary IFileRead.GetDisplayNamesJsonElement()
- {
- Dictionary results = _Description.GetDisplayNamesJsonElement(this);
- return results;
- }
+ Dictionary IFileRead.GetDisplayNamesJsonElement()
+ {
+ Dictionary results = _Description.GetDisplayNamesJsonElement(this);
+ return results;
+ }
- List IFileRead.GetDescriptions(IFileRead fileRead, List tests, IProcessData processData)
- {
- List results = _Description.GetDescriptions(fileRead, _Logistics, tests, processData);
- return results;
- }
+ List IFileRead.GetDescriptions(IFileRead fileRead, List tests, IProcessData processData)
+ {
+ List results = _Description.GetDescriptions(fileRead, _Logistics, tests, processData);
+ return results;
+ }
- Tuple> IFileRead.GetExtractResult(string reportFullPath, string eventName)
- {
- Tuple> results;
- if (string.IsNullOrEmpty(eventName))
- throw new Exception();
- _ReportFullPath = reportFullPath;
- DateTime dateTime = DateTime.Now;
- results = GetExtractResult(reportFullPath, dateTime);
- if (results.Item3 is null)
- results = new Tuple>(results.Item1, new Test[] { }, JsonSerializer.Deserialize("[]"), results.Item4);
- if (results.Item3.Length > 0 && _IsEAFHosted)
- WritePDSF(this, results.Item3);
- UpdateLastTicksDuration(DateTime.Now.Ticks - dateTime.Ticks);
- return results;
- }
+ Tuple> IFileRead.GetExtractResult(string reportFullPath, string eventName)
+ {
+ Tuple> results;
+ if (string.IsNullOrEmpty(eventName))
+ throw new Exception();
+ _ReportFullPath = reportFullPath;
+ DateTime dateTime = DateTime.Now;
+ results = GetExtractResult(reportFullPath, dateTime);
+ if (results.Item3 is null)
+ results = new Tuple>(results.Item1, Array.Empty(), JsonSerializer.Deserialize("[]"), results.Item4);
+ if (results.Item3.Length > 0 && _IsEAFHosted)
+ WritePDSF(this, results.Item3);
+ UpdateLastTicksDuration(DateTime.Now.Ticks - dateTime.Ticks);
+ return results;
+ }
- Tuple> IFileRead.ReExtract()
- {
- Tuple> results;
- List headerNames = _Description.GetHeaderNames();
- Dictionary keyValuePairs = _Description.GetDisplayNamesJsonElement(this);
- results = ReExtract(this, headerNames, keyValuePairs);
- return results;
- }
-
- void IFileRead.CheckTests(Test[] tests, bool extra)
- {
- throw new Exception(string.Concat("Not ", nameof(_IsDuplicator)));
- }
-
- void IFileRead.MoveArchive()
- {
- throw new Exception(string.Concat("Not ", nameof(_IsDuplicator)));
- }
-
- void IFileRead.Callback(object state)
- {
- throw new Exception(string.Concat("Not ", nameof(_IsDuplicator)));
- }
-
- private Tuple> GetExtractResult(string reportFullPath, DateTime dateTime)
- {
- Tuple> results = new(string.Empty, null, null, new List());
- if (reportFullPath is null)
- { }
- if (dateTime == DateTime.MinValue)
- { }
- return results;
- }
+ Tuple> IFileRead.ReExtract()
+ {
+ Tuple> results;
+ List headerNames = _Description.GetHeaderNames();
+ Dictionary keyValuePairs = _Description.GetDisplayNamesJsonElement(this);
+ results = ReExtract(this, headerNames, keyValuePairs);
+ return results;
+ }
+ private static Tuple> GetExtractResult(string reportFullPath, DateTime dateTime)
+ {
+ Tuple> results = new(string.Empty, null, null, new List());
+ if (reportFullPath is null)
+ { }
+ if (dateTime == DateTime.MinValue)
+ { }
+ return results;
}
}
\ No newline at end of file
diff --git a/Adaptation/FileHandlers/MapEafDrives/IsEnvironment.cs b/Adaptation/FileHandlers/MapEafDrives/IsEnvironment.cs
new file mode 100644
index 0000000..b080e64
--- /dev/null
+++ b/Adaptation/FileHandlers/MapEafDrives/IsEnvironment.cs
@@ -0,0 +1,167 @@
+using System;
+using System.Diagnostics;
+
+namespace Adaptation.FileHandlers.MapEafDrives;
+
+public class IsEnvironment
+{
+
+ public enum Name
+ {
+ LinuxDevelopment,
+ LinuxProduction,
+ LinuxStaging,
+ OSXDevelopment,
+ OSXProduction,
+ OSXStaging,
+ WindowsDevelopment,
+ WindowsProduction,
+ WindowsStaging
+ }
+
+ public bool DebuggerWasAttachedDuringConstructor { get; private set; }
+ public bool Development { get; private set; }
+ public bool Linux { get; private set; }
+ public bool OSX { get; private set; }
+ public bool Production { get; private set; }
+ public bool Staging { get; private set; }
+ public bool Windows { get; private set; }
+ public string Profile { get; private set; }
+ public string AppSettingsFileName { get; private set; }
+ public string ASPNetCoreEnvironment { get; private set; }
+
+ public IsEnvironment(string testCategory)
+ {
+ if (testCategory.EndsWith(".json"))
+ {
+ Production = testCategory == "appsettings.json";
+ Staging = testCategory.EndsWith(nameof(Staging));
+ OSX = false;
+ Development = testCategory.EndsWith(nameof(Development));
+ Linux = false;
+ DebuggerWasAttachedDuringConstructor = Debugger.IsAttached;
+ Windows = true;
+ ASPNetCoreEnvironment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
+ }
+ else
+ {
+ DebuggerWasAttachedDuringConstructor = Debugger.IsAttached;
+ OSX = !string.IsNullOrEmpty(testCategory) && testCategory.StartsWith(nameof(OSX));
+ ASPNetCoreEnvironment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
+ Linux = !string.IsNullOrEmpty(testCategory) && testCategory.StartsWith(nameof(Linux));
+ Staging = !string.IsNullOrEmpty(testCategory) && testCategory.EndsWith(nameof(Staging));
+ Windows = !string.IsNullOrEmpty(testCategory) && testCategory.StartsWith(nameof(Windows));
+ Production = !string.IsNullOrEmpty(testCategory) && testCategory.EndsWith(nameof(Production));
+ Development = !string.IsNullOrEmpty(testCategory) && testCategory.EndsWith(nameof(Development));
+ }
+ Profile = GetProfile();
+ AppSettingsFileName = GetAppSettingsFileName(processesCount: null);
+ }
+
+ public IsEnvironment(bool isDevelopment, bool isStaging, bool isProduction)
+ {
+ Staging = isStaging;
+ Production = isProduction;
+ Development = isDevelopment;
+ OSX = false;
+ Linux = false;
+ DebuggerWasAttachedDuringConstructor = Debugger.IsAttached;
+ Windows = true;
+ ASPNetCoreEnvironment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
+ Profile = GetProfile();
+ AppSettingsFileName = GetAppSettingsFileName(processesCount: null);
+ }
+
+ public IsEnvironment(int? processesCount, bool nullASPNetCoreEnvironmentIsDevelopment, bool nullASPNetCoreEnvironmentIsProduction)
+ {
+ OSX = false;
+ Linux = false;
+ DebuggerWasAttachedDuringConstructor = Debugger.IsAttached;
+ Windows = true;
+ ASPNetCoreEnvironment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
+ if (nullASPNetCoreEnvironmentIsDevelopment && nullASPNetCoreEnvironmentIsProduction)
+ throw new Exception();
+ else if (string.IsNullOrEmpty(ASPNetCoreEnvironment) && nullASPNetCoreEnvironmentIsProduction)
+ Production = true;
+ else if (string.IsNullOrEmpty(ASPNetCoreEnvironment) && nullASPNetCoreEnvironmentIsDevelopment)
+ Development = true;
+ else if (string.IsNullOrEmpty(ASPNetCoreEnvironment) && !nullASPNetCoreEnvironmentIsDevelopment && !nullASPNetCoreEnvironmentIsProduction)
+ throw new Exception();
+ else
+ {
+ Staging = ASPNetCoreEnvironment is not null && ASPNetCoreEnvironment.EndsWith(nameof(Staging));
+ Production = ASPNetCoreEnvironment is not null && ASPNetCoreEnvironment.EndsWith(nameof(Production));
+ Development = ASPNetCoreEnvironment is not null && ASPNetCoreEnvironment.EndsWith(nameof(Development));
+ }
+ Profile = GetProfile();
+ AppSettingsFileName = GetAppSettingsFileName(processesCount);
+ }
+
+ private string GetProfile()
+ {
+ string result;
+ if (Windows && Production)
+ result = nameof(Production);
+ else if (Windows && Staging)
+ result = nameof(Staging);
+ else if (Windows && Development)
+ result = nameof(Development);
+ else if (Linux && Production)
+ result = nameof(Name.LinuxProduction);
+ else if (Linux && Staging)
+ result = nameof(Name.LinuxStaging);
+ else if (Linux && Development)
+ result = nameof(Name.LinuxDevelopment);
+ else if (OSX && Production)
+ result = nameof(Name.OSXProduction);
+ else if (OSX && Staging)
+ result = nameof(Name.OSXStaging);
+ else if (OSX && Development)
+ result = nameof(Name.OSXDevelopment);
+ else
+ throw new Exception();
+ return result;
+ }
+
+ private string GetAppSettingsFileName(int? processesCount)
+ {
+ string result;
+ if (Production)
+ {
+ if (processesCount is null)
+ result = "appsettings.json";
+ else
+ result = $"appsettings.{processesCount}.json";
+ }
+ else
+ {
+ string environment;
+ if (Staging)
+ environment = nameof(Staging);
+ else if (Development)
+ environment = nameof(Development);
+ else
+ throw new Exception();
+ if (processesCount is null)
+ result = $"appsettings.{environment}.json";
+ else
+ result = $"appsettings.{environment}.{processesCount}.json";
+ }
+ return result;
+ }
+
+ public static string GetEnvironmentName(IsEnvironment isEnvironment)
+ {
+ string result;
+ if (isEnvironment.Windows)
+ result = nameof(Windows);
+ else if (isEnvironment.Linux)
+ result = nameof(Linux);
+ else if (isEnvironment.OSX)
+ result = nameof(OSX);
+ else
+ throw new Exception();
+ return result;
+ }
+
+}
\ No newline at end of file
diff --git a/Adaptation/FileHandlers/RijndaelEncryption/FileRead.cs b/Adaptation/FileHandlers/RijndaelEncryption/FileRead.cs
index df7367b..a926727 100644
--- a/Adaptation/FileHandlers/RijndaelEncryption/FileRead.cs
+++ b/Adaptation/FileHandlers/RijndaelEncryption/FileRead.cs
@@ -1,4 +1,5 @@
using Adaptation.Eaf.Management.ConfigurationData.CellAutomation;
+using Adaptation.FileHandlers.MapEafDrives;
using Adaptation.Ifx.Eaf.EquipmentConnector.File.Configuration;
using Adaptation.Shared;
using Adaptation.Shared.Duplicator;
@@ -8,142 +9,117 @@ using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
-using System.Linq;
using System.Text.Json;
-namespace Adaptation.FileHandlers.RijndaelEncryption
+namespace Adaptation.FileHandlers.RijndaelEncryption;
+
+public class FileRead : Shared.FileRead, IFileRead
{
- public class FileRead : Shared.FileRead, IFileRead
+ private readonly AppSettings _AppSettings;
+
+ public FileRead(ISMTP smtp, Dictionary fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList modelObjectParameters, string equipmentDictionaryName, Dictionary> dummyRuns, Dictionary> staticRuns, bool useCyclicalForDescription, bool isEAFHosted) :
+ base(new Description(), true, smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, staticRuns, useCyclicalForDescription, isEAFHosted)
{
-
- private readonly AppSettings _AppSettings;
-
- public FileRead(ISMTP smtp, Dictionary fileParameter, string cellInstanceName, string cellInstanceConnectionName, FileConnectorConfiguration fileConnectorConfiguration, string equipmentTypeName, string parameterizedModelObjectDefinitionType, IList modelObjectParameters, string equipmentDictionaryName, Dictionary> dummyRuns, bool useCyclicalForDescription, bool isEAFHosted, int hyphenXToArchive, int hyphenIsArchive) :
- base(new Description(), true, smtp, fileParameter, cellInstanceName, cellInstanceConnectionName, fileConnectorConfiguration, equipmentTypeName, parameterizedModelObjectDefinitionType, modelObjectParameters, equipmentDictionaryName, dummyRuns, useCyclicalForDescription, isEAFHosted, hyphenXToArchive, hyphenIsArchive)
+ _MinFileLength = 10;
+ _NullData = string.Empty;
+ _Logistics = new(this);
+ if (_FileParameter is null)
+ throw new Exception(cellInstanceConnectionName);
+ if (_ModelObjectParameterDefinitions is null)
+ throw new Exception(cellInstanceConnectionName);
+ if (isEAFHosted)
{
- _MinFileLength = 10;
- _NullData = string.Empty;
- _Logistics = new Logistics(this);
- if (_FileParameter is null)
- throw new Exception(cellInstanceConnectionName);
- if (_ModelObjectParameterDefinitions is null)
- throw new Exception(cellInstanceConnectionName);
- if (isEAFHosted)
- {
- IsEnvironment isEnvironment = new(processesCount: null, nullASPNetCoreEnvironmentIsDevelopment: Debugger.IsAttached, nullASPNetCoreEnvironmentIsProduction: !Debugger.IsAttached);
- IConfigurationBuilder configurationBuilder = new ConfigurationBuilder()
- .AddEnvironmentVariables()
- .AddJsonFile(isEnvironment.AppSettingsFileName, optional: false, reloadOnChange: true);
- IConfigurationRoot configurationRoot = configurationBuilder.Build();
- _AppSettings = new AppSettings();
- configurationRoot.Bind(_AppSettings);
- }
+ IsEnvironment isEnvironment = new(processesCount: null, nullASPNetCoreEnvironmentIsDevelopment: Debugger.IsAttached, nullASPNetCoreEnvironmentIsProduction: !Debugger.IsAttached);
+ IConfigurationBuilder configurationBuilder = new ConfigurationBuilder()
+ .AddEnvironmentVariables()
+ .AddJsonFile(isEnvironment.AppSettingsFileName, optional: false, reloadOnChange: true);
+ IConfigurationRoot configurationRoot = configurationBuilder.Build();
+ _AppSettings = new AppSettings();
+ configurationRoot.Bind(_AppSettings);
}
+ }
- void IFileRead.Move(Tuple> extractResults, Exception exception)
+ void IFileRead.Move(Tuple> extractResults, Exception exception) => Move(extractResults);
+
+ void IFileRead.WaitForThread() => WaitForThread(thread: null, threadExceptions: null);
+
+ string IFileRead.GetEventDescription()
+ {
+ string result = _Description.GetEventDescription();
+ return result;
+ }
+
+ List IFileRead.GetHeaderNames()
+ {
+ List results = _Description.GetHeaderNames();
+ return results;
+ }
+
+ string[] IFileRead.Move(Tuple> extractResults, string to, string from, string resolvedFileLocation, Exception exception)
+ {
+ string[] results = Move(extractResults, to, from, resolvedFileLocation, exception);
+ return results;
+ }
+
+ JsonProperty[] IFileRead.GetDefault()
+ {
+ JsonProperty[] results = _Description.GetDefault(this, _Logistics);
+ return results;
+ }
+
+ Dictionary IFileRead.GetDisplayNamesJsonElement()
+ {
+ Dictionary results = _Description.GetDisplayNamesJsonElement(this);
+ return results;
+ }
+
+ List IFileRead.GetDescriptions(IFileRead fileRead, List tests, IProcessData processData)
+ {
+ List results = _Description.GetDescriptions(fileRead, _Logistics, tests, processData);
+ return results;
+ }
+
+ Tuple> IFileRead.GetExtractResult(string reportFullPath, string eventName)
+ {
+ Tuple> results;
+ if (string.IsNullOrEmpty(eventName))
+ throw new Exception();
+ _ReportFullPath = reportFullPath;
+ DateTime dateTime = DateTime.Now;
+ results = GetExtractResult(reportFullPath, dateTime);
+ if (results.Item3 is null)
+ results = new Tuple>(results.Item1, Array.Empty(), JsonSerializer.Deserialize("[]"), results.Item4);
+ if (results.Item3.Length > 0 && _IsEAFHosted)
+ WritePDSF(this, results.Item3);
+ UpdateLastTicksDuration(DateTime.Now.Ticks - dateTime.Ticks);
+ return results;
+ }
+
+ Tuple> IFileRead.ReExtract()
+ {
+ Tuple> results;
+ List headerNames = _Description.GetHeaderNames();
+ Dictionary keyValuePairs = _Description.GetDisplayNamesJsonElement(this);
+ results = ReExtract(this, headerNames, keyValuePairs);
+ return results;
+ }
+
+ private Tuple> GetExtractResult(string reportFullPath, DateTime dateTime)
+ {
+ Tuple> results = new(string.Empty, null, null, new List());
+ string[] lines = File.ReadAllLines(reportFullPath);
+ for (int i = 0; i < lines.Length; i++)
{
- Move(this, extractResults, exception);
+ if (string.IsNullOrEmpty(lines[i]) || lines[i].Contains("\t"))
+ continue;
+ if (Shared.RijndaelEncryption.IsBase64String(lines[i]))
+ lines[i] = string.Concat(lines[i], '\t', dateTime.Ticks, '\t', Shared.RijndaelEncryption.Decrypt(lines[i], _AppSettings.Company));
+ else
+ lines[i] = string.Concat(lines[i], '\t', dateTime.Ticks, '\t', Shared.RijndaelEncryption.Encrypt(lines[i], _AppSettings.Company));
}
-
- void IFileRead.WaitForThread()
- {
- WaitForThread(thread: null, threadExceptions: null);
- }
-
- string IFileRead.GetEventDescription()
- {
- string result = _Description.GetEventDescription();
- return result;
- }
-
- List IFileRead.GetHeaderNames()
- {
- List results = _Description.GetHeaderNames();
- return results;
- }
-
- string[] IFileRead.Move(Tuple> extractResults, string to, string from, string resolvedFileLocation, Exception exception)
- {
- string[] results = Move(extractResults, to, from, resolvedFileLocation, exception);
- return results;
- }
-
- JsonProperty[] IFileRead.GetDefault()
- {
- JsonProperty[] results = _Description.GetDefault(this, _Logistics);
- return results;
- }
-
- Dictionary IFileRead.GetDisplayNamesJsonElement()
- {
- Dictionary results = _Description.GetDisplayNamesJsonElement(this);
- return results;
- }
-
- List IFileRead.GetDescriptions(IFileRead fileRead, List tests, IProcessData processData)
- {
- List results = _Description.GetDescriptions(fileRead, _Logistics, tests, processData);
- return results;
- }
-
- Tuple> IFileRead.GetExtractResult(string reportFullPath, string eventName)
- {
- Tuple> results;
- if (string.IsNullOrEmpty(eventName))
- throw new Exception();
- _ReportFullPath = reportFullPath;
- DateTime dateTime = DateTime.Now;
- results = GetExtractResult(reportFullPath, dateTime);
- if (results.Item3 is null)
- results = new Tuple>(results.Item1, new Test[] { }, JsonSerializer.Deserialize("[]"), results.Item4);
- if (results.Item3.Length > 0 && _IsEAFHosted)
- WritePDSF(this, results.Item3);
- UpdateLastTicksDuration(DateTime.Now.Ticks - dateTime.Ticks);
- return results;
- }
-
- Tuple> IFileRead.ReExtract()
- {
- Tuple> results;
- List headerNames = _Description.GetHeaderNames();
- Dictionary keyValuePairs = _Description.GetDisplayNamesJsonElement(this);
- results = ReExtract(this, headerNames, keyValuePairs);
- return results;
- }
-
- void IFileRead.CheckTests(Test[] tests, bool extra)
- {
- throw new Exception(string.Concat("Not ", nameof(_IsDuplicator)));
- }
-
- void IFileRead.MoveArchive()
- {
- throw new Exception(string.Concat("Not ", nameof(_IsDuplicator)));
- }
-
- void IFileRead.Callback(object state)
- {
- throw new Exception(string.Concat("Not ", nameof(_IsDuplicator)));
- }
-
- private Tuple> GetExtractResult(string reportFullPath, DateTime dateTime)
- {
- Tuple> results = new(string.Empty, null, null, new List());
- string[] lines = File.ReadAllLines(reportFullPath);
- for (int i = 0; i < lines.Length; i++)
- {
- if (string.IsNullOrEmpty(lines[i]) || lines[i].Contains('\t'))
- continue;
- if (Shared.RijndaelEncryption.IsBase64String(lines[i]))
- lines[i] = string.Concat(lines[i], '\t', dateTime.Ticks, '\t', Shared.RijndaelEncryption.Decrypt(lines[i], _AppSettings.Company));
- else
- lines[i] = string.Concat(lines[i], '\t', dateTime.Ticks, '\t', Shared.RijndaelEncryption.Encrypt(lines[i], _AppSettings.Company));
- }
- File.WriteAllLines(reportFullPath, lines);
- return results;
- }
-
+ File.WriteAllLines(reportFullPath, lines);
+ return results;
}
}
\ No newline at end of file
diff --git a/Adaptation/Ifx/Eaf/Common/Configuration/ConnectionSetting.cs b/Adaptation/Ifx/Eaf/Common/Configuration/ConnectionSetting.cs
index b6cb4b8..5a62594 100644
--- a/Adaptation/Ifx/Eaf/Common/Configuration/ConnectionSetting.cs
+++ b/Adaptation/Ifx/Eaf/Common/Configuration/ConnectionSetting.cs
@@ -1,13 +1,17 @@
-namespace Adaptation.Ifx.Eaf.Common.Configuration
-{
- [System.Runtime.Serialization.DataContractAttribute]
- public class ConnectionSetting
- {
- public ConnectionSetting(string name, string value) { }
+namespace Adaptation.Ifx.Eaf.Common.Configuration;
+
+[System.Runtime.Serialization.DataContract]
+public class ConnectionSetting
+{
+
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
+
+ public ConnectionSetting(string name, string value) { }
+
+ [System.Runtime.Serialization.DataMember]
+ public string Name { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string Value { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string Name { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string Value { get; set; }
- }
}
\ No newline at end of file
diff --git a/Adaptation/Ifx/Eaf/EquipmentConnector/File/Component/File.cs b/Adaptation/Ifx/Eaf/EquipmentConnector/File/Component/File.cs
index 4726692..1e5d6eb 100644
--- a/Adaptation/Ifx/Eaf/EquipmentConnector/File/Component/File.cs
+++ b/Adaptation/Ifx/Eaf/EquipmentConnector/File/Component/File.cs
@@ -1,19 +1,23 @@
using System;
using System.Collections.Generic;
-namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Component
+namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Component;
+
+public class File
{
- public class File
- {
- public File(string filePath) { throw new NotImplementedException(); }
- public File(string filePath, DateTime timeFileFound) { throw new NotImplementedException(); }
- public string Path { get; }
- public DateTime TimeFound { get; }
- public bool IsErrorFile { get; }
- public Dictionary ContentParameters { get; }
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
+
+ public File(string filePath) => throw new NotImplementedException();
+ public File(string filePath, DateTime timeFileFound) => throw new NotImplementedException();
+
+ public string Path { get; }
+ public DateTime TimeFound { get; }
+ public bool IsErrorFile { get; }
+ public Dictionary ContentParameters { get; }
+
+ public File UpdateContentParameters(Dictionary contentParameters) => throw new NotImplementedException();
+ public File UpdateParsingStatus(bool isErrorFile) => throw new NotImplementedException();
- public File UpdateContentParameters(Dictionary contentParameters) { throw new NotImplementedException(); }
- public File UpdateParsingStatus(bool isErrorFile) { throw new NotImplementedException(); }
- }
}
\ No newline at end of file
diff --git a/Adaptation/Ifx/Eaf/EquipmentConnector/File/Component/FilePathGenerator.cs b/Adaptation/Ifx/Eaf/EquipmentConnector/File/Component/FilePathGenerator.cs
index 561725e..5ab689e 100644
--- a/Adaptation/Ifx/Eaf/EquipmentConnector/File/Component/FilePathGenerator.cs
+++ b/Adaptation/Ifx/Eaf/EquipmentConnector/File/Component/FilePathGenerator.cs
@@ -2,34 +2,39 @@
using System;
using System.Collections.Generic;
-namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Component
+namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Component;
+
+public class FilePathGenerator
{
- public class FilePathGenerator
- {
- public const char PLACEHOLDER_IDENTIFIER = '%';
- public const char PLACEHOLDER_SEPARATOR = ':';
- public const string PLACEHOLDER_NOT_AVAILABLE = "NA";
- public const string PLACEHOLDER_ORIGINAL_FILE_NAME = "OriginalFileName";
- public const string PLACEHOLDER_ORIGINAL_FILE_EXTENSION = "OriginalFileExtension";
- public const string PLACEHOLDER_DATE_TIME = "DateTime";
- public const string PLACEHOLDER_SUB_FOLDER = "SubFolder";
- public const string PLACEHOLDER_CELL_NAME = "CellName";
- public FilePathGenerator(FileConnectorConfiguration config, Dictionary customPattern = null) { throw new NotImplementedException(); }
- public FilePathGenerator(FileConnectorConfiguration config, File file, bool isErrorFile = false, Dictionary customPattern = null) { throw new NotImplementedException(); }
- public FilePathGenerator(FileConnectorConfiguration config, string sourceFilePath, bool isErrorFile = false, Dictionary customPattern = null) { throw new NotImplementedException(); }
+#pragma warning disable CA1822
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
- protected string SubFolderPath { get; }
- protected FileConnectorConfiguration Configuration { get; }
- protected File File { get; }
- protected bool IsErrorFile { get; }
- protected string DefaultPlaceHolderValue { get; }
+ public const char PLACEHOLDER_IDENTIFIER = '%';
+ public const char PLACEHOLDER_SEPARATOR = ':';
+ public const string PLACEHOLDER_NOT_AVAILABLE = "NA";
+ public const string PLACEHOLDER_ORIGINAL_FILE_NAME = "OriginalFileName";
+ public const string PLACEHOLDER_ORIGINAL_FILE_EXTENSION = "OriginalFileExtension";
+ public const string PLACEHOLDER_DATE_TIME = "DateTime";
+ public const string PLACEHOLDER_SUB_FOLDER = "SubFolder";
+ public const string PLACEHOLDER_CELL_NAME = "CellName";
+
+ public FilePathGenerator(FileConnectorConfiguration config, Dictionary customPattern = null) => throw new NotImplementedException();
+ public FilePathGenerator(FileConnectorConfiguration config, File file, bool isErrorFile = false, Dictionary customPattern = null) => throw new NotImplementedException();
+ public FilePathGenerator(FileConnectorConfiguration config, string sourceFilePath, bool isErrorFile = false, Dictionary customPattern = null) => throw new NotImplementedException();
+
+ protected string SubFolderPath { get; }
+ protected FileConnectorConfiguration Configuration { get; }
+ protected File File { get; }
+ protected bool IsErrorFile { get; }
+ protected string DefaultPlaceHolderValue { get; }
+
+ public string GetFullTargetPath() => throw new NotImplementedException();
+ public virtual string GetTargetFileName() => throw new NotImplementedException();
+ public string GetTargetFolder(bool throwExceptionIfNotExist = true) => throw new NotImplementedException();
+ protected virtual string GetSubFolder(string folderPattern, string subFolderPath) => throw new NotImplementedException();
+ protected virtual string PrepareFolderPath(string targetFolderPath, string subFolderPath) => throw new NotImplementedException();
+ protected string ReplacePlaceholder(string inputPath) => throw new NotImplementedException();
- public string GetFullTargetPath() { throw new NotImplementedException(); }
- public virtual string GetTargetFileName() { throw new NotImplementedException(); }
- public string GetTargetFolder(bool throwExceptionIfNotExist = true) { throw new NotImplementedException(); }
- protected virtual string GetSubFolder(string folderPattern, string subFolderPath) { throw new NotImplementedException(); }
- protected virtual string PrepareFolderPath(string targetFolderPath, string subFolderPath) { throw new NotImplementedException(); }
- protected string ReplacePlaceholder(string inputPath) { throw new NotImplementedException(); }
- }
}
\ No newline at end of file
diff --git a/Adaptation/Ifx/Eaf/EquipmentConnector/File/Configuration/FileConnectorConfiguration.cs b/Adaptation/Ifx/Eaf/EquipmentConnector/File/Configuration/FileConnectorConfiguration.cs
index 5eafd1c..05fe1cc 100644
--- a/Adaptation/Ifx/Eaf/EquipmentConnector/File/Configuration/FileConnectorConfiguration.cs
+++ b/Adaptation/Ifx/Eaf/EquipmentConnector/File/Configuration/FileConnectorConfiguration.cs
@@ -2,134 +2,133 @@
using System;
using System.Collections.Generic;
-namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Configuration
+namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.Configuration;
+
+[System.Runtime.Serialization.DataContract]
+public class FileConnectorConfiguration
{
- [System.Runtime.Serialization.DataContractAttribute]
- public class FileConnectorConfiguration
+ public const ulong IDLE_EVENT_WAIT_TIME_DEFAULT = 360;
+ public const ulong FILE_HANDLE_TIMEOUT_DEFAULT = 15;
+
+ [System.Runtime.Serialization.DataMember]
+ public virtual bool? TriggerOnChanged { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual long? PostProcessingRetries { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual bool? CopySourceFolderStructure { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public IfPostProcessingFailsEnum? IfPostProcessingFailsAction { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string AlternateTargetFolder { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public long? FileHandleTimeout { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public bool? DeleteEmptySourceSubFolders { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public long? IdleEventWaitTimeInSeconds { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string FileAgeThreshold { get; set; }
+ public bool? FolderAgeCheckIndividualSubFolders { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual ZipModeEnum? ZipMode { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public FileAgeFilterEnum? FileAgeFilterMode { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string ZipTargetFileName { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string ZipErrorTargetFileName { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public long? ZipFileSubFolderLevel { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string DefaultPlaceHolderValue { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public bool? UseZip64Mode { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public List ConnectionSettings { get; set; }
+ public string SourceDirectoryCloaking { get; set; }
+ public string FolderAgeThreshold { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual long? FileScanningIntervalInSeconds { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual bool? TriggerOnCreated { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual long? ZipFileTime { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string SourceFileLocation { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string SourceFileFilter { get; set; }
+ public List SourceFileFilters { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual bool? IncludeSubDirectories { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual FileScanningOptionEnum? FileScanningOption { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string TargetFileLocation { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string ErrorTargetFileLocation { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string TargetFileName { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual long? FileHandleWaitTime { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public IfFileExistEnum? IfFileExistAction { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public long? ConnectionRetryInterval { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public PreProcessingModeEnum? PreProcessingMode { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public PostProcessingModeEnum? PostProcessingMode { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public PostProcessingModeEnum? ErrorPostProcessingMode { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public virtual long? ZipFileAmount { get; set; }
+ [System.Runtime.Serialization.DataMember]
+ public string ErrorTargetFileName { get; set; }
+
+ public void Initialize() => throw new NotImplementedException();
+
+ public enum PostProcessingModeEnum
{
- public const ulong IDLE_EVENT_WAIT_TIME_DEFAULT = 360;
- public const ulong FILE_HANDLE_TIMEOUT_DEFAULT = 15;
-
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual bool? TriggerOnChanged { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual long? PostProcessingRetries { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual bool? CopySourceFolderStructure { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public IfPostProcessingFailsEnum? IfPostProcessingFailsAction { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string AlternateTargetFolder { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public long? FileHandleTimeout { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public bool? DeleteEmptySourceSubFolders { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public long? IdleEventWaitTimeInSeconds { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string FileAgeThreshold { get; set; }
- public bool? FolderAgeCheckIndividualSubFolders { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual ZipModeEnum? ZipMode { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public FileAgeFilterEnum? FileAgeFilterMode { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string ZipTargetFileName { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string ZipErrorTargetFileName { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public long? ZipFileSubFolderLevel { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string DefaultPlaceHolderValue { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public bool? UseZip64Mode { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public List ConnectionSettings { get; set; }
- public string SourceDirectoryCloaking { get; set; }
- public string FolderAgeThreshold { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual long? FileScanningIntervalInSeconds { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual bool? TriggerOnCreated { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual long? ZipFileTime { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string SourceFileLocation { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string SourceFileFilter { get; set; }
- public List SourceFileFilters { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual bool? IncludeSubDirectories { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual FileScanningOptionEnum? FileScanningOption { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string TargetFileLocation { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string ErrorTargetFileLocation { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string TargetFileName { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual long? FileHandleWaitTime { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public IfFileExistEnum? IfFileExistAction { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public long? ConnectionRetryInterval { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public PreProcessingModeEnum? PreProcessingMode { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public PostProcessingModeEnum? PostProcessingMode { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public PostProcessingModeEnum? ErrorPostProcessingMode { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public virtual long? ZipFileAmount { get; set; }
- [System.Runtime.Serialization.DataMemberAttribute]
- public string ErrorTargetFileName { get; set; }
-
- public void Initialize() { throw new NotImplementedException(); }
-
- public enum PostProcessingModeEnum
- {
- None = 0,
- Move = 1,
- Copy = 2,
- Rename = 3,
- Zip = 4,
- Delete = 5,
- MoveFolder = 6,
- CopyFolder = 7,
- DeleteFolder = 8
- }
- public enum PreProcessingModeEnum
- {
- None = 0,
- Process = 1
- }
- public enum IfFileExistEnum
- {
- Overwrite = 0,
- LeaveFiles = 1,
- Delete = 2
- }
- public enum IfPostProcessingFailsEnum
- {
- LeaveFiles = 0,
- Delete = 1
- }
- public enum FileScanningOptionEnum
- {
- FileWatcher = 0,
- TimeBased = 1
- }
- public enum ZipModeEnum
- {
- ZipByAmountOrTime = 0,
- ZipByFileName = 1,
- ZipBySubFolderName = 2
- }
- public enum FileAgeFilterEnum
- {
- IgnoreNewer = 0,
- IgnoreOlder = 1
- }
+ None = 0,
+ Move = 1,
+ Copy = 2,
+ Rename = 3,
+ Zip = 4,
+ Delete = 5,
+ MoveFolder = 6,
+ CopyFolder = 7,
+ DeleteFolder = 8
+ }
+ public enum PreProcessingModeEnum
+ {
+ None = 0,
+ Process = 1
+ }
+ public enum IfFileExistEnum
+ {
+ Overwrite = 0,
+ LeaveFiles = 1,
+ Delete = 2
+ }
+ public enum IfPostProcessingFailsEnum
+ {
+ LeaveFiles = 0,
+ Delete = 1
+ }
+ public enum FileScanningOptionEnum
+ {
+ FileWatcher = 0,
+ TimeBased = 1
+ }
+ public enum ZipModeEnum
+ {
+ ZipByAmountOrTime = 0,
+ ZipByFileName = 1,
+ ZipBySubFolderName = 2
+ }
+ public enum FileAgeFilterEnum
+ {
+ IgnoreNewer = 0,
+ IgnoreOlder = 1
}
}
\ No newline at end of file
diff --git a/Adaptation/Ifx/Eaf/EquipmentConnector/File/SelfDescription/FileConnectorParameterTypeDefinitionProvider.cs b/Adaptation/Ifx/Eaf/EquipmentConnector/File/SelfDescription/FileConnectorParameterTypeDefinitionProvider.cs
index 0928ecf..57475d5 100644
--- a/Adaptation/Ifx/Eaf/EquipmentConnector/File/SelfDescription/FileConnectorParameterTypeDefinitionProvider.cs
+++ b/Adaptation/Ifx/Eaf/EquipmentConnector/File/SelfDescription/FileConnectorParameterTypeDefinitionProvider.cs
@@ -1,14 +1,18 @@
-using Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes;
-using System;
+using Adaptation.Eaf.EquipmentCore.SelfDescription.ParameterTypes;
using System.Collections.Generic;
-namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.SelfDescription
-{
- public class FileConnectorParameterTypeDefinitionProvider
- {
- public FileConnectorParameterTypeDefinitionProvider() { }
+namespace Adaptation.Ifx.Eaf.EquipmentConnector.File.SelfDescription;
+
+public class FileConnectorParameterTypeDefinitionProvider
+{
+
+#pragma warning disable CA1822
+#pragma warning disable CA2254
+#pragma warning disable IDE0060
+
+ public FileConnectorParameterTypeDefinitionProvider() { }
+
+ public IEnumerable GetAllParameterTypeDefinition() => null;
+ public ParameterTypeDefinition GetParameterTypeDefinition(string name) => null;
- public IEnumerable GetAllParameterTypeDefinition() { return null; }
- public ParameterTypeDefinition GetParameterTypeDefinition(string name) { return null; }
- }
}
\ No newline at end of file
diff --git a/Adaptation/PeerGroup/GCL/Annotations/NotNullAttribute.cs b/Adaptation/PeerGroup/GCL/Annotations/NotNullAttribute.cs
index c4e64f0..e32df4c 100644
--- a/Adaptation/PeerGroup/GCL/Annotations/NotNullAttribute.cs
+++ b/Adaptation/PeerGroup/GCL/Annotations/NotNullAttribute.cs
@@ -1,10 +1,9 @@
using System;
-namespace Adaptation.PeerGroup.GCL.Annotations
+namespace Adaptation.PeerGroup.GCL.Annotations;
+
+[AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.Delegate, AllowMultiple = false, Inherited = true)]
+public sealed class NotNullAttribute : Attribute
{
- [AttributeUsage(AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.Delegate, AllowMultiple = false, Inherited = true)]
- public sealed class NotNullAttribute : Attribute
- {
- public NotNullAttribute() { }
- }
+ public NotNullAttribute() { }
}
\ No newline at end of file
diff --git a/Adaptation/PeerGroup/GCL/SecsDriver/HsmsConnectionMode.cs b/Adaptation/PeerGroup/GCL/SecsDriver/HsmsConnectionMode.cs
index 82138e2..af1ea65 100644
--- a/Adaptation/PeerGroup/GCL/SecsDriver/HsmsConnectionMode.cs
+++ b/Adaptation/PeerGroup/GCL/SecsDriver/HsmsConnectionMode.cs
@@ -1,8 +1,7 @@
-namespace Adaptation.PeerGroup.GCL.SecsDriver
+namespace Adaptation.PeerGroup.GCL.SecsDriver;
+
+public enum HsmsConnectionMode
{
- public enum HsmsConnectionMode
- {
- Active = 0,
- Passive = 1
- }
+ Active = 0,
+ Passive = 1
}
\ No newline at end of file
diff --git a/Adaptation/PeerGroup/GCL/SecsDriver/HsmsSessionMode.cs b/Adaptation/PeerGroup/GCL/SecsDriver/HsmsSessionMode.cs
index b52c7a3..eecd8b7 100644
--- a/Adaptation/PeerGroup/GCL/SecsDriver/HsmsSessionMode.cs
+++ b/Adaptation/PeerGroup/GCL/SecsDriver/HsmsSessionMode.cs
@@ -1,8 +1,7 @@
-namespace Adaptation.PeerGroup.GCL.SecsDriver
+namespace Adaptation.PeerGroup.GCL.SecsDriver;
+
+public enum HsmsSessionMode
{
- public enum HsmsSessionMode
- {
- MultiSession = 0,
- SingleSession = 1
- }
+ MultiSession = 0,
+ SingleSession = 1
}
\ No newline at end of file
diff --git a/Adaptation/PeerGroup/GCL/SecsDriver/SecsTransportType.cs b/Adaptation/PeerGroup/GCL/SecsDriver/SecsTransportType.cs
index 81181f0..5e68d64 100644
--- a/Adaptation/PeerGroup/GCL/SecsDriver/SecsTransportType.cs
+++ b/Adaptation/PeerGroup/GCL/SecsDriver/SecsTransportType.cs
@@ -1,8 +1,7 @@
-namespace Adaptation.PeerGroup.GCL.SecsDriver
+namespace Adaptation.PeerGroup.GCL.SecsDriver;
+
+public enum SecsTransportType
{
- public enum SecsTransportType
- {
- HSMS = 0,
- Serial = 1
- }
+ HSMS = 0,
+ Serial = 1
}
\ No newline at end of file
diff --git a/Adaptation/PeerGroup/GCL/SecsDriver/SerialBaudRate.cs b/Adaptation/PeerGroup/GCL/SecsDriver/SerialBaudRate.cs
index 4511319..a5bd2c3 100644
--- a/Adaptation/PeerGroup/GCL/SecsDriver/SerialBaudRate.cs
+++ b/Adaptation/PeerGroup/GCL/SecsDriver/SerialBaudRate.cs
@@ -1,16 +1,15 @@
-namespace Adaptation.PeerGroup.GCL.SecsDriver
+namespace Adaptation.PeerGroup.GCL.SecsDriver;
+
+public enum SerialBaudRate
{
- public enum SerialBaudRate
- {
- Baud9600 = 0,
- Baud19200 = 1,
- Baud4800 = 2,
- Baud2400 = 3,
- Baud1200 = 4,
- Baud300 = 5,
- Baud150 = 6,
- Baud38400 = 7,
- Baud57600 = 8,
- Baud115200 = 9
- }
+ Baud9600 = 0,
+ Baud19200 = 1,
+ Baud4800 = 2,
+ Baud2400 = 3,
+ Baud1200 = 4,
+ Baud300 = 5,
+ Baud150 = 6,
+ Baud38400 = 7,
+ Baud57600 = 8,
+ Baud115200 = 9
}
\ No newline at end of file
diff --git a/Adaptation/Shared/AppSettings.cs b/Adaptation/Shared/AppSettings.cs
index 82ab47c..b443673 100644
--- a/Adaptation/Shared/AppSettings.cs
+++ b/Adaptation/Shared/AppSettings.cs
@@ -1,8 +1,7 @@
-namespace Adaptation.Shared
+namespace Adaptation.Shared;
+
+public class AppSettings : Properties.IAppSettings
{
- public class AppSettings : Methods.IAppSettings
- {
- public string Company { get; set; }
- public Drive[] Drives { get; set; }
- }
+ public string Company { get; set; }
+ public Drive[] Drives { get; set; }
}
\ No newline at end of file
diff --git a/Adaptation/Shared/Drive.cs b/Adaptation/Shared/Drive.cs
index a8f7a22..cf3103b 100644
--- a/Adaptation/Shared/Drive.cs
+++ b/Adaptation/Shared/Drive.cs
@@ -3,77 +3,71 @@ using System;
using System.Diagnostics;
using System.Text;
-namespace Adaptation.Shared
+namespace Adaptation.Shared;
+
+public class Drive : Methods.IDrive
{
+ public bool Use { get; set; }
+ public string Letter { get; set; }
+ public string Share { get; set; }
+ public string User { get; set; }
+ public string Password { get; set; }
- public class Drive : Methods.IDrive
+ void Methods.IDrive.MapEafDrives(ILog log, Properties.IAppSettings appSettings) => MapEafDrives(log, appSettings);
+
+ public static void MapEafDrives(ILog log, Properties.IAppSettings appSettings)
{
- public bool Use { get; set; }
- public string Letter { get; set; }
- public string Share { get; set; }
- public string User { get; set; }
- public string Password { get; set; }
-
- void Methods.IDrive.MapEafDrives(ILog log, Properties.IAppSettings appSettings)
+ Process process;
+ string decrypted;
+ string arguments;
+ string[] segments;
+ string standardError;
+ string standardOutput;
+ string fileName = "net";
+ StringBuilder stringBuilder = new();
+ foreach (Drive drive in appSettings.Drives)
{
- MapEafDrives(log, appSettings);
- }
-
- public static void MapEafDrives(ILog log, Properties.IAppSettings appSettings)
- {
- Process process;
- string decrypted;
- string arguments;
- string[] segments;
- string standardError;
- string standardOutput;
- string fileName = "net";
- StringBuilder stringBuilder = new();
- foreach (Drive drive in appSettings.Drives)
+ if (!drive.Use)
+ continue;
+ if (string.IsNullOrEmpty(drive.Password))
+ decrypted = string.Empty;
+ else
+ decrypted = RijndaelEncryption.Decrypt(drive.Password, appSettings.Company);
+ arguments = $"use {drive.Letter}: \"{drive.Share}\" /p:yes /user:{drive.User} {decrypted}";
+ _ = stringBuilder.Clear();
+ segments = arguments.Split(' ');
+ for (int j = 0; j < segments.Length - 1; j++)
+ _ = stringBuilder.Append(segments[j]).Append(' ');
+ log.Info($"// {stringBuilder}");
+ ProcessStartInfo processStartInfo = new(fileName, arguments)
{
- if (!drive.Use)
- continue;
- if (string.IsNullOrEmpty(drive.Password))
- decrypted = string.Empty;
- else
- decrypted = RijndaelEncryption.Decrypt(drive.Password, appSettings.Company);
- arguments = $"use {drive.Letter}: \"{drive.Share}\" /p:yes /user:{drive.User} {decrypted}";
- stringBuilder.Clear();
- segments = arguments.Split(' ');
- for (int j = 0; j < segments.Length - 1; j++)
- stringBuilder.Append(segments[j]).Append(' ');
- log.Info($"// {stringBuilder}");
- ProcessStartInfo processStartInfo = new(fileName, arguments)
+ RedirectStandardError = true,
+ RedirectStandardOutput = true,
+ UseShellExecute = false
+ };
+ try
+ {
+ process = Process.Start(processStartInfo);
+ for (int j = 1; j < 45; j++)
{
- RedirectStandardError = true,
- RedirectStandardOutput = true,
- UseShellExecute = false
- };
- try
- {
- process = Process.Start(processStartInfo);
- for (int j = 1; j < 45; j++)
- {
- process.WaitForExit(1000);
- if (process.HasExited)
- break;
- }
- if (!process.HasExited)
- log.Error("// Never exited!");
- else
- {
- standardError = process.StandardError.ReadToEnd();
- standardOutput = process.StandardOutput.ReadToEnd();
- log.Info($"// {standardError}{Environment.NewLine}{Environment.NewLine}{"// "}{standardOutput}");
- }
+ _ = process.WaitForExit(1000);
+ if (process.HasExited)
+ break;
}
- catch (Exception ex)
+ if (!process.HasExited)
+ log.Error("// Never exited!");
+ else
{
- log.Error("Error:", ex);
+ standardError = process.StandardError.ReadToEnd();
+ standardOutput = process.StandardOutput.ReadToEnd();
+ log.Info($"// {standardError}{Environment.NewLine}{Environment.NewLine}{"// "}{standardOutput}");
}
}
+ catch (Exception ex)
+ {
+ log.Error("Error:", ex);
+ }
}
-
}
}
\ No newline at end of file
diff --git a/Adaptation/Shared/Duplicator/Description.cs b/Adaptation/Shared/Duplicator/Description.cs
index 82aa03d..abbb7a4 100644
--- a/Adaptation/Shared/Duplicator/Description.cs
+++ b/Adaptation/Shared/Duplicator/Description.cs
@@ -4,145 +4,139 @@ using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
-namespace Adaptation.Shared.Duplicator
+namespace Adaptation.Shared.Duplicator;
+
+public class Description : IDescription, Properties.IDescription
{
- public class Description : IDescription, Properties.IDescription
+ public int Test { get; set; }
+ public int Count { get; set; }
+ public int Index { get; set; }
+ //
+ public string EventName { get; set; }
+ public string NullData { get; set; }
+ public string JobID { get; set; }
+ public string Sequence { get; set; }
+ public string MesEntity { get; set; }
+ public string ReportFullPath { get; set; }
+ public string ProcessJobID { get; set; }
+ public string MID { get; set; }
+ public string Date { get; set; } //2021-10-23
+
+ string IDescription.GetEventDescription() => "File Has been read and parsed";
+
+ List IDescription.GetNames(IFileRead fileRead, Logistics logistics)
{
+ List results = new();
+ IDescription description = GetDefault(fileRead, logistics);
+ string json = JsonSerializer.Serialize(description, description.GetType());
+ object @object = JsonSerializer.Deserialize