diff --git a/AnalysisServiceTests/obj/AnalysisServiceTests.csproj.nuget.dgspec.json b/AnalysisServiceTests/obj/AnalysisServiceTests.csproj.nuget.dgspec.json index a168f0d..2c558be 100644 --- a/AnalysisServiceTests/obj/AnalysisServiceTests.csproj.nuget.dgspec.json +++ b/AnalysisServiceTests/obj/AnalysisServiceTests.csproj.nuget.dgspec.json @@ -93,7 +93,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100\\RuntimeIdentifierGraph.json" } } }, @@ -181,7 +181,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100\\RuntimeIdentifierGraph.json" } } } diff --git a/AnalysisServiceTests/obj/AnalysisServiceTests.csproj.nuget.g.props b/AnalysisServiceTests/obj/AnalysisServiceTests.csproj.nuget.g.props index eaea055..4512957 100644 --- a/AnalysisServiceTests/obj/AnalysisServiceTests.csproj.nuget.g.props +++ b/AnalysisServiceTests/obj/AnalysisServiceTests.csproj.nuget.g.props @@ -7,7 +7,7 @@ $(UserProfile)\.nuget\packages\ C:\Users\gautam\.nuget\packages\ PackageReference - 6.7.0 + 6.8.0 diff --git a/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.AssemblyInfo.cs b/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.AssemblyInfo.cs index 3778f0e..4214e14 100644 --- a/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.AssemblyInfo.cs +++ b/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.AssemblyInfo.cs @@ -1,6 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. diff --git a/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.AssemblyInfoInputs.cache b/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.AssemblyInfoInputs.cache index 0846559..65b211d 100644 --- a/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.AssemblyInfoInputs.cache +++ b/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.AssemblyInfoInputs.cache @@ -1 +1 @@ -15f9fb8efb0fbdd4d69a9fc48ca9c9b35ba74174 +71537b33f5a14f9471225137a272c4ebd4c805394bc0180c1c917e7bcd4a8689 diff --git a/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.GeneratedMSBuildEditorConfig.editorconfig b/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.GeneratedMSBuildEditorConfig.editorconfig index 1a9fe6a..0cc6876 100644 --- a/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.GeneratedMSBuildEditorConfig.editorconfig +++ b/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.GeneratedMSBuildEditorConfig.editorconfig @@ -9,3 +9,5 @@ build_property.EnforceExtendedAnalyzerRules = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = AnalysisServiceTests build_property.ProjectDir = C:\Users\gautam\Desktop\Project 5\Project Code\AnalysisServiceTests\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.assets.cache b/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.assets.cache index d4448fb..b63d2c8 100644 Binary files a/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.assets.cache and b/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.assets.cache differ diff --git a/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.csproj.AssemblyReference.cache b/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.csproj.AssemblyReference.cache index 1c80014..91d6eb2 100644 Binary files a/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.csproj.AssemblyReference.cache and b/AnalysisServiceTests/obj/Debug/net6.0/AnalysisServiceTests.csproj.AssemblyReference.cache differ diff --git a/AnalysisServiceTests/obj/project.assets.json b/AnalysisServiceTests/obj/project.assets.json index 7766a5b..bbf67d7 100644 --- a/AnalysisServiceTests/obj/project.assets.json +++ b/AnalysisServiceTests/obj/project.assets.json @@ -3012,7 +3012,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100\\RuntimeIdentifierGraph.json" } } } diff --git a/AnalysisServiceTests/obj/project.nuget.cache b/AnalysisServiceTests/obj/project.nuget.cache index 9274dd8..737e55f 100644 --- a/AnalysisServiceTests/obj/project.nuget.cache +++ b/AnalysisServiceTests/obj/project.nuget.cache @@ -1,6 +1,6 @@ { "version": 2, - "dgSpecHash": "CTu4U7fERPSqCJUbHoQutxHGBhEDqLzoMYe7KYE7OfSgM+dJRV436XZ6wljLLEPcMjvejBPT5zxBpWZHJEsc3A==", + "dgSpecHash": "37VdGOQ+dgz6RCKosbMrHdxMVwVB7oThiVMo7deV7pE5IC/5Nug+aAHfYQjZ7rV1PPwU5wvZtqEkhDIZ7uT/qg==", "success": true, "projectFilePath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\AnalysisServiceTests\\AnalysisServiceTests.csproj", "expectedPackageFiles": [ diff --git a/DatabaseAnalysisModuleTests/obj/DatabaseAnalysisModuleTests.csproj.nuget.dgspec.json b/DatabaseAnalysisModuleTests/obj/DatabaseAnalysisModuleTests.csproj.nuget.dgspec.json index 316c771..3049b7d 100644 --- a/DatabaseAnalysisModuleTests/obj/DatabaseAnalysisModuleTests.csproj.nuget.dgspec.json +++ b/DatabaseAnalysisModuleTests/obj/DatabaseAnalysisModuleTests.csproj.nuget.dgspec.json @@ -1,24 +1,20 @@ { "format": 1, "restore": { - "C:\\Users\\Minh\\Desktop\\Test_Cloning\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj": {} + "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj": {} }, "projects": { - "C:\\Users\\Minh\\Desktop\\Test_Cloning\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj": { + "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj": { "version": "1.0.0", "restore": { - "projectUniqueName": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj", + "projectUniqueName": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj", "projectName": "DatabaseAnalysisModuleTests", - "projectPath": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj", - "packagesPath": "C:\\Users\\Minh\\.nuget\\packages\\", - "outputPath": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\DatabaseAnalysisModuleTests\\obj\\", + "projectPath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj", + "packagesPath": "C:\\Users\\gautam\\.nuget\\packages\\", + "outputPath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\DatabaseAnalysisModuleTests\\obj\\", "projectStyle": "PackageReference", - "fallbackFolders": [ - "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" - ], "configFilePaths": [ - "C:\\Users\\Minh\\AppData\\Roaming\\NuGet\\NuGet.Config", - "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Users\\gautam\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" ], "originalTargetFrameworks": [ @@ -26,15 +22,14 @@ ], "sources": { "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, - "C:\\Program Files\\dotnet\\library-packs": {}, "https://api.nuget.org/v3/index.json": {} }, "frameworks": { "net6.0": { "targetAlias": "net6.0", "projectReferences": { - "C:\\Users\\Minh\\Desktop\\Test_Cloning\\Server_Side\\Server_Side.csproj": { - "projectPath": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\Server_Side\\Server_Side.csproj" + "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\Server_Side\\Server_Side.csproj": { + "projectPath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\Server_Side\\Server_Side.csproj" } } } @@ -82,25 +77,21 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.403\\RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100\\RuntimeIdentifierGraph.json" } } }, - "C:\\Users\\Minh\\Desktop\\Test_Cloning\\Server_Side\\Server_Side.csproj": { + "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\Server_Side\\Server_Side.csproj": { "version": "1.0.0", "restore": { - "projectUniqueName": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\Server_Side\\Server_Side.csproj", + "projectUniqueName": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\Server_Side\\Server_Side.csproj", "projectName": "Server_Side", - "projectPath": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\Server_Side\\Server_Side.csproj", - "packagesPath": "C:\\Users\\Minh\\.nuget\\packages\\", - "outputPath": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\Server_Side\\obj\\", + "projectPath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\Server_Side\\Server_Side.csproj", + "packagesPath": "C:\\Users\\gautam\\.nuget\\packages\\", + "outputPath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\Server_Side\\obj\\", "projectStyle": "PackageReference", - "fallbackFolders": [ - "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" - ], "configFilePaths": [ - "C:\\Users\\Minh\\AppData\\Roaming\\NuGet\\NuGet.Config", - "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Users\\gautam\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" ], "originalTargetFrameworks": [ @@ -108,7 +99,6 @@ ], "sources": { "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, - "C:\\Program Files\\dotnet\\library-packs": {}, "https://api.nuget.org/v3/index.json": {} }, "frameworks": { @@ -175,7 +165,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.403\\RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100\\RuntimeIdentifierGraph.json" } } } diff --git a/DatabaseAnalysisModuleTests/obj/DatabaseAnalysisModuleTests.csproj.nuget.g.props b/DatabaseAnalysisModuleTests/obj/DatabaseAnalysisModuleTests.csproj.nuget.g.props index 6c0e210..563602d 100644 --- a/DatabaseAnalysisModuleTests/obj/DatabaseAnalysisModuleTests.csproj.nuget.g.props +++ b/DatabaseAnalysisModuleTests/obj/DatabaseAnalysisModuleTests.csproj.nuget.g.props @@ -5,13 +5,12 @@ NuGet $(MSBuildThisFileDirectory)project.assets.json $(UserProfile)\.nuget\packages\ - C:\Users\Minh\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + C:\Users\gautam\.nuget\packages\ PackageReference - 6.7.0 + 6.8.0 - - + diff --git a/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.AssemblyInfoInputs.cache b/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.AssemblyInfoInputs.cache index bddce22..1dbd6c9 100644 --- a/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.AssemblyInfoInputs.cache +++ b/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.AssemblyInfoInputs.cache @@ -1 +1 @@ -3fb458e0c4aa14c066105d7bde4def9fd3e3abca +53102f49aa94b4d46d582c364e09db46738f10cdbc0b74eedec14f0275eef30d diff --git a/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.GeneratedMSBuildEditorConfig.editorconfig b/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.GeneratedMSBuildEditorConfig.editorconfig index 752d51e..c2fd849 100644 --- a/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.GeneratedMSBuildEditorConfig.editorconfig +++ b/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.GeneratedMSBuildEditorConfig.editorconfig @@ -9,3 +9,5 @@ build_property.EnforceExtendedAnalyzerRules = build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = DatabaseAnalysisModuleTests build_property.ProjectDir = C:\Users\gautam\Desktop\Project 5\Project Code\DatabaseAnalysisModuleTests\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.assets.cache b/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.assets.cache index 3fd56b9..4cfc3b1 100644 Binary files a/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.assets.cache and b/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.assets.cache differ diff --git a/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.csproj.AssemblyReference.cache b/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.csproj.AssemblyReference.cache index ac376e1..1320dd6 100644 Binary files a/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.csproj.AssemblyReference.cache and b/DatabaseAnalysisModuleTests/obj/Debug/net6.0/DatabaseAnalysisModuleTests.csproj.AssemblyReference.cache differ diff --git a/DatabaseAnalysisModuleTests/obj/project.assets.json b/DatabaseAnalysisModuleTests/obj/project.assets.json index 633098c..fc8841f 100644 --- a/DatabaseAnalysisModuleTests/obj/project.assets.json +++ b/DatabaseAnalysisModuleTests/obj/project.assets.json @@ -2923,24 +2923,19 @@ ] }, "packageFolders": { - "C:\\Users\\Minh\\.nuget\\packages\\": {}, - "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + "C:\\Users\\gautam\\.nuget\\packages\\": {} }, "project": { "version": "1.0.0", "restore": { - "projectUniqueName": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj", + "projectUniqueName": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj", "projectName": "DatabaseAnalysisModuleTests", - "projectPath": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj", - "packagesPath": "C:\\Users\\Minh\\.nuget\\packages\\", - "outputPath": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\DatabaseAnalysisModuleTests\\obj\\", + "projectPath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj", + "packagesPath": "C:\\Users\\gautam\\.nuget\\packages\\", + "outputPath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\DatabaseAnalysisModuleTests\\obj\\", "projectStyle": "PackageReference", - "fallbackFolders": [ - "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" - ], "configFilePaths": [ - "C:\\Users\\Minh\\AppData\\Roaming\\NuGet\\NuGet.Config", - "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Users\\gautam\\AppData\\Roaming\\NuGet\\NuGet.Config", "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" ], "originalTargetFrameworks": [ @@ -2948,15 +2943,14 @@ ], "sources": { "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, - "C:\\Program Files\\dotnet\\library-packs": {}, "https://api.nuget.org/v3/index.json": {} }, "frameworks": { "net6.0": { "targetAlias": "net6.0", "projectReferences": { - "C:\\Users\\Minh\\Desktop\\Test_Cloning\\Server_Side\\Server_Side.csproj": { - "projectPath": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\Server_Side\\Server_Side.csproj" + "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\Server_Side\\Server_Side.csproj": { + "projectPath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\Server_Side\\Server_Side.csproj" } } } @@ -3004,7 +2998,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.403\\RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100\\RuntimeIdentifierGraph.json" } } } diff --git a/DatabaseAnalysisModuleTests/obj/project.nuget.cache b/DatabaseAnalysisModuleTests/obj/project.nuget.cache index 04454a7..92b2d0d 100644 --- a/DatabaseAnalysisModuleTests/obj/project.nuget.cache +++ b/DatabaseAnalysisModuleTests/obj/project.nuget.cache @@ -1,51 +1,51 @@ { "version": 2, - "dgSpecHash": "uTauxbom2F2OkhPcRBXW9qSGVkUE6i9RTh352MQTfn3OpykJjvBQOymTzsTJXU+1AHo7o0tqHxxGesHVbbCLig==", + "dgSpecHash": "kHskaBhNYp41q+VpAMnxcGO45erIdNXztU5lzij3yLOqbcRXw9NPBOIldMniCz1dR/cD+mKce3/UNheZHMNsTw==", "success": true, - "projectFilePath": "C:\\Users\\Minh\\Desktop\\Test_Cloning\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj", + "projectFilePath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\DatabaseAnalysisModuleTests\\DatabaseAnalysisModuleTests.csproj", "expectedPackageFiles": [ - "C:\\Users\\Minh\\.nuget\\packages\\aspnetcoreratelimit\\5.0.0\\aspnetcoreratelimit.5.0.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\coverlet.collector\\3.2.0\\coverlet.collector.3.2.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\graphql\\7.6.1\\graphql.7.6.1.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\graphql-parser\\8.4.0\\graphql-parser.8.4.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\graphql.authorization\\7.0.0\\graphql.authorization.7.0.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\graphql.microsoftdi\\7.6.0\\graphql.microsoftdi.7.6.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\graphql.server.transports.aspnetcore\\7.6.0\\graphql.server.transports.aspnetcore.7.6.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\graphql.server.ui.voyager\\7.6.0\\graphql.server.ui.voyager.7.6.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\graphql.systemtextjson\\7.6.0\\graphql.systemtextjson.7.6.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.codecoverage\\17.5.0\\microsoft.codecoverage.17.5.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\6.0.0\\microsoft.extensions.caching.abstractions.6.0.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\6.0.0\\microsoft.extensions.dependencyinjection.abstractions.6.0.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\6.0.3\\microsoft.extensions.logging.abstractions.6.0.3.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.extensions.options\\6.0.0\\microsoft.extensions.options.6.0.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.extensions.primitives\\6.0.0\\microsoft.extensions.primitives.6.0.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.net.test.sdk\\17.5.0\\microsoft.net.test.sdk.17.5.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.netcore.platforms\\1.1.0\\microsoft.netcore.platforms.1.1.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.netcore.targets\\1.1.0\\microsoft.netcore.targets.1.1.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.testplatform.objectmodel\\17.5.0\\microsoft.testplatform.objectmodel.17.5.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\microsoft.testplatform.testhost\\17.5.0\\microsoft.testplatform.testhost.17.5.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\mstest.testadapter\\2.2.10\\mstest.testadapter.2.2.10.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\mstest.testframework\\2.2.10\\mstest.testframework.2.2.10.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\mysqlconnector\\2.2.7\\mysqlconnector.2.2.7.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\newtonsoft.json\\13.0.3\\newtonsoft.json.13.0.3.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\nuget.frameworks\\5.11.0\\nuget.frameworks.5.11.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\runtime.native.system\\4.3.0\\runtime.native.system.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.collections\\4.3.0\\system.collections.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.diagnostics.debug\\4.3.0\\system.diagnostics.debug.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.diagnostics.textwritertracelistener\\4.3.0\\system.diagnostics.textwritertracelistener.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.diagnostics.tracesource\\4.3.0\\system.diagnostics.tracesource.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.globalization\\4.3.0\\system.globalization.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.io\\4.3.0\\system.io.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.reflection\\4.3.0\\system.reflection.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.reflection.metadata\\1.6.0\\system.reflection.metadata.1.6.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.reflection.primitives\\4.3.0\\system.reflection.primitives.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.resources.resourcemanager\\4.3.0\\system.resources.resourcemanager.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\6.0.0\\system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.runtime.extensions\\4.3.0\\system.runtime.extensions.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.threading\\4.3.0\\system.threading.4.3.0.nupkg.sha512", - "C:\\Users\\Minh\\.nuget\\packages\\system.threading.tasks\\4.3.0\\system.threading.tasks.4.3.0.nupkg.sha512" + "C:\\Users\\gautam\\.nuget\\packages\\aspnetcoreratelimit\\5.0.0\\aspnetcoreratelimit.5.0.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\coverlet.collector\\3.2.0\\coverlet.collector.3.2.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\graphql\\7.6.1\\graphql.7.6.1.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\graphql-parser\\8.4.0\\graphql-parser.8.4.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\graphql.authorization\\7.0.0\\graphql.authorization.7.0.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\graphql.microsoftdi\\7.6.0\\graphql.microsoftdi.7.6.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\graphql.server.transports.aspnetcore\\7.6.0\\graphql.server.transports.aspnetcore.7.6.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\graphql.server.ui.voyager\\7.6.0\\graphql.server.ui.voyager.7.6.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\graphql.systemtextjson\\7.6.0\\graphql.systemtextjson.7.6.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.codecoverage\\17.5.0\\microsoft.codecoverage.17.5.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\6.0.0\\microsoft.extensions.caching.abstractions.6.0.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\6.0.0\\microsoft.extensions.dependencyinjection.abstractions.6.0.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\6.0.3\\microsoft.extensions.logging.abstractions.6.0.3.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.extensions.options\\6.0.0\\microsoft.extensions.options.6.0.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.extensions.primitives\\6.0.0\\microsoft.extensions.primitives.6.0.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.net.test.sdk\\17.5.0\\microsoft.net.test.sdk.17.5.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.netcore.platforms\\1.1.0\\microsoft.netcore.platforms.1.1.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.netcore.targets\\1.1.0\\microsoft.netcore.targets.1.1.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.testplatform.objectmodel\\17.5.0\\microsoft.testplatform.objectmodel.17.5.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\microsoft.testplatform.testhost\\17.5.0\\microsoft.testplatform.testhost.17.5.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\mstest.testadapter\\2.2.10\\mstest.testadapter.2.2.10.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\mstest.testframework\\2.2.10\\mstest.testframework.2.2.10.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\mysqlconnector\\2.2.7\\mysqlconnector.2.2.7.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\newtonsoft.json\\13.0.3\\newtonsoft.json.13.0.3.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\nuget.frameworks\\5.11.0\\nuget.frameworks.5.11.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\runtime.native.system\\4.3.0\\runtime.native.system.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.collections\\4.3.0\\system.collections.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.diagnostics.debug\\4.3.0\\system.diagnostics.debug.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.diagnostics.textwritertracelistener\\4.3.0\\system.diagnostics.textwritertracelistener.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.diagnostics.tracesource\\4.3.0\\system.diagnostics.tracesource.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.globalization\\4.3.0\\system.globalization.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.io\\4.3.0\\system.io.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.reflection\\4.3.0\\system.reflection.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.reflection.metadata\\1.6.0\\system.reflection.metadata.1.6.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.reflection.primitives\\4.3.0\\system.reflection.primitives.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.resources.resourcemanager\\4.3.0\\system.resources.resourcemanager.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\6.0.0\\system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.runtime.extensions\\4.3.0\\system.runtime.extensions.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.threading\\4.3.0\\system.threading.4.3.0.nupkg.sha512", + "C:\\Users\\gautam\\.nuget\\packages\\system.threading.tasks\\4.3.0\\system.threading.tasks.4.3.0.nupkg.sha512" ], "logs": [] } \ No newline at end of file diff --git a/Server_Side/.vs/Server_Side/DesignTimeBuild/.dtbcache.v2 b/Server_Side/.vs/Server_Side/DesignTimeBuild/.dtbcache.v2 index 7670120..1630f9f 100644 Binary files a/Server_Side/.vs/Server_Side/DesignTimeBuild/.dtbcache.v2 and b/Server_Side/.vs/Server_Side/DesignTimeBuild/.dtbcache.v2 differ diff --git a/Server_Side/.vs/Server_Side/v17/.suo b/Server_Side/.vs/Server_Side/v17/.suo index 8785245..58b9b39 100644 Binary files a/Server_Side/.vs/Server_Side/v17/.suo and b/Server_Side/.vs/Server_Side/v17/.suo differ diff --git a/Server_Side/Controllers/AnalyticsController.cs b/Server_Side/Controllers/AnalyticsController.cs index 7d83a76..24b9ad5 100644 --- a/Server_Side/Controllers/AnalyticsController.cs +++ b/Server_Side/Controllers/AnalyticsController.cs @@ -1,5 +1,6 @@ using Microsoft.AspNetCore.Mvc; using Server_Side.Services; +using Server_Side.Services.Analysis_Services; using System; using System.Linq; @@ -7,9 +8,9 @@ namespace Server_Side.Controllers { public class AnalyticsController : Controller { - private readonly Analysis_Report_Services _reportServices; + private readonly Analysis_Report_Center _reportServices; - public AnalyticsController(Analysis_Report_Services reportServices) + public AnalyticsController(Analysis_Report_Center reportServices) { _reportServices = reportServices; } @@ -26,19 +27,22 @@ public IActionResult Charts() } [HttpGet("/analytics/salesData")] - public IActionResult GetSalesData() + public async Task GetSalesData() { var startDate = DateTime.Now.AddMonths(-1); var endDate = DateTime.Now; - // - // Fixing this for the real data + var salesTotal = await _reportServices.ProcessAnalysisReportingServicesByID(7, startDate, endDate, null); //number needs to be changed + var viewTotal = await _reportServices.ProcessAnalysisReportingServicesByID(4, startDate, endDate, null); //number needs to be changed + var lifetimeSales = await _reportServices.ProcessAnalysisReportingServicesByID(7, DateTime.MinValue, DateTime.MaxValue, null); //number needs to be changed + var averageSatisfaction = await _reportServices.ProcessAnalysisReportingServicesByID(3, DateTime.MinValue, DateTime.MaxValue, null); //number needs to be changed + var data = new { - salesTotal = _reportServices.GetTotalSales(startDate, endDate), - viewTotal = _reportServices.GetPageViews(startDate, endDate).Sum(x => x.Value), - lifetimeSales = _reportServices.GetSalesAnalysis().Sum(x => x.Value), - averageSatisfaction = _reportServices.GetFeedbackAnalysis().Average(x => int.Parse(x.Key) * x.Value) // Simplified + salesTotal, + viewTotal, + lifetimeSales, + averageSatisfaction }; Response.ContentType = "application/json"; @@ -80,14 +84,17 @@ public IActionResult GettableData() } [HttpGet("/charts/productInfoData")] - public IActionResult GetProductInfoData() + public async Task GetProductInfoData(string productId) { var startDate = DateTime.Now.AddMonths(-1); var endDate = DateTime.Now; + var conversionRateService = new ConversionRateService(startDate, endDate, productId); + var salesRateResult = await conversionRateService.ProcessRequest(); + var data = new { - salesRate = _reportServices.GetConversionRate("", startDate, endDate), // Placeholder for product ID + salesRate = salesRateResult, // Using the result from the ConversionRateService placeHolder = "placeholder" }; @@ -96,13 +103,17 @@ public IActionResult GetProductInfoData() } [HttpGet("/charts/monthlySalesData")] - public IActionResult GetMonthlySalesData() + public async Task GetMonthlySalesData() { - var monthlySales = _reportServices.GetTimeAnalysis().Values.ToArray(); + var startDate = new DateTime(DateTime.Now.Year, 1, 1); // Start of the current year + var endDate = DateTime.Now; // Current date + + var timeAnalysisService = new TimeAnalysisService(); + var monthlySalesResult = await timeAnalysisService.ProcessRequest(startDate, endDate); var salesData = new { - monthlySales + monthlySales = monthlySalesResult.Values.ToArray() // Using the values from the TimeAnalysisService }; Response.ContentType = "application/json"; diff --git a/Server_Side/DatabaseServices/Services/Models/SaleTransaction.cs b/Server_Side/DatabaseServices/Services/Models/SaleTransaction.cs index ab5184b..836e797 100644 --- a/Server_Side/DatabaseServices/Services/Models/SaleTransaction.cs +++ b/Server_Side/DatabaseServices/Services/Models/SaleTransaction.cs @@ -17,10 +17,12 @@ public class SaleTransaction : Group_1_Record_Abstraction [Required(ErrorMessage = "Date is required")] [DateNotDefault(ErrorMessage = "Date must be filled")] public DateTime date { get; set; } - + [Required(ErrorMessage = "The item list cannot be empty")] + [MaxLength(10000)] + public string Details_Products { get; set; } public override string ToString() { - return $"Transaction_ID: {Transaction_ID}, User_ID: {User_ID}, Product_ID: {Product_ID}, Order_Value: {Order_Value}, date: {date}"; + return $"Transaction_ID: {Transaction_ID}, User_ID: {User_ID}, Product_ID: {Product_ID}, Order_Value: {Order_Value}, date: {date}, Details_Products List: {Details_Products}"; } } } diff --git a/Server_Side/Program.cs b/Server_Side/Program.cs index c6c9ec9..6997b2d 100644 --- a/Server_Side/Program.cs +++ b/Server_Side/Program.cs @@ -48,7 +48,7 @@ }; }); -builder.Services.AddSingleton(); +builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); diff --git a/Server_Side/Services/Analysis_Report_Center.cs b/Server_Side/Services/Analysis_Report_Center.cs index 3fe2a8e..d74ffc3 100644 --- a/Server_Side/Services/Analysis_Report_Center.cs +++ b/Server_Side/Services/Analysis_Report_Center.cs @@ -1,59 +1,56 @@ -using Server_Side.DatabaseServices.Services.Model; -using System; -using System.Collections.Generic; -using System.Threading.Tasks; +using Server_Side.DatabaseServices.Services.Models.Interfaces; +using Server_Side.Services.Analysis_Services; public class Analysis_Report_Center { - public List Valid_User_Views_Table = new List(); - public List Website_logs_table = new List(); - public List SalesTransactionsTable = new List(); - public List FeedbackTable = new List(); + //public List Valid_User_Views_Table = new List(); + //public List Website_logs_table = new List(); + //public List SalesTransactionsTable = new List(); + //public List FeedbackTable = new List(); - public Analysis_Report_Center(List valid_User_Views_Table, List website_logs_table, List salesTransactionsTable, List feedbackTable) + public async Task ProcessAnalysisReportingServicesByID(int ServicesID, DateTime? startDate, DateTime? endDate, string? productId) { - Valid_User_Views_Table = valid_User_Views_Table; - Website_logs_table = website_logs_table; - SalesTransactionsTable = salesTransactionsTable; - FeedbackTable = feedbackTable; - } - public async Task Process_AndPrint_Table_DataAsync(List dataAsList) - { - try - { - foreach (var Myobject in dataAsList) - { - if (Myobject is UserView userView) - { - Valid_User_Views_Table.Add(userView); - //Console.WriteLine($"User_Id: {userView.User_Id}, Timestamp: {userView.Timestamp}, End_Date: {userView.End_Date}, Start_Date: {userView.Start_Date}"); - } - else if (Myobject is PageView pageView) - { - Website_logs_table.Add(pageView); - //Console.WriteLine($"SessionId: {pageView.SessionId}, UserId: {pageView.UserId}, PageUrl: {pageView.PageUrl}, PageInfo: {pageView.PageInfo}, ProductId: {pageView.ProductId}, DateTime: {pageView.DateTime}, Start_Time: {pageView.Start_Time}, End_Time: {pageView.End_Time}"); - } - else if (Myobject is SaleTransaction saleTransaction) - { - SalesTransactionsTable.Add(saleTransaction); - //Console.WriteLine($"TransactionId: {saleTransaction.TransactionId}, UserId: {saleTransaction.UserId}, TransactionValue: {saleTransaction.TransactionValue}, Date: {saleTransaction.Date}"); - } - else if (Myobject is Feedback feedback) - { - FeedbackTable.Add(feedback); - //Console.WriteLine($"FeedbackId: {feedback.FeedbackId}, UserId: {feedback.UserId}, ProductId: {feedback.ProductId}, StarRating: {feedback.StarRating}"); - } - else - { - Console.WriteLine("Unknown object type"); - } - } - return true; - } - catch (Exception ex) + List? processedData = new List(); + switch (ServicesID) { - string dataContent = "Error: " + ex.Message; - return false; + case 0: + AverageOrderValueService averageOrderValueservice = new AverageOrderValueService(startDate, endDate); + decimal? processedDataAverage = await averageOrderValueservice.ProcessRequest(); + return processedDataAverage; + case 1: + BestCategoryAnalysisService BestCategoryAnalysisservice = new BestCategoryAnalysisService(startDate, endDate); + Dictionary? processedBestCategory = await BestCategoryAnalysisservice.ProcessRequest(); + return processedBestCategory; + case 2: + ConversionRateService conversionRateService = new ConversionRateService(startDate.GetValueOrDefault(), endDate.GetValueOrDefault(), productId); + var conversionRateResult = await conversionRateService.ProcessRequest(); + return conversionRateResult; + case 3: + FeedbackAnalysisService feedbackAnalysisService = new FeedbackAnalysisService(startDate, endDate); + var processedFeedback = await feedbackAnalysisService.ProcessRequest(); + return processedFeedback; + case 4: + PageViewsService pageViewsService = new PageViewsService(); + var processedPageViews = await pageViewsService.ProcessRequest(startDate, endDate); + return processedPageViews; + case 5: + PriceAnalysisService priceAnalysisService = new PriceAnalysisService(); + var processedPriceData = await priceAnalysisService.ProcessRequest(startDate, endDate); + return processedPriceData; + case 6: + TimeAnalysisService timeAnalysisService = new TimeAnalysisService(); + var processedTimeData = await timeAnalysisService.ProcessRequest(startDate, endDate); + return processedTimeData; + case 7: + TotalSalesService totalSalesService = new TotalSalesService(); + var processedTotalSales = await totalSalesService.ProcessRequest(startDate, endDate); + return processedTotalSales; + case 8: + UniqueVisitorsService uniqueVisitorsService = new UniqueVisitorsService(); + var uniqueVisitorCount = await uniqueVisitorsService.GetUniqueVisitorCountAsync(startDate, endDate); + return uniqueVisitorCount; + default: + throw new ArgumentException("Invalid table number"); } } } diff --git a/Server_Side/Services/Analysis_Services/Average_Order_Value_Service.cs b/Server_Side/Services/Analysis_Services/Average_Order_Value_Service.cs new file mode 100644 index 0000000..d531085 --- /dev/null +++ b/Server_Side/Services/Analysis_Services/Average_Order_Value_Service.cs @@ -0,0 +1,74 @@ +using Server_Side.DatabaseServices; +using Server_Side.DatabaseServices.Services.Model; +using Server_Side.DatabaseServices.Services.Models.Interfaces; + +namespace Server_Side.Services.Analysis_Services +{ + public class AverageOrderValueService + { + public static List SalesTransactionsTable = new List(); + private DateTime startDate; + private DateTime endDate; + public AverageOrderValueService(DateTime? startDate, DateTime? endDate) + { + if (startDate == null || endDate == null) + { + return; + } + else { + this.startDate = startDate.Value; this.endDate = endDate.Value; + } + } + public async Task ProcessRequest() + { + SalesTransactionsTable.Clear(); + var saleTransactionTableFromDatabase = await Database_Centre.GetDataForDatabaseServiceID(2); + var validDataReturn = ProcessListSaleTransactionTable_DataAsync(saleTransactionTableFromDatabase); + if(validDataReturn) + { + var result_Process = ExecuteAnalysis(); + return result_Process; + } + else + { + return null; + } + } + public static bool ProcessListSaleTransactionTable_DataAsync(List? dataAsList) + { + try + { + SalesTransactionsTable.Clear(); + foreach (var Myobject in dataAsList) + { + if (Myobject is SaleTransaction saleTransaction) + { + SalesTransactionsTable.Add(saleTransaction); + } + else + { + Console.WriteLine("Unknown object type"); + } + } + return true; + } + catch (Exception ex) + { + string dataContent = "Error: " + ex.Message; + return false; + } + } + private decimal ExecuteAnalysis() + { + if (SalesTransactionsTable == null) + throw new InvalidOperationException("SalesTransactions data is not initialized."); + + var relevantSales = SalesTransactionsTable + .Where(s => s.date >= startDate && s.date <= endDate) + .ToList(); + + return relevantSales.Any() ? relevantSales.Average(s => s.Order_Value) : 0; + } + + } +} diff --git a/Server_Side/Services/Analysis_Services/Best_Category_Analysis.cs b/Server_Side/Services/Analysis_Services/Best_Category_Analysis.cs new file mode 100644 index 0000000..8cf1313 --- /dev/null +++ b/Server_Side/Services/Analysis_Services/Best_Category_Analysis.cs @@ -0,0 +1,79 @@ +using Server_Side.DatabaseServices; +using Server_Side.DatabaseServices.Services.Model; +using Server_Side.DatabaseServices.Services.Models.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Server_Side.Services.Analysis_Services +{ + public class BestCategoryAnalysisService + { + public static List SalesTransactionsTable = new List(); + private DateTime startDate; + private DateTime endDate; + public BestCategoryAnalysisService(DateTime? startDate, DateTime? endDate) + { + if (startDate == null || endDate == null) + { + return; + } + else + { + this.startDate = startDate.Value; this.endDate = endDate.Value; + } + } + public async Task?> ProcessRequest() + { + SalesTransactionsTable.Clear(); + var saleTransactionTableFromDatabase = await Database_Centre.GetDataForDatabaseServiceID(2); + var validDataReturn = ProcessListSaleTransactionTable_DataAsync(saleTransactionTableFromDatabase); + if (validDataReturn) + { + var result_Process = ExecuteAnalysis(); + return result_Process; + } + else + { + return null; + } + } + public static bool ProcessListSaleTransactionTable_DataAsync(List? dataAsList) + { + try + { + SalesTransactionsTable.Clear(); + foreach (var Myobject in dataAsList) + { + if (Myobject is SaleTransaction saleTransaction) + { + SalesTransactionsTable.Add(saleTransaction); + } + else + { + Console.WriteLine("Unknown object type"); + } + } + return true; + } + catch (Exception ex) + { + string dataContent = "Error: " + ex.Message; + return false; + } + } + + private Dictionary ExecuteAnalysis() + { + if (SalesTransactionsTable == null) + throw new InvalidOperationException("SalesTransactions data is not initialized."); + + return SalesTransactionsTable + .Where(s => s.date >= startDate && s.date <= endDate) + .GroupBy(s => s.User_ID) // Grouping by User_ID + .Select(group => new { UserID = group.Key, TotalSales = group.Sum(s => s.Order_Value) }) + .OrderByDescending(result => result.TotalSales) + .ToDictionary(result => result.UserID, result => result.TotalSales); + } + } +} diff --git a/Server_Side/Services/Analysis_Services/Conversion_Rate_Service.cs b/Server_Side/Services/Analysis_Services/Conversion_Rate_Service.cs new file mode 100644 index 0000000..082e91f --- /dev/null +++ b/Server_Side/Services/Analysis_Services/Conversion_Rate_Service.cs @@ -0,0 +1,116 @@ +using Server_Side.DatabaseServices; +using Server_Side.DatabaseServices.Services.Model; +using Server_Side.DatabaseServices.Services.Models.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Server_Side.Services.Analysis_Services +{ + public class ConversionRateService : Analysis_Report_Center + { + private DateTime startDate; + private DateTime endDate; + private string productId; + public static List Website_logs_table = new List(); + public static List SalesTransactionsTable = new List(); + public ConversionRateService(DateTime startDate, DateTime endDate, string productId) + { + this.startDate = startDate; + this.endDate = endDate; + this.productId = productId; + } + + public async Task?> ProcessRequest() + { + SalesTransactionsTable.Clear(); + var saleTransactionTableFromDatabase = await Database_Centre.GetDataForDatabaseServiceID(2); + var WeblogTableFromDatabase = await Database_Centre.GetDataForDatabaseServiceID(1); + var valid_Weblog = ProcessListWeblogTable_DataAsync(WeblogTableFromDatabase); + var validDataReturn = ProcessListSaleTransactionTable_DataAsync(saleTransactionTableFromDatabase); + if (validDataReturn && valid_Weblog) + { + var result_Process = ExecuteAnalysis(); + return result_Process; + } + else + { + return null; + } + } + + public static bool ProcessListWeblogTable_DataAsync(List? dataAsList) + { + try + { + Website_logs_table.Clear(); + foreach (var Myobject in dataAsList) + { + if (Myobject is PageView saleTransaction) + { + Website_logs_table.Add(saleTransaction); + } + else + { + Console.WriteLine("Unknown object type"); + } + } + return true; + } + catch (Exception ex) + { + string dataContent = "Error: " + ex.Message; + return false; + } + } + public static bool ProcessListSaleTransactionTable_DataAsync(List? dataAsList) + { + try + { + SalesTransactionsTable.Clear(); + foreach (var Myobject in dataAsList) + { + if (Myobject is SaleTransaction saleTransaction) + { + SalesTransactionsTable.Add(saleTransaction); + } + else + { + Console.WriteLine("Unknown object type"); + } + } + return true; + } + catch (Exception ex) + { + string dataContent = "Error: " + ex.Message; + return false; + } + } + + + public Dictionary ExecuteAnalysis() + { + if (SalesTransactionsTable == null || Website_logs_table == null) + throw new InvalidOperationException("SalesTransactionsTable or Website_logs_table data is not initialized.");//catch exception + + var productPageViews = Website_logs_table + .Where(p => p.Product_ID == productId && p.Start_Time >= startDate && p.Start_Time <= endDate) + .Count(); + + var productSales = SalesTransactionsTable + .Where(s => s.Product_ID == productId && s.date >= startDate && s.date <= endDate) + .Count(); + + if (productPageViews == 0) + return new Dictionary { { productId, 0 } }; + + decimal conversionRate = (decimal)productSales / productPageViews; + + return new Dictionary + { + { productId, conversionRate } + }; + } + } +} diff --git a/Server_Side/Services/Analysis_Services/Feedback_Analysis_Service.cs b/Server_Side/Services/Analysis_Services/Feedback_Analysis_Service.cs new file mode 100644 index 0000000..2b15e8e --- /dev/null +++ b/Server_Side/Services/Analysis_Services/Feedback_Analysis_Service.cs @@ -0,0 +1,51 @@ +using Server_Side.DatabaseServices; +using Server_Side.DatabaseServices.Services.Model; +using Server_Side.DatabaseServices.Services.Models.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Server_Side.Services.Analysis_Services +{ + public class FeedbackAnalysisService + { + private DateTime startDate; + private DateTime endDate; + + public FeedbackAnalysisService(DateTime? startDate, DateTime? endDate) + { + if (startDate == null || endDate == null) + { + throw new ArgumentNullException("Start date and end date cannot be null"); + } + this.startDate = startDate.Value; + this.endDate = endDate.Value; + } + + public async Task?> ProcessRequest() + { + var feedbackTableFromDatabase = await Database_Centre.GetDataForDatabaseServiceID(3); + var validDataReturn = ProcessFeedbackDataAsync(feedbackTableFromDatabase); + if (validDataReturn) + { + var result = AnalyzeFeedback(); + return result; + } + else + { + return null; + } + } + + private bool ProcessFeedbackDataAsync(List? feedbackData) + { + return true; + } + + private Dictionary AnalyzeFeedback() + { + return new Dictionary(); + } + } +} diff --git a/Server_Side/Services/Analysis_Services/Page_Views_Service.cs b/Server_Side/Services/Analysis_Services/Page_Views_Service.cs new file mode 100644 index 0000000..c7be081 --- /dev/null +++ b/Server_Side/Services/Analysis_Services/Page_Views_Service.cs @@ -0,0 +1,46 @@ +using Server_Side.DatabaseServices; +using Server_Side.DatabaseServices.Services.Model; +using Server_Side.DatabaseServices.Services.Models.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Server_Side.Services.Analysis_Services +{ + public class PageViewsService + { + public PageViewsService() + { + // Additional initialization, if needed + } + + public async Task?> ProcessRequest(DateTime? startDate, DateTime? endDate) + { + if (startDate == null || endDate == null) + { + return null; + } + + var pageViewsTableFromDatabase = await Database_Centre.GetDataForDatabaseServiceID(4); + var relevantPageViews = ProcessPageViewsData(pageViewsTableFromDatabase, startDate.Value, endDate.Value); + return relevantPageViews; + } + + private Dictionary? ProcessPageViewsData(List? pageViewsData, DateTime startDate, DateTime endDate) + { + if (pageViewsData == null) + { + return null; + } + + var pageViewsByPageName = pageViewsData + .OfType() + .Where(pv => pv.Start_Time >= startDate && pv.Start_Time <= endDate) + .GroupBy(pv => pv.Page_Name) + .ToDictionary(group => group.Key, group => group.Count()); + + return pageViewsByPageName; + } + } +} diff --git a/Server_Side/Services/Analysis_Services/Price_Analysis_Service.cs b/Server_Side/Services/Analysis_Services/Price_Analysis_Service.cs new file mode 100644 index 0000000..6fd1ac1 --- /dev/null +++ b/Server_Side/Services/Analysis_Services/Price_Analysis_Service.cs @@ -0,0 +1,46 @@ +using Server_Side.DatabaseServices; +using Server_Side.DatabaseServices.Services.Model; +using Server_Side.DatabaseServices.Services.Models.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Server_Side.Services.Analysis_Services +{ + public class PriceAnalysisService + { + public PriceAnalysisService() + { + //init empty + } + + public async Task ProcessRequest(DateTime? startDate, DateTime? endDate) + { + if (startDate == null || endDate == null) + { + return null; + } + + var salesTransactionsTableFromDatabase = await Database_Centre.GetDataForDatabaseServiceID(5); + return ExecuteAnalysis(salesTransactionsTableFromDatabase, startDate.Value, endDate.Value); + } + + private decimal? ExecuteAnalysis(List? salesTransactionsData, DateTime startDate, DateTime endDate) + { + if (salesTransactionsData == null) + { + return null; + } + + var relevantSales = salesTransactionsData + .OfType() + .Where(s => s.date >= startDate && s.date <= endDate) + .ToList(); + + decimal averageOrderValue = relevantSales.Any() ? relevantSales.Average(s => s.Order_Value) : 0; + + return averageOrderValue; + } + } +} diff --git a/Server_Side/Services/Analysis_Services/Time_Analysis_Service.cs b/Server_Side/Services/Analysis_Services/Time_Analysis_Service.cs new file mode 100644 index 0000000..7cc6b49 --- /dev/null +++ b/Server_Side/Services/Analysis_Services/Time_Analysis_Service.cs @@ -0,0 +1,43 @@ +using Server_Side.DatabaseServices; +using Server_Side.DatabaseServices.Services.Model; +using Server_Side.DatabaseServices.Services.Models.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Server_Side.Services.Analysis_Services +{ + public class TimeAnalysisService + { + public TimeAnalysisService() + { + // init empty + } + + public async Task?> ProcessRequest(DateTime? startDate, DateTime? endDate) + { + if (startDate == null || endDate == null) + { + return null; + } + + var salesTransactionsTableFromDatabase = await Database_Centre.GetDataForDatabaseServiceID(6); + return ExecuteAnalysis(salesTransactionsTableFromDatabase, startDate.Value, endDate.Value); + } + + private Dictionary? ExecuteAnalysis(List? salesTransactionsData, DateTime startDate, DateTime endDate) + { + if (salesTransactionsData == null) + { + return null; + } + + return salesTransactionsData + .OfType() + .Where(s => s.date >= startDate && s.date <= endDate) + .GroupBy(s => s.date.Month) + .ToDictionary(grp => $"Month {grp.Key}", grp => grp.Count()); + } + } +} diff --git a/Server_Side/Services/Analysis_Services/Total_Sales_Service.cs b/Server_Side/Services/Analysis_Services/Total_Sales_Service.cs new file mode 100644 index 0000000..f4ca659 --- /dev/null +++ b/Server_Side/Services/Analysis_Services/Total_Sales_Service.cs @@ -0,0 +1,42 @@ +using Server_Side.DatabaseServices; +using Server_Side.DatabaseServices.Services.Model; +using Server_Side.DatabaseServices.Services.Models.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Server_Side.Services.Analysis_Services +{ + public class TotalSalesService + { + public TotalSalesService() + { + // Additional initialization, if needed + } + + public async Task ProcessRequest(DateTime? startDate, DateTime? endDate) + { + if (startDate == null || endDate == null) + { + return null; + } + + var salesTransactionsTableFromDatabase = await Database_Centre.GetDataForDatabaseServiceID(7); + return ExecuteAnalysis(salesTransactionsTableFromDatabase, startDate.Value, endDate.Value); + } + + private decimal? ExecuteAnalysis(List? salesTransactionsData, DateTime startDate, DateTime endDate) + { + if (salesTransactionsData == null) + { + return null; + } + + return salesTransactionsData + .OfType() + .Where(s => s.date >= startDate && s.date <= endDate) + .Sum(s => s.Order_Value); + } + } +} diff --git a/Server_Side/Services/Analysis_Services/Unique_Visitors_Service.cs b/Server_Side/Services/Analysis_Services/Unique_Visitors_Service.cs new file mode 100644 index 0000000..850765c --- /dev/null +++ b/Server_Side/Services/Analysis_Services/Unique_Visitors_Service.cs @@ -0,0 +1,49 @@ +using Server_Side.DatabaseServices; +using Server_Side.DatabaseServices.Services.Model; +using Server_Side.DatabaseServices.Services.Models.Interfaces; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Threading.Tasks; + +namespace Server_Side.Services.Analysis_Services +{ + public class UniqueVisitorsService + { + public UniqueVisitorsService() + { + // Additional initialization, if needed + } + + public async Task GetUniqueVisitorCountAsync(DateTime? startDate, DateTime? endDate) + { + if (startDate == null || endDate == null) + { + throw new ArgumentNullException("Start date and end date cannot be null."); + } + + if (startDate > endDate) + { + throw new ArgumentException("Start date must be less than or equal to end date."); + } + + var userViewsTableFromDatabase = await Database_Centre.GetDataForDatabaseServiceID(8); + return CalculateUniqueVisitors(userViewsTableFromDatabase, startDate.Value, endDate.Value); + } + + private int CalculateUniqueVisitors(List? userViewsData, DateTime startDate, DateTime endDate) + { + if (userViewsData == null) + { + return 0; + } + + return userViewsData + .OfType() + .Where(v => v.Date_Access >= startDate && v.Date_Access <= endDate) + .Select(v => v.User_ID) + .Distinct() + .Count(); + } + } +} diff --git a/Server_Side/Services/Average_Order_Value_Service.cs b/Server_Side/Services/Average_Order_Value_Service.cs deleted file mode 100644 index 5ebf583..0000000 --- a/Server_Side/Services/Average_Order_Value_Service.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Server_Side.DatabaseServices.Services.Model; -using System; -using System.Linq; - -namespace Server_Side.Services -{ - public class AverageOrderValueService - { - private Analysis_Report_Center _analysisReportCenter; - - public AverageOrderValueService(Analysis_Report_Center analysisReportCenter) - { - _analysisReportCenter = analysisReportCenter; - } - - public decimal ExecuteAnalysis(DateTime startDate, DateTime endDate) - { - if (_analysisReportCenter.SalesTransactionsTable == null) - throw new InvalidOperationException("SalesTransactions data is not initialized."); - - var relevantSales = _analysisReportCenter.SalesTransactionsTable - .Where(s => s.date >= startDate && s.date <= endDate) - .ToList(); - - // Calculate the average value if there are any relevant sales - return relevantSales.Any() ? relevantSales.Average(s => s.Order_Value) : 0; - } - } -} diff --git a/Server_Side/Services/Best_Category_Analysis.cs b/Server_Side/Services/Best_Category_Analysis.cs deleted file mode 100644 index d854565..0000000 --- a/Server_Side/Services/Best_Category_Analysis.cs +++ /dev/null @@ -1,30 +0,0 @@ -using Server_Side.DatabaseServices.Services.Model; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Server_Side.Services -{ - public class BestCategoryAnalysisService - { - private Analysis_Report_Center _analysisReportCenter; - - public BestCategoryAnalysisService(Analysis_Report_Center analysisReportCenter) - { - _analysisReportCenter = analysisReportCenter; - } - - public Dictionary ExecuteAnalysis(DateTime startDate, DateTime endDate) - { - if (_analysisReportCenter.SalesTransactionsTable == null) - throw new InvalidOperationException("SalesTransactions data is not initialized."); - - return _analysisReportCenter.SalesTransactionsTable - .Where(s => s.date >= startDate && s.date <= endDate) - .GroupBy(s => s.User_ID) // Grouping by User_ID - .Select(group => new { UserID = group.Key, TotalSales = group.Sum(s => s.Order_Value) }) - .OrderByDescending(result => result.TotalSales) - .ToDictionary(result => result.UserID, result => result.TotalSales); - } - } -} diff --git a/Server_Side/Services/Conversion_Rate_Service.cs b/Server_Side/Services/Conversion_Rate_Service.cs deleted file mode 100644 index b42a718..0000000 --- a/Server_Side/Services/Conversion_Rate_Service.cs +++ /dev/null @@ -1,39 +0,0 @@ -using Server_Side.DatabaseServices.Services.Model; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Server_Side.Services -{ - public class ConversionRateService : Analysis_Report_Center - { - public ConversionRateService(List userViews, List pageViews, List salesTransactions, List feedbacks) - : base(userViews, pageViews, salesTransactions, feedbacks) - { - } - - public Dictionary ExecuteAnalysis(DateTime startDate, DateTime endDate, string productId) - { - if (SalesTransactionsTable == null || Website_logs_table == null) - throw new InvalidOperationException("SalesTransactionsTable or Website_logs_table data is not initialized.");//catch exception - - var productPageViews = Website_logs_table - .Where(p => p.Product_ID == productId && p.Start_Time >= startDate && p.Start_Time <= endDate) - .Count(); - - var productSales = SalesTransactionsTable - .Where(s => s.Product_ID == productId && s.date >= startDate && s.date <= endDate) - .Count(); - - if (productPageViews == 0) - return new Dictionary { { productId, 0 } }; - - decimal conversionRate = (decimal)productSales / productPageViews; - - return new Dictionary - { - { productId, conversionRate } - }; - } - } -} diff --git a/Server_Side/Services/Feedback_Analysis_Service.cs b/Server_Side/Services/Feedback_Analysis_Service.cs deleted file mode 100644 index 05e5283..0000000 --- a/Server_Side/Services/Feedback_Analysis_Service.cs +++ /dev/null @@ -1,32 +0,0 @@ -using Server_Side.DatabaseServices.Services.Model; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace Server_Side.Services -{ - public class FeedbackAnalysisService - { - private readonly Analysis_Report_Center _reportCenter; - - public FeedbackAnalysisService(Analysis_Report_Center reportCenter) - { - _reportCenter = reportCenter ?? throw new ArgumentNullException(nameof(reportCenter)); - } - - public async Task> ExecuteAnalysisAsync(DateTime startDate, DateTime endDate) - { - if (_reportCenter.FeedbackTable == null || !_reportCenter.FeedbackTable.Any()) - throw new InvalidOperationException("FeedbackTable data is not initialized."); - - return await Task.Run(() => - { - return _reportCenter.FeedbackTable - .Where(f => f.Date_Updated >= startDate && f.Date_Updated <= endDate) - .GroupBy(f => f.Stars_Rating.ToString()) - .ToDictionary(grp => grp.Key, grp => grp.Count()); - }); - } - } -} diff --git a/Server_Side/Services/Page_Views_Service.cs b/Server_Side/Services/Page_Views_Service.cs deleted file mode 100644 index 049666f..0000000 --- a/Server_Side/Services/Page_Views_Service.cs +++ /dev/null @@ -1,29 +0,0 @@ -using Server_Side.DatabaseServices.Services.Model; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Server_Side.Services -{ - public class PageViewsService : Analysis_Report_Center - { - public PageViewsService(List userViews, List pageViews, List salesTransactions, List feedbacks) - : base(userViews, pageViews, salesTransactions, feedbacks) - { - // Additional initialization, if needed - } - - public Dictionary ExecuteAnalysis(DateTime startDate, DateTime endDate) - { - var relevantPageViews = Website_logs_table - .Where(pv => pv.Start_Time >= startDate && pv.Start_Time <= endDate) - .ToList(); - - var pageViewsByPageName = relevantPageViews - .GroupBy(pv => pv.Page_Name) - .ToDictionary(group => group.Key, group => group.Count()); - - return pageViewsByPageName; - } - } -} diff --git a/Server_Side/Services/Price_Analysis_Service.cs b/Server_Side/Services/Price_Analysis_Service.cs deleted file mode 100644 index 057db5d..0000000 --- a/Server_Side/Services/Price_Analysis_Service.cs +++ /dev/null @@ -1,29 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Server_Side.Services -{ - public class PriceAnalysisService : Analysis_Report_Center - { - public PriceAnalysisService(Analysis_Report_Center reportCenter) : base( - reportCenter.Valid_User_Views_Table, - reportCenter.Website_logs_table, - reportCenter.SalesTransactionsTable, - reportCenter.FeedbackTable){ - } - - public object ExecuteAnalysis(DateTime startDate, DateTime endDate) - { - // Retrieve sales transactions within the specified date range - var relevantSales = SalesTransactionsTable - .Where(s => s.date >= startDate && s.date <= endDate) - .ToList(); - - // Calculate the average order value if there are any relevant sales - decimal averageOrderValue = relevantSales.Any() ? relevantSales.Average(s => s.Order_Value) : 0; - - return averageOrderValue; - } - } -} diff --git a/Server_Side/Services/Time_Analysis_Service.cs b/Server_Side/Services/Time_Analysis_Service.cs deleted file mode 100644 index b63e682..0000000 --- a/Server_Side/Services/Time_Analysis_Service.cs +++ /dev/null @@ -1,25 +0,0 @@ -using Server_Side.DatabaseServices.Services.Model; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Server_Side.Services -{ - public class TimeAnalysisService - { - private readonly Analysis_Report_Center _reportCenter; - - public TimeAnalysisService(Analysis_Report_Center reportCenter) - { - _reportCenter = reportCenter ?? throw new ArgumentNullException(nameof(reportCenter)); - } - - public Dictionary ExecuteAnalysis(DateTime startDate, DateTime endDate) - { - return _reportCenter.SalesTransactionsTable - .Where(s => s.date >= startDate && s.date <= endDate) - .GroupBy(s => s.date.Month) - .ToDictionary(grp => $"Month {grp.Key}", grp => grp.Count()); - } - } -} diff --git a/Server_Side/Services/Total_Sales_Service.cs b/Server_Side/Services/Total_Sales_Service.cs deleted file mode 100644 index 00003a6..0000000 --- a/Server_Side/Services/Total_Sales_Service.cs +++ /dev/null @@ -1,26 +0,0 @@ -using Server_Side.DatabaseServices.Services.Model; -using System; -using System.Collections.Generic; -using System.Linq; - -namespace Server_Side.Services -{ - public class TotalSalesService : Analysis_Report_Center - { - public TotalSalesService(List userViews, List pageViews, List salesTransactions, List feedbacks) - : base(userViews, pageViews, salesTransactions, feedbacks) - { - } - - public decimal ExecuteAnalysis(DateTime startDate, DateTime endDate) - { - // Ensures that SalesTransactionsTable is not null - if (SalesTransactionsTable == null) - throw new InvalidOperationException("SalesTransactionsTable is not initialized."); - - return SalesTransactionsTable - .Where(s => s.date >= startDate && s.date <= endDate) - .Sum(s => s.Order_Value); - } - } -} diff --git a/Server_Side/Services/Unique_Visitors_Service.cs b/Server_Side/Services/Unique_Visitors_Service.cs deleted file mode 100644 index b7595be..0000000 --- a/Server_Side/Services/Unique_Visitors_Service.cs +++ /dev/null @@ -1,37 +0,0 @@ -using Server_Side.DatabaseServices.Services.Model; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; - -namespace Server_Side.Services -{ - public class UniqueVisitorsService - { - private readonly Analysis_Report_Center _reportCenter; - - public UniqueVisitorsService(Analysis_Report_Center reportCenter) - { - _reportCenter = reportCenter ?? throw new ArgumentNullException(nameof(reportCenter)); - } - - public async Task GetUniqueVisitorCountAsync(DateTime startDate, DateTime endDate) - { - // Validate the date range - if (startDate > endDate) - { - throw new ArgumentException("Start date must be less than or equal to end date."); - } - - return await Task.Run(() => - { - // Calculate the count of unique visitors - return _reportCenter.Valid_User_Views_Table - .Where(v => v.Date_Access >= startDate && v.Date_Access <= endDate) - .Select(v => v.User_ID) - .Distinct() - .Count(); - }); - } - } -} diff --git a/Server_Side/Source.cs b/Server_Side/Source.cs index 859cae3..8ce9179 100644 --- a/Server_Side/Source.cs +++ b/Server_Side/Source.cs @@ -13,7 +13,7 @@ static void Main(string[] args) //DataWarehouse_Analysis_Reports_Services dataWarehouse_Analysis_Reports_Services = new DataWarehouse_Analysis_Reports_Services(); GraphQL_Schemas graphQL_Schemas = new GraphQL_Schemas(); GraphQL_Controllers graphQL_Controllers = new GraphQL_Controllers(); - Analysis_Report_Services analysis_Report_Services = new Analysis_Report_Services(); + Analysis_Report_Center analysis_Report_Services = new Analysis_Report_Center(); //dataWarehouse_Analysis_Reports_Services.Test_DataWarehouse_Analysis_Reports_Services(); graphQL_Schemas.GraphQL_Schemas_Services(); diff --git a/Server_Side/bin/Debug/net6.0/AspNetCoreRateLimit.dll b/Server_Side/bin/Debug/net6.0/AspNetCoreRateLimit.dll deleted file mode 100644 index 68dc835..0000000 Binary files a/Server_Side/bin/Debug/net6.0/AspNetCoreRateLimit.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/GraphQL.Authorization.dll b/Server_Side/bin/Debug/net6.0/GraphQL.Authorization.dll deleted file mode 100644 index a023ed2..0000000 Binary files a/Server_Side/bin/Debug/net6.0/GraphQL.Authorization.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/GraphQL.MicrosoftDI.dll b/Server_Side/bin/Debug/net6.0/GraphQL.MicrosoftDI.dll deleted file mode 100644 index c456e74..0000000 Binary files a/Server_Side/bin/Debug/net6.0/GraphQL.MicrosoftDI.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/GraphQL.Server.Transports.AspNetCore.dll b/Server_Side/bin/Debug/net6.0/GraphQL.Server.Transports.AspNetCore.dll deleted file mode 100644 index d9bf367..0000000 Binary files a/Server_Side/bin/Debug/net6.0/GraphQL.Server.Transports.AspNetCore.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/GraphQL.Server.Ui.Voyager.dll b/Server_Side/bin/Debug/net6.0/GraphQL.Server.Ui.Voyager.dll deleted file mode 100644 index b2a09c9..0000000 Binary files a/Server_Side/bin/Debug/net6.0/GraphQL.Server.Ui.Voyager.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/GraphQL.SystemTextJson.dll b/Server_Side/bin/Debug/net6.0/GraphQL.SystemTextJson.dll deleted file mode 100644 index a40f419..0000000 Binary files a/Server_Side/bin/Debug/net6.0/GraphQL.SystemTextJson.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/GraphQL.dll b/Server_Side/bin/Debug/net6.0/GraphQL.dll deleted file mode 100644 index db95928..0000000 Binary files a/Server_Side/bin/Debug/net6.0/GraphQL.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/GraphQLParser.dll b/Server_Side/bin/Debug/net6.0/GraphQLParser.dll deleted file mode 100644 index 9fe9939..0000000 Binary files a/Server_Side/bin/Debug/net6.0/GraphQLParser.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/Microsoft.Extensions.Logging.Abstractions.dll b/Server_Side/bin/Debug/net6.0/Microsoft.Extensions.Logging.Abstractions.dll deleted file mode 100644 index 5a6ba21..0000000 Binary files a/Server_Side/bin/Debug/net6.0/Microsoft.Extensions.Logging.Abstractions.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/MySqlConnector.dll b/Server_Side/bin/Debug/net6.0/MySqlConnector.dll deleted file mode 100644 index 35f8329..0000000 Binary files a/Server_Side/bin/Debug/net6.0/MySqlConnector.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/Newtonsoft.Json.dll b/Server_Side/bin/Debug/net6.0/Newtonsoft.Json.dll deleted file mode 100644 index d035c38..0000000 Binary files a/Server_Side/bin/Debug/net6.0/Newtonsoft.Json.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/Server_Side.deps.json b/Server_Side/bin/Debug/net6.0/Server_Side.deps.json deleted file mode 100644 index cfa965d..0000000 --- a/Server_Side/bin/Debug/net6.0/Server_Side.deps.json +++ /dev/null @@ -1,273 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETCoreApp,Version=v6.0", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETCoreApp,Version=v6.0": { - "Server_Side/1.0.0": { - "dependencies": { - "AspNetCoreRateLimit": "5.0.0", - "GraphQL": "7.6.1", - "GraphQL.Authorization": "7.0.0", - "GraphQL.Server.Transports.AspNetCore": "7.6.0", - "GraphQL.Server.Ui.Voyager": "7.6.0", - "MySqlConnector": "2.2.7", - "Newtonsoft.Json": "13.0.3" - }, - "runtime": { - "Server_Side.dll": {} - } - }, - "AspNetCoreRateLimit/5.0.0": { - "dependencies": { - "Microsoft.Extensions.Caching.Abstractions": "6.0.0", - "Microsoft.Extensions.Logging.Abstractions": "6.0.3", - "Microsoft.Extensions.Options": "6.0.0", - "Newtonsoft.Json": "13.0.3" - }, - "runtime": { - "lib/net6.0/AspNetCoreRateLimit.dll": { - "assemblyVersion": "4.0.2.0", - "fileVersion": "4.0.2.0" - } - } - }, - "GraphQL/7.6.1": { - "dependencies": { - "GraphQL-Parser": "8.4.0" - }, - "runtime": { - "lib/net6.0/GraphQL.dll": { - "assemblyVersion": "7.6.1.0", - "fileVersion": "7.6.1.0" - } - } - }, - "GraphQL-Parser/8.4.0": { - "runtime": { - "lib/net6.0/GraphQLParser.dll": { - "assemblyVersion": "8.4.0.0", - "fileVersion": "8.4.0.0" - } - } - }, - "GraphQL.Authorization/7.0.0": { - "dependencies": { - "GraphQL": "7.6.1" - }, - "runtime": { - "lib/netstandard2.0/GraphQL.Authorization.dll": { - "assemblyVersion": "7.0.0.0", - "fileVersion": "7.0.0.0" - } - } - }, - "GraphQL.MicrosoftDI/7.6.0": { - "dependencies": { - "GraphQL": "7.6.1", - "Microsoft.Extensions.Options": "6.0.0" - }, - "runtime": { - "lib/net5.0/GraphQL.MicrosoftDI.dll": { - "assemblyVersion": "7.6.0.0", - "fileVersion": "7.6.0.0" - } - } - }, - "GraphQL.Server.Transports.AspNetCore/7.6.0": { - "dependencies": { - "GraphQL.MicrosoftDI": "7.6.0", - "GraphQL.SystemTextJson": "7.6.0" - }, - "runtime": { - "lib/net6.0/GraphQL.Server.Transports.AspNetCore.dll": { - "assemblyVersion": "7.6.0.0", - "fileVersion": "7.6.0.0" - } - } - }, - "GraphQL.Server.Ui.Voyager/7.6.0": { - "runtime": { - "lib/netcoreapp3.1/GraphQL.Server.Ui.Voyager.dll": { - "assemblyVersion": "7.6.0.0", - "fileVersion": "7.6.0.0" - } - } - }, - "GraphQL.SystemTextJson/7.6.0": { - "dependencies": { - "GraphQL": "7.6.1" - }, - "runtime": { - "lib/net6.0/GraphQL.SystemTextJson.dll": { - "assemblyVersion": "7.6.0.0", - "fileVersion": "7.6.0.0" - } - } - }, - "Microsoft.Extensions.Caching.Abstractions/6.0.0": { - "dependencies": { - "Microsoft.Extensions.Primitives": "6.0.0" - } - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": {}, - "Microsoft.Extensions.Logging.Abstractions/6.0.3": { - "runtime": { - "lib/net6.0/Microsoft.Extensions.Logging.Abstractions.dll": { - "assemblyVersion": "6.0.0.0", - "fileVersion": "6.0.1122.52304" - } - } - }, - "Microsoft.Extensions.Options/6.0.0": { - "dependencies": { - "Microsoft.Extensions.DependencyInjection.Abstractions": "6.0.0", - "Microsoft.Extensions.Primitives": "6.0.0" - } - }, - "Microsoft.Extensions.Primitives/6.0.0": { - "dependencies": { - "System.Runtime.CompilerServices.Unsafe": "6.0.0" - } - }, - "MySqlConnector/2.2.7": { - "runtime": { - "lib/net6.0/MySqlConnector.dll": { - "assemblyVersion": "2.0.0.0", - "fileVersion": "2.2.7.0" - } - } - }, - "Newtonsoft.Json/13.0.3": { - "runtime": { - "lib/net6.0/Newtonsoft.Json.dll": { - "assemblyVersion": "13.0.0.0", - "fileVersion": "13.0.3.27908" - } - } - }, - "System.Runtime.CompilerServices.Unsafe/6.0.0": {} - } - }, - "libraries": { - "Server_Side/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - }, - "AspNetCoreRateLimit/5.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-6fq9+o1maGADUmpK/PvcF0DtXW2+7bSkIL7MDIo/agbIHKN8XkMQF4oze60DO731WaQmHmK260hB30FwPzCmEg==", - "path": "aspnetcoreratelimit/5.0.0", - "hashPath": "aspnetcoreratelimit.5.0.0.nupkg.sha512" - }, - "GraphQL/7.6.1": { - "type": "package", - "serviceable": true, - "sha512": "sha512-16UOuR01WG0APHArtNkenSsOivRxZ3Ikdf4zG4GLlvnYuB9g/1MGI2HlZJ3ufa8rVUpdSS/WGpI9ifi779OBjQ==", - "path": "graphql/7.6.1", - "hashPath": "graphql.7.6.1.nupkg.sha512" - }, - "GraphQL-Parser/8.4.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-FwDgsaOPEoa7sAACRl9wjQl+J8Z0x9C8HcBWRCzRVRvrvBZsBLX8fnL+6pDnUhn0audU05Cjod4uqJe4cB9OFw==", - "path": "graphql-parser/8.4.0", - "hashPath": "graphql-parser.8.4.0.nupkg.sha512" - }, - "GraphQL.Authorization/7.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-hPKSxEcWaAvQLqnvFw1vpV0wC7rqLr/yxs/gOoD+wkLRjwBwIH/Y0BBTc+NQgBXxLn29h1ObXzZ42BDq+MiIEw==", - "path": "graphql.authorization/7.0.0", - "hashPath": "graphql.authorization.7.0.0.nupkg.sha512" - }, - "GraphQL.MicrosoftDI/7.6.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-1S1Y96YL9BsyofTeAIm1UWnSLGvtImTIQ3z2D5uGH5RRc/4xgZa49lV+8SxSOuCpGNkRYCHBHhI2t97qLhVV1A==", - "path": "graphql.microsoftdi/7.6.0", - "hashPath": "graphql.microsoftdi.7.6.0.nupkg.sha512" - }, - "GraphQL.Server.Transports.AspNetCore/7.6.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-VvfmLhksM3uUsS2FrD2DQ3p62AztP076g7VpGZc1UF8TXkFG14qkC4e3RvcB/nn2xG/G2PnYPRfHGAoJgqfzQg==", - "path": "graphql.server.transports.aspnetcore/7.6.0", - "hashPath": "graphql.server.transports.aspnetcore.7.6.0.nupkg.sha512" - }, - "GraphQL.Server.Ui.Voyager/7.6.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-1kR29BoDO8TbtnAa0t7TK57xi5K9O7LV4QCoc0GsQzpWfc6H6w5rvkvoQG+SDV4KTgbq/LQUS82wMLadLGTWzg==", - "path": "graphql.server.ui.voyager/7.6.0", - "hashPath": "graphql.server.ui.voyager.7.6.0.nupkg.sha512" - }, - "GraphQL.SystemTextJson/7.6.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-lVErBl/5kpPBk9k3T6aebPHUDF+hMB9TmjYz8LtwXb2L/titTW8V9t/OlLTWAhTv08t9kLiVNQnbKptFLMF3Ug==", - "path": "graphql.systemtextjson/7.6.0", - "hashPath": "graphql.systemtextjson.7.6.0.nupkg.sha512" - }, - "Microsoft.Extensions.Caching.Abstractions/6.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-bcz5sSFJbganH0+YrfvIjJDIcKNW7TL07C4d1eTmXy/wOt52iz4LVogJb6pazs7W0+74j0YpXFErvp++Aq5Bsw==", - "path": "microsoft.extensions.caching.abstractions/6.0.0", - "hashPath": "microsoft.extensions.caching.abstractions.6.0.0.nupkg.sha512" - }, - "Microsoft.Extensions.DependencyInjection.Abstractions/6.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-xlzi2IYREJH3/m6+lUrQlujzX8wDitm4QGnUu6kUXTQAWPuZY8i+ticFJbzfqaetLA6KR/rO6Ew/HuYD+bxifg==", - "path": "microsoft.extensions.dependencyinjection.abstractions/6.0.0", - "hashPath": "microsoft.extensions.dependencyinjection.abstractions.6.0.0.nupkg.sha512" - }, - "Microsoft.Extensions.Logging.Abstractions/6.0.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-SUpStcdjeBbdKjPKe53hVVLkFjylX0yIXY8K+xWa47+o1d+REDyOMZjHZa+chsQI1K9qZeiHWk9jos0TFU7vGg==", - "path": "microsoft.extensions.logging.abstractions/6.0.3", - "hashPath": "microsoft.extensions.logging.abstractions.6.0.3.nupkg.sha512" - }, - "Microsoft.Extensions.Options/6.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-dzXN0+V1AyjOe2xcJ86Qbo233KHuLEY0njf/P2Kw8SfJU+d45HNS2ctJdnEnrWbM9Ye2eFgaC5Mj9otRMU6IsQ==", - "path": "microsoft.extensions.options/6.0.0", - "hashPath": "microsoft.extensions.options.6.0.0.nupkg.sha512" - }, - "Microsoft.Extensions.Primitives/6.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-9+PnzmQFfEFNR9J2aDTfJGGupShHjOuGw4VUv+JB044biSHrnmCIMD+mJHmb2H7YryrfBEXDurxQ47gJZdCKNQ==", - "path": "microsoft.extensions.primitives/6.0.0", - "hashPath": "microsoft.extensions.primitives.6.0.0.nupkg.sha512" - }, - "MySqlConnector/2.2.7": { - "type": "package", - "serviceable": true, - "sha512": "sha512-rwFa71MlOJ142S+BXDvtLRdAIn7l6PTNWu+Xehs2qRehK8dckjKqwvK8azEADCMkQyXS1LXgh9HkSvItpTi6WA==", - "path": "mysqlconnector/2.2.7", - "hashPath": "mysqlconnector.2.2.7.nupkg.sha512" - }, - "Newtonsoft.Json/13.0.3": { - "type": "package", - "serviceable": true, - "sha512": "sha512-HrC5BXdl00IP9zeV+0Z848QWPAoCr9P3bDEZguI+gkLcBKAOxix/tLEAAHC+UvDNPv4a2d18lOReHMOagPa+zQ==", - "path": "newtonsoft.json/13.0.3", - "hashPath": "newtonsoft.json.13.0.3.nupkg.sha512" - }, - "System.Runtime.CompilerServices.Unsafe/6.0.0": { - "type": "package", - "serviceable": true, - "sha512": "sha512-/iUeP3tq1S0XdNNoMz5C9twLSrM/TH+qElHkXWaPvuNOt+99G75NrV0OS2EqHx5wMN7popYjpc8oTjC1y16DLg==", - "path": "system.runtime.compilerservices.unsafe/6.0.0", - "hashPath": "system.runtime.compilerservices.unsafe.6.0.0.nupkg.sha512" - } - } -} \ No newline at end of file diff --git a/Server_Side/bin/Debug/net6.0/Server_Side.dll b/Server_Side/bin/Debug/net6.0/Server_Side.dll deleted file mode 100644 index caa56ed..0000000 Binary files a/Server_Side/bin/Debug/net6.0/Server_Side.dll and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/Server_Side.exe b/Server_Side/bin/Debug/net6.0/Server_Side.exe deleted file mode 100644 index c27fa5a..0000000 Binary files a/Server_Side/bin/Debug/net6.0/Server_Side.exe and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/Server_Side.pdb b/Server_Side/bin/Debug/net6.0/Server_Side.pdb deleted file mode 100644 index e23e173..0000000 Binary files a/Server_Side/bin/Debug/net6.0/Server_Side.pdb and /dev/null differ diff --git a/Server_Side/bin/Debug/net6.0/Server_Side.runtimeconfig.json b/Server_Side/bin/Debug/net6.0/Server_Side.runtimeconfig.json deleted file mode 100644 index dfb1b77..0000000 --- a/Server_Side/bin/Debug/net6.0/Server_Side.runtimeconfig.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "runtimeOptions": { - "tfm": "net6.0", - "frameworks": [ - { - "name": "Microsoft.NETCore.App", - "version": "6.0.0" - }, - { - "name": "Microsoft.AspNetCore.App", - "version": "6.0.0" - } - ], - "configProperties": { - "System.GC.Server": true, - "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false - } - } -} \ No newline at end of file diff --git a/Server_Side/bin/Debug/net6.0/Server_Side.staticwebassets.runtime.json b/Server_Side/bin/Debug/net6.0/Server_Side.staticwebassets.runtime.json deleted file mode 100644 index 4f548ad..0000000 --- a/Server_Side/bin/Debug/net6.0/Server_Side.staticwebassets.runtime.json +++ /dev/null @@ -1 +0,0 @@ -{"ContentRoots":["C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\"],"Root":{"Children":{"css":{"Children":{"style.css":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"css/style.css"},"Patterns":null}},"Asset":null,"Patterns":null},"image":{"Children":{"logo.png":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"image/logo.png"},"Patterns":null}},"Asset":null,"Patterns":null},"js":{"Children":{"chart.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"js/chart.js"},"Patterns":null},"script.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"js/script.js"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":[{"ContentRootIndex":0,"Pattern":"**","Depth":0}]}} \ No newline at end of file diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.AssemblyInfo.cs b/Server_Side/obj/Debug/net6.0/Server_Side.AssemblyInfo.cs index b1ba6bd..cb6c887 100644 --- a/Server_Side/obj/Debug/net6.0/Server_Side.AssemblyInfo.cs +++ b/Server_Side/obj/Debug/net6.0/Server_Side.AssemblyInfo.cs @@ -14,7 +14,7 @@ [assembly: System.Reflection.AssemblyCompanyAttribute("Server_Side")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b6c9c84071bbc8ec41575771a3c9d5e968ca2712")] [assembly: System.Reflection.AssemblyProductAttribute("Server_Side")] [assembly: System.Reflection.AssemblyTitleAttribute("Server_Side")] [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.AssemblyInfoInputs.cache b/Server_Side/obj/Debug/net6.0/Server_Side.AssemblyInfoInputs.cache index 1f2b940..c9aae04 100644 --- a/Server_Side/obj/Debug/net6.0/Server_Side.AssemblyInfoInputs.cache +++ b/Server_Side/obj/Debug/net6.0/Server_Side.AssemblyInfoInputs.cache @@ -1 +1 @@ -9a88cd46c2a06387439a165b9b7edeb50c70162a +aa8ae0f248c156eff4c763d2b002aee16d86b9e3323821a7774fa38f26134ae1 diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.GeneratedMSBuildEditorConfig.editorconfig b/Server_Side/obj/Debug/net6.0/Server_Side.GeneratedMSBuildEditorConfig.editorconfig index a5d900f..d7cdfae 100644 --- a/Server_Side/obj/Debug/net6.0/Server_Side.GeneratedMSBuildEditorConfig.editorconfig +++ b/Server_Side/obj/Debug/net6.0/Server_Side.GeneratedMSBuildEditorConfig.editorconfig @@ -10,6 +10,8 @@ build_property._SupportedPlatformList = Linux,macOS,Windows build_property.RootNamespace = Server_Side build_property.RootNamespace = Server_Side build_property.ProjectDir = C:\Users\gautam\Desktop\Project 5\Project Code\Server_Side\ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = build_property.RazorLangVersion = 6.0 build_property.SupportLocalizedComponentNames = build_property.GenerateRazorMetadataSourceChecksumAttributes = diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.RazorAssemblyInfo.cache b/Server_Side/obj/Debug/net6.0/Server_Side.RazorAssemblyInfo.cache index f24b41d..ecb9c97 100644 --- a/Server_Side/obj/Debug/net6.0/Server_Side.RazorAssemblyInfo.cache +++ b/Server_Side/obj/Debug/net6.0/Server_Side.RazorAssemblyInfo.cache @@ -1 +1 @@ -5860763757f4f08c7ebdea1b3a94a18109f17861 +d5ac7ab69059af111e9d7125adeb7b174ca570725d4b64a544cca7bd11ac7ca0 diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.assets.cache b/Server_Side/obj/Debug/net6.0/Server_Side.assets.cache index f4cbe8c..0726579 100644 Binary files a/Server_Side/obj/Debug/net6.0/Server_Side.assets.cache and b/Server_Side/obj/Debug/net6.0/Server_Side.assets.cache differ diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.csproj.CopyComplete b/Server_Side/obj/Debug/net6.0/Server_Side.csproj.CopyComplete deleted file mode 100644 index e69de29..0000000 diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.csproj.CoreCompileInputs.cache b/Server_Side/obj/Debug/net6.0/Server_Side.csproj.CoreCompileInputs.cache index c78b25d..5def4c0 100644 --- a/Server_Side/obj/Debug/net6.0/Server_Side.csproj.CoreCompileInputs.cache +++ b/Server_Side/obj/Debug/net6.0/Server_Side.csproj.CoreCompileInputs.cache @@ -1 +1 @@ -ad254b4fd808e99f96d85491cae1ab80a8e73821 +a356db6203c39654f931d072cd233d477d4d6f65f718a3fa7e2c4a9b1d249c64 diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.csproj.FileListAbsolute.txt b/Server_Side/obj/Debug/net6.0/Server_Side.csproj.FileListAbsolute.txt index b86c640..bdd73a8 100644 --- a/Server_Side/obj/Debug/net6.0/Server_Side.csproj.FileListAbsolute.txt +++ b/Server_Side/obj/Debug/net6.0/Server_Side.csproj.FileListAbsolute.txt @@ -221,3 +221,4 @@ C:\Users\lknap\Source\Repos\CSCN73030_Project_Advanced_Software\Server_Side\obj\ C:\Users\lknap\Source\Repos\CSCN73030_Project_Advanced_Software\Server_Side\obj\Debug\net6.0\Server_Side.pdb C:\Users\lknap\Source\Repos\CSCN73030_Project_Advanced_Software\Server_Side\obj\Debug\net6.0\Server_Side.genruntimeconfig.cache C:\Users\lknap\Source\Repos\CSCN73030_Project_Advanced_Software\Server_Side\obj\Debug\net6.0\ref\Server_Side.dll +C:\Users\gautam\Desktop\Project 5\Project Code\Server_Side\obj\Debug\net6.0\Server_Side.sourcelink.json diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.dll b/Server_Side/obj/Debug/net6.0/Server_Side.dll deleted file mode 100644 index caa56ed..0000000 Binary files a/Server_Side/obj/Debug/net6.0/Server_Side.dll and /dev/null differ diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.genruntimeconfig.cache b/Server_Side/obj/Debug/net6.0/Server_Side.genruntimeconfig.cache deleted file mode 100644 index 79e17f9..0000000 --- a/Server_Side/obj/Debug/net6.0/Server_Side.genruntimeconfig.cache +++ /dev/null @@ -1 +0,0 @@ -0a60d48f5fb1e98c7cc895ca43d9b8ceccb727ce diff --git a/Server_Side/obj/Debug/net6.0/Server_Side.pdb b/Server_Side/obj/Debug/net6.0/Server_Side.pdb deleted file mode 100644 index e23e173..0000000 Binary files a/Server_Side/obj/Debug/net6.0/Server_Side.pdb and /dev/null differ diff --git a/Server_Side/obj/Debug/net6.0/ref/Server_Side.dll b/Server_Side/obj/Debug/net6.0/ref/Server_Side.dll deleted file mode 100644 index 68e579e..0000000 Binary files a/Server_Side/obj/Debug/net6.0/ref/Server_Side.dll and /dev/null differ diff --git a/Server_Side/obj/Debug/net6.0/refint/Server_Side.dll b/Server_Side/obj/Debug/net6.0/refint/Server_Side.dll deleted file mode 100644 index 68e579e..0000000 Binary files a/Server_Side/obj/Debug/net6.0/refint/Server_Side.dll and /dev/null differ diff --git a/Server_Side/obj/Debug/net6.0/staticwebassets.build.json b/Server_Side/obj/Debug/net6.0/staticwebassets.build.json deleted file mode 100644 index c73f51a..0000000 --- a/Server_Side/obj/Debug/net6.0/staticwebassets.build.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "Version": 1, - "Hash": "tN76Y4z8MN5RzshjLUlcMf6k66zIZTlKUvOWnVgo70o=", - "Source": "Server_Side", - "BasePath": "_content/Server_Side", - "Mode": "Default", - "ManifestType": "Build", - "ReferencedProjectsConfiguration": [], - "DiscoveryPatterns": [ - { - "Name": "Server_Side\\wwwroot", - "Source": "Server_Side", - "ContentRoot": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\", - "BasePath": "_content/Server_Side", - "Pattern": "**" - } - ], - "Assets": [ - { - "Identity": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\css\\style.css", - "SourceId": "Server_Side", - "SourceType": "Discovered", - "ContentRoot": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\", - "BasePath": "_content/Server_Side", - "RelativePath": "css/style.css", - "AssetKind": "All", - "AssetMode": "All", - "AssetRole": "Primary", - "RelatedAsset": "", - "AssetTraitName": "", - "AssetTraitValue": "", - "CopyToOutputDirectory": "Never", - "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "wwwroot\\css\\style.css" - }, - { - "Identity": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\image\\logo.png", - "SourceId": "Server_Side", - "SourceType": "Discovered", - "ContentRoot": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\", - "BasePath": "_content/Server_Side", - "RelativePath": "image/logo.png", - "AssetKind": "All", - "AssetMode": "All", - "AssetRole": "Primary", - "RelatedAsset": "", - "AssetTraitName": "", - "AssetTraitValue": "", - "CopyToOutputDirectory": "Never", - "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "wwwroot\\image\\logo.png" - }, - { - "Identity": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\js\\chart.js", - "SourceId": "Server_Side", - "SourceType": "Discovered", - "ContentRoot": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\", - "BasePath": "_content/Server_Side", - "RelativePath": "js/chart.js", - "AssetKind": "All", - "AssetMode": "All", - "AssetRole": "Primary", - "RelatedAsset": "", - "AssetTraitName": "", - "AssetTraitValue": "", - "CopyToOutputDirectory": "Never", - "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "wwwroot\\js\\chart.js" - }, - { - "Identity": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\js\\script.js", - "SourceId": "Server_Side", - "SourceType": "Discovered", - "ContentRoot": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\", - "BasePath": "_content/Server_Side", - "RelativePath": "js/script.js", - "AssetKind": "All", - "AssetMode": "All", - "AssetRole": "Primary", - "RelatedAsset": "", - "AssetTraitName": "", - "AssetTraitValue": "", - "CopyToOutputDirectory": "Never", - "CopyToPublishDirectory": "PreserveNewest", - "OriginalItemSpec": "wwwroot\\js\\script.js" - } - ] -} \ No newline at end of file diff --git a/Server_Side/obj/Debug/net6.0/staticwebassets.development.json b/Server_Side/obj/Debug/net6.0/staticwebassets.development.json deleted file mode 100644 index 4f548ad..0000000 --- a/Server_Side/obj/Debug/net6.0/staticwebassets.development.json +++ /dev/null @@ -1 +0,0 @@ -{"ContentRoots":["C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\"],"Root":{"Children":{"css":{"Children":{"style.css":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"css/style.css"},"Patterns":null}},"Asset":null,"Patterns":null},"image":{"Children":{"logo.png":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"image/logo.png"},"Patterns":null}},"Asset":null,"Patterns":null},"js":{"Children":{"chart.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"js/chart.js"},"Patterns":null},"script.js":{"Children":null,"Asset":{"ContentRootIndex":0,"SubPath":"js/script.js"},"Patterns":null}},"Asset":null,"Patterns":null}},"Asset":null,"Patterns":[{"ContentRootIndex":0,"Pattern":"**","Depth":0}]}} \ No newline at end of file diff --git a/Server_Side/obj/Debug/net6.0/staticwebassets.pack.json b/Server_Side/obj/Debug/net6.0/staticwebassets.pack.json deleted file mode 100644 index e3dae51..0000000 --- a/Server_Side/obj/Debug/net6.0/staticwebassets.pack.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "Files": [ - { - "Id": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\css\\style.css", - "PackagePath": "staticwebassets\\css\\style.css" - }, - { - "Id": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\image\\logo.png", - "PackagePath": "staticwebassets\\image\\logo.png" - }, - { - "Id": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\js\\chart.js", - "PackagePath": "staticwebassets\\js\\chart.js" - }, - { - "Id": "C:\\Users\\lknap\\Source\\Repos\\CSCN73030_Project_Advanced_Software\\Server_Side\\wwwroot\\js\\script.js", - "PackagePath": "staticwebassets\\js\\script.js" - }, - { - "Id": "obj\\Debug\\net6.0\\staticwebassets\\msbuild.Server_Side.Microsoft.AspNetCore.StaticWebAssets.props", - "PackagePath": "build\\Microsoft.AspNetCore.StaticWebAssets.props" - }, - { - "Id": "obj\\Debug\\net6.0\\staticwebassets\\msbuild.build.Server_Side.props", - "PackagePath": "build\\Server_Side.props" - }, - { - "Id": "obj\\Debug\\net6.0\\staticwebassets\\msbuild.buildMultiTargeting.Server_Side.props", - "PackagePath": "buildMultiTargeting\\Server_Side.props" - }, - { - "Id": "obj\\Debug\\net6.0\\staticwebassets\\msbuild.buildTransitive.Server_Side.props", - "PackagePath": "buildTransitive\\Server_Side.props" - } - ], - "ElementsToRemove": [] -} \ No newline at end of file diff --git a/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.Server_Side.Microsoft.AspNetCore.StaticWebAssets.props b/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.Server_Side.Microsoft.AspNetCore.StaticWebAssets.props deleted file mode 100644 index a3e89ed..0000000 --- a/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.Server_Side.Microsoft.AspNetCore.StaticWebAssets.props +++ /dev/null @@ -1,68 +0,0 @@ - - - - Package - Server_Side - $(MSBuildThisFileDirectory)..\staticwebassets\ - _content/Server_Side - css/style.css - All - All - Primary - - - - Never - PreserveNewest - $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\css\style.css)) - - - Package - Server_Side - $(MSBuildThisFileDirectory)..\staticwebassets\ - _content/Server_Side - image/logo.png - All - All - Primary - - - - Never - PreserveNewest - $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\image\logo.png)) - - - Package - Server_Side - $(MSBuildThisFileDirectory)..\staticwebassets\ - _content/Server_Side - js/chart.js - All - All - Primary - - - - Never - PreserveNewest - $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\js\chart.js)) - - - Package - Server_Side - $(MSBuildThisFileDirectory)..\staticwebassets\ - _content/Server_Side - js/script.js - All - All - Primary - - - - Never - PreserveNewest - $([System.IO.Path]::GetFullPath($(MSBuildThisFileDirectory)..\staticwebassets\js\script.js)) - - - \ No newline at end of file diff --git a/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.build.Server_Side.props b/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.build.Server_Side.props deleted file mode 100644 index 5a6032a..0000000 --- a/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.build.Server_Side.props +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.buildMultiTargeting.Server_Side.props b/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.buildMultiTargeting.Server_Side.props deleted file mode 100644 index a840908..0000000 --- a/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.buildMultiTargeting.Server_Side.props +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.buildTransitive.Server_Side.props b/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.buildTransitive.Server_Side.props deleted file mode 100644 index 942ca42..0000000 --- a/Server_Side/obj/Debug/net6.0/staticwebassets/msbuild.buildTransitive.Server_Side.props +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/Server_Side/obj/Server_Side.csproj.nuget.dgspec.json b/Server_Side/obj/Server_Side.csproj.nuget.dgspec.json index fa15097..c63d07d 100644 --- a/Server_Side/obj/Server_Side.csproj.nuget.dgspec.json +++ b/Server_Side/obj/Server_Side.csproj.nuget.dgspec.json @@ -88,7 +88,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100\\RuntimeIdentifierGraph.json" } } } diff --git a/Server_Side/obj/Server_Side.csproj.nuget.g.props b/Server_Side/obj/Server_Side.csproj.nuget.g.props index 9927d6b..c15e599 100644 --- a/Server_Side/obj/Server_Side.csproj.nuget.g.props +++ b/Server_Side/obj/Server_Side.csproj.nuget.g.props @@ -7,7 +7,7 @@ $(UserProfile)\.nuget\packages\ C:\Users\gautam\.nuget\packages\ PackageReference - 6.7.0 + 6.8.0 diff --git a/Server_Side/obj/project.assets.json b/Server_Side/obj/project.assets.json index b8a5644..7aa4abc 100644 --- a/Server_Side/obj/project.assets.json +++ b/Server_Side/obj/project.assets.json @@ -736,7 +736,7 @@ "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\7.0.400\\RuntimeIdentifierGraph.json" + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\8.0.100\\RuntimeIdentifierGraph.json" } } } diff --git a/Server_Side/obj/project.nuget.cache b/Server_Side/obj/project.nuget.cache index 2c35280..f11e511 100644 --- a/Server_Side/obj/project.nuget.cache +++ b/Server_Side/obj/project.nuget.cache @@ -1,6 +1,6 @@ { "version": 2, - "dgSpecHash": "3of2FWthAbZxeVH3CXuikl2RTY92XBo37ma0UYd5NEledIHYdEqn4p3wrqLZlk3Wf8yMmgVbu00sDicjkdyHZw==", + "dgSpecHash": "o14t5EJD7OtuvLfNk0e8ux4lbuXIlBbSU/2bWrKqRaXNnzsGA1bPk7vVXts0/yW9txN0J5fTG9q21cOgpqwu7w==", "success": true, "projectFilePath": "C:\\Users\\gautam\\Desktop\\Project 5\\Project Code\\Server_Side\\Server_Side.csproj", "expectedPackageFiles": [