diff --git a/blazor-wasm-boilerplate-main/.dockerignore b/blazor-wasm-boilerplate-main/.dockerignore
deleted file mode 100644
index 3729ff0..0000000
--- a/blazor-wasm-boilerplate-main/.dockerignore
+++ /dev/null
@@ -1,25 +0,0 @@
-**/.classpath
-**/.dockerignore
-**/.env
-**/.git
-**/.gitignore
-**/.project
-**/.settings
-**/.toolstarget
-**/.vs
-**/.vscode
-**/*.*proj.user
-**/*.dbmdl
-**/*.jfm
-**/azds.yaml
-**/bin
-**/charts
-**/docker-compose*
-**/Dockerfile*
-**/node_modules
-**/npm-debug.log
-**/obj
-**/secrets.dev.yaml
-**/values.dev.yaml
-LICENSE
-README.md
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/.editorconfig b/blazor-wasm-boilerplate-main/.editorconfig
deleted file mode 100644
index c426b48..0000000
--- a/blazor-wasm-boilerplate-main/.editorconfig
+++ /dev/null
@@ -1,158 +0,0 @@
-root = true
-
-[*]
-roslynator_accessibility_modifiers = explicit
-roslynator_use_anonymous_function_or_method_group = anonymous_function|method_group
-roslynator_enum_has_flag_style = method
-roslynator_object_creation_type_style = explicit|implicit|implicit_when_type_is_obvious
-
-indent_style = space
-
-trim_trailing_whitespace = true
-
-insert_final_newline = false
-
-[*.md]
-trim_trailing_whitespace = false
-
-[*.json]
-indent_size = 2
-
-[*.cs]
-dotnet_sort_system_directives_first = true:warning
-
-csharp_style_namespace_declarations = file_scoped:warning
-
-csharp_style_var_for_built_in_types = false:warning
-
-csharp_style_var_when_type_is_apparent = true:warning
-
-csharp_style_var_elsewhere = true:warning
-
-csharp_new_line_before_members_in_anonymous_types = true:warning
-
-# SA1623: Property summary documentation should match accessors
-dotnet_diagnostic.SA1623.severity = none
-
-# SA1101: Prefix local calls with this
-dotnet_diagnostic.SA1101.severity = none
-
-# SA1642: Constructor summary documentation should begin with standard text
-dotnet_diagnostic.SA1642.severity = none
-
-# SA1309: Field names should not begin with underscore
-dotnet_diagnostic.SA1309.severity = none
-
-# RCS1194: Implement exception constructors.
-dotnet_diagnostic.RCS1194.severity = none
-
-# SA1000: Keywords should be spaced correctly
-dotnet_diagnostic.SA1000.severity = none
-
-# SA1124: Do not use regions
-dotnet_diagnostic.SA1124.severity = none
-
-# SA1413: Use trailing comma in multi-line initializers
-dotnet_diagnostic.SA1413.severity = none
-
-# SA1201: Elements should appear in the correct order
-dotnet_diagnostic.SA1201.severity = suggestion
-
-# SA1638: File header file name documentation should match file name
-dotnet_diagnostic.SA1638.severity = warning
-
-# SA1633: File should have header
-dotnet_diagnostic.SA1633.severity = none
-
-# SA1404: Code analysis suppression should have justification
-dotnet_diagnostic.SA1404.severity = none
-
-# SA1206: Declaration keywords should follow order
-dotnet_diagnostic.SA1206.severity = none
-
-# CA1040: Avoid empty interfaces
-dotnet_diagnostic.CA1040.severity = none
-
-# RCS1012: Use explicit type instead of 'var'
-dotnet_diagnostic.RCS1012.severity = none
-
-# RCS1008: Use explicit type instead of 'var'
-dotnet_diagnostic.RCS1008.severity = none
-
-# CA1725
-dotnet_diagnostic.CA1725.severity = none
-
-# RCS1009: Use explicit type instead of 'var'
-dotnet_diagnostic.RCS1009.severity = none
-
-# SA1402: File may only contain a single type
-dotnet_diagnostic.SA1402.severity = suggestion
-
-# CA1711
-dotnet_diagnostic.CA1711.severity = none
-
-# CA1720: Identifier contains type name
-dotnet_diagnostic.CA1720.severity = none
-
-# IDE0022: Use block body for methods
-dotnet_diagnostic.IDE0022.severity = none
-
-# SA1011: Closing square brackets should be spaced correctly
-dotnet_diagnostic.SA1011.severity = none
-
-# CA1721
-dotnet_diagnostic.CA1721.severity = none
-
-# SA1313: Parameter names should begin with lower-case letter
-dotnet_diagnostic.SA1313.severity = none
-
-# SecurityIntelliSenseCS: MS Security rules violation
-dotnet_diagnostic.SecurityIntelliSenseCS.severity = suggestion
-
-# SA1123: Do not place regions within elements
-dotnet_diagnostic.SA1123.severity = none
-
-# RCS1046: Add suffix 'Async' to asynchronous method name
-dotnet_diagnostic.RCS1046.severity = warning
-
-# SA1625: Element documentation should not be copied and pasted
-dotnet_diagnostic.SA1625.severity = none
-
-# SCS9999
-dotnet_diagnostic.SCS9999.severity = none
-
-# RCS1090 Add call to 'ConfigureAwait'
-dotnet_diagnostic.RCS1090.severity = none
-
-# RCS1170 Use read-only auto-implemented property
-dotnet_diagnostic.RCS1170.severity = none
-
-# SA1649
-dotnet_diagnostic.SA1649.severity = none
-
-# RCS1021 Use expression-bodied lambda.
-dotnet_diagnostic.RCS1021.severity = none
-
-# RCS1047 Remove suffix 'Async' from non-asynchronous method name.
-# dotnet_diagnostic.RCS1047.severity = silent
-
-# SA1600 Elements should be documented
-dotnet_diagnostic.SA1600.severity = silent
-
-# CS1591 Missing XML comment for publicly visible type or member
-dotnet_diagnostic.CS1591.severity = none
-
-# SA1602: Enumeration items should be documented
-dotnet_diagnostic.SA1602.severity = none
-
-# CA1720 Identifier 'Decimal' contains type name
-dotnet_diagnostic.CA1720.severity = none
-
-# SA1601: Partial elements should be documented
-dotnet_diagnostic.SA1601.severity = silent
-
-# CA1711 Rename type name UserEventHandler so that it does not end in 'EventHandler'
-dotnet_diagnostic.CA1711.severity = none
-
-# CA1307: Specify StringComparison for clarity
-dotnet_diagnostic.CA1307.severity = none
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/.github/FUNDING.yml b/blazor-wasm-boilerplate-main/.github/FUNDING.yml
deleted file mode 100644
index 14b7856..0000000
--- a/blazor-wasm-boilerplate-main/.github/FUNDING.yml
+++ /dev/null
@@ -1,3 +0,0 @@
-# These are supported funding model platforms
-open_collective: fullstackhero
-custom: ['https://www.buymeacoffee.com/codewithmukesh']
diff --git a/blazor-wasm-boilerplate-main/.github/dependabot.yml b/blazor-wasm-boilerplate-main/.github/dependabot.yml
deleted file mode 100644
index 03ec545..0000000
--- a/blazor-wasm-boilerplate-main/.github/dependabot.yml
+++ /dev/null
@@ -1,11 +0,0 @@
-# To get started with Dependabot version updates, you'll need to specify which
-# package ecosystems to update and where the package manifests are located.
-# Please see the documentation for all configuration options:
-# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
-
-version: 2
-updates:
- - package-ecosystem: "nuget" # See documentation for possible values
- directory: "/" # Location of package manifests
- schedule:
- interval: "daily"
diff --git a/blazor-wasm-boilerplate-main/.github/workflows/dotnet.yml b/blazor-wasm-boilerplate-main/.github/workflows/dotnet.yml
deleted file mode 100644
index 31607fa..0000000
--- a/blazor-wasm-boilerplate-main/.github/workflows/dotnet.yml
+++ /dev/null
@@ -1,25 +0,0 @@
-name: .NET
-
-on:
- push:
- branches: [ main ]
- pull_request:
- branches: [ main ]
-
-jobs:
- build:
-
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v2
- - name: Setup .NET
- uses: actions/setup-dotnet@v1
- with:
- dotnet-version: 6.0.x
- - name: Restore dependencies
- run: dotnet restore
- - name: Build
- run: dotnet build --no-restore
- - name: Test
- run: dotnet test --no-build --verbosity normal
diff --git a/blazor-wasm-boilerplate-main/.gitignore b/blazor-wasm-boilerplate-main/.gitignore
deleted file mode 100644
index 8afdcb6..0000000
--- a/blazor-wasm-boilerplate-main/.gitignore
+++ /dev/null
@@ -1,454 +0,0 @@
-## Ignore Visual Studio temporary files, build results, and
-## files generated by popular Visual Studio add-ons.
-##
-## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
-
-# User-specific files
-*.rsuser
-*.suo
-*.user
-*.userosscache
-*.sln.docstates
-
-# User-specific files (MonoDevelop/Xamarin Studio)
-*.userprefs
-
-# Mono auto generated files
-mono_crash.*
-
-# Build results
-[Dd]ebug/
-[Dd]ebugPublic/
-[Rr]elease/
-[Rr]eleases/
-x64/
-x86/
-[Ww][Ii][Nn]32/
-[Aa][Rr][Mm]/
-[Aa][Rr][Mm]64/
-bld/
-[Bb]in/
-[Oo]bj/
-[Ll]og/
-[Ll]ogs/
-
-# Visual Studio 2015/2017 cache/options directory
-.vs/
-# Uncomment if you have tasks that create the project's static files in wwwroot
-#wwwroot/
-
-# Visual Studio 2017 auto generated files
-Generated\ Files/
-
-# MSTest test Results
-[Tt]est[Rr]esult*/
-[Bb]uild[Ll]og.*
-
-# NUnit
-*.VisualState.xml
-TestResult.xml
-nunit-*.xml
-
-# Build Results of an ATL Project
-[Dd]ebugPS/
-[Rr]eleasePS/
-dlldata.c
-
-# Benchmark Results
-BenchmarkDotNet.Artifacts/
-
-# .NET Core
-project.lock.json
-project.fragment.lock.json
-artifacts/
-
-# Tye
-.tye/
-
-# ASP.NET Scaffolding
-ScaffoldingReadMe.txt
-
-# StyleCop
-StyleCopReport.xml
-
-# Files built by Visual Studio
-*_i.c
-*_p.c
-*_h.h
-*.ilk
-*.meta
-*.obj
-*.iobj
-*.pch
-*.pdb
-*.ipdb
-*.pgc
-*.pgd
-*.rsp
-*.sbr
-*.tlb
-*.tli
-*.tlh
-*.tmp
-*.tmp_proj
-*_wpftmp.csproj
-*.log
-*.vspscc
-*.vssscc
-.builds
-*.pidb
-*.svclog
-*.scc
-
-# Chutzpah Test files
-_Chutzpah*
-
-# Visual C++ cache files
-ipch/
-*.aps
-*.ncb
-*.opendb
-*.opensdf
-*.sdf
-*.cachefile
-*.VC.db
-*.VC.VC.opendb
-
-# Visual Studio profiler
-*.psess
-*.vsp
-*.vspx
-*.sap
-
-# Visual Studio Trace Files
-*.e2e
-
-# TFS 2012 Local Workspace
-$tf/
-
-# Guidance Automation Toolkit
-*.gpState
-
-# ReSharper is a .NET coding add-in
-_ReSharper*/
-*.[Rr]e[Ss]harper
-*.DotSettings.user
-
-# TeamCity is a build add-in
-_TeamCity*
-
-# DotCover is a Code Coverage Tool
-*.dotCover
-
-# AxoCover is a Code Coverage Tool
-.axoCover/*
-!.axoCover/settings.json
-
-# Coverlet is a free, cross platform Code Coverage Tool
-coverage*.json
-coverage*.xml
-coverage*.info
-
-# Visual Studio code coverage results
-*.coverage
-*.coveragexml
-
-# NCrunch
-_NCrunch_*
-.*crunch*.local.xml
-nCrunchTemp_*
-
-# MightyMoose
-*.mm.*
-AutoTest.Net/
-
-# Web workbench (sass)
-.sass-cache/
-
-# Installshield output folder
-[Ee]xpress/
-
-# DocProject is a documentation generator add-in
-DocProject/buildhelp/
-DocProject/Help/*.HxT
-DocProject/Help/*.HxC
-DocProject/Help/*.hhc
-DocProject/Help/*.hhk
-DocProject/Help/*.hhp
-DocProject/Help/Html2
-DocProject/Help/html
-
-# Click-Once directory
-publish/
-
-# Publish Web Output
-*.[Pp]ublish.xml
-*.azurePubxml
-# Note: Comment the next line if you want to checkin your web deploy settings,
-# but database connection strings (with potential passwords) will be unencrypted
-*.pubxml
-*.publishproj
-
-# Microsoft Azure Web App publish settings. Comment the next line if you want to
-# checkin your Azure Web App publish settings, but sensitive information contained
-# in these scripts will be unencrypted
-PublishScripts/
-
-# NuGet Packages
-*.nupkg
-# NuGet Symbol Packages
-*.snupkg
-# The packages folder can be ignored because of Package Restore
-**/[Pp]ackages/*
-# except build/, which is used as an MSBuild target.
-!**/[Pp]ackages/build/
-# Uncomment if necessary however generally it will be regenerated when needed
-#!**/[Pp]ackages/repositories.config
-# NuGet v3's project.json files produces more ignorable files
-*.nuget.props
-*.nuget.targets
-
-# Microsoft Azure Build Output
-csx/
-*.build.csdef
-
-# Microsoft Azure Emulator
-ecf/
-rcf/
-
-# Windows Store app package directories and files
-AppPackages/
-BundleArtifacts/
-Package.StoreAssociation.xml
-_pkginfo.txt
-*.appx
-*.appxbundle
-*.appxupload
-
-# Visual Studio cache files
-# files ending in .cache can be ignored
-*.[Cc]ache
-# but keep track of directories ending in .cache
-!?*.[Cc]ache/
-
-# Others
-ClientBin/
-~$*
-*~
-*.dbmdl
-*.dbproj.schemaview
-*.jfm
-*.pfx
-*.publishsettings
-orleans.codegen.cs
-
-# Including strong name files can present a security risk
-# (https://github.com/github/gitignore/pull/2483#issue-259490424)
-#*.snk
-
-# Since there are multiple workflows, uncomment next line to ignore bower_components
-# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
-#bower_components/
-
-# RIA/Silverlight projects
-Generated_Code/
-
-# Backup & report files from converting an old project file
-# to a newer Visual Studio version. Backup files are not needed,
-# because we have git ;-)
-_UpgradeReport_Files/
-Backup*/
-UpgradeLog*.XML
-UpgradeLog*.htm
-ServiceFabricBackup/
-*.rptproj.bak
-
-# SQL Server files
-*.mdf
-*.ldf
-*.ndf
-
-# Business Intelligence projects
-*.rdl.data
-*.bim.layout
-*.bim_*.settings
-*.rptproj.rsuser
-*- [Bb]ackup.rdl
-*- [Bb]ackup ([0-9]).rdl
-*- [Bb]ackup ([0-9][0-9]).rdl
-
-# Microsoft Fakes
-FakesAssemblies/
-
-# GhostDoc plugin setting file
-*.GhostDoc.xml
-
-# Node.js Tools for Visual Studio
-.ntvs_analysis.dat
-node_modules/
-
-# Visual Studio 6 build log
-*.plg
-
-# Visual Studio 6 workspace options file
-*.opt
-
-# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
-*.vbw
-
-# Visual Studio LightSwitch build output
-**/*.HTMLClient/GeneratedArtifacts
-**/*.DesktopClient/GeneratedArtifacts
-**/*.DesktopClient/ModelManifest.xml
-**/*.Server/GeneratedArtifacts
-**/*.Server/ModelManifest.xml
-_Pvt_Extensions
-
-# Paket dependency manager
-.paket/paket.exe
-paket-files/
-
-# FAKE - F# Make
-.fake/
-
-# CodeRush personal settings
-.cr/personal
-
-# Python Tools for Visual Studio (PTVS)
-__pycache__/
-*.pyc
-
-# Cake - Uncomment if you are using it
-# tools/**
-# !tools/packages.config
-
-# Tabs Studio
-*.tss
-
-# Telerik's JustMock configuration file
-*.jmconfig
-
-# BizTalk build output
-*.btp.cs
-*.btm.cs
-*.odx.cs
-*.xsd.cs
-
-# OpenCover UI analysis results
-OpenCover/
-
-# Azure Stream Analytics local run output
-ASALocalRun/
-
-# MSBuild Binary and Structured Log
-*.binlog
-
-# NVidia Nsight GPU debugger configuration file
-*.nvuser
-
-# MFractors (Xamarin productivity tool) working folder
-.mfractor/
-
-# Local History for Visual Studio
-.localhistory/
-
-# BeatPulse healthcheck temp database
-healthchecksdb
-
-# Backup folder for Package Reference Convert tool in Visual Studio 2017
-MigrationBackup/
-
-# Ionide (cross platform F# VS Code tools) working folder
-.ionide/
-
-# Fody - auto-generated XML schema
-FodyWeavers.xsd
-
-##
-## Visual studio for Mac
-##
-
-
-# globs
-Makefile.in
-*.userprefs
-*.usertasks
-config.make
-config.status
-aclocal.m4
-install-sh
-autom4te.cache/
-*.tar.gz
-tarballs/
-test-results/
-
-# Mac bundle stuff
-*.dmg
-*.app
-
-# content below from: https://github.com/github/gitignore/blob/master/Global/macOS.gitignore
-# General
-.DS_Store
-.AppleDouble
-.LSOverride
-
-# Icon must end with two \r
-Icon
-
-
-# Thumbnails
-._*
-
-# Files that might appear in the root of a volume
-.DocumentRevisions-V100
-.fseventsd
-.Spotlight-V100
-.TemporaryItems
-.Trashes
-.VolumeIcon.icns
-.com.apple.timemachine.donotpresent
-
-# Directories potentially created on remote AFP share
-.AppleDB
-.AppleDesktop
-Network Trash Folder
-Temporary Items
-.apdisk
-
-# content below from: https://github.com/github/gitignore/blob/master/Global/Windows.gitignore
-# Windows thumbnail cache files
-Thumbs.db
-ehthumbs.db
-ehthumbs_vista.db
-
-# Dump file
-*.stackdump
-
-# Folder config file
-[Dd]esktop.ini
-
-# Recycle Bin used on file shares
-$RECYCLE.BIN/
-
-# Windows Installer files
-*.cab
-*.msi
-*.msix
-*.msm
-*.msp
-
-# Windows shortcuts
-*.lnk
-
-# JetBrains Rider
-.idea/
-*.sln.iml
-
-##
-## Visual Studio Code
-##
-.vscode/*
-!.vscode/settings.json
-!.vscode/tasks.json
-!.vscode/launch.json
-!.vscode/extensions.json
diff --git a/blazor-wasm-boilerplate-main/.template.config/icon.png b/blazor-wasm-boilerplate-main/.template.config/icon.png
deleted file mode 100644
index fd9fa41..0000000
Binary files a/blazor-wasm-boilerplate-main/.template.config/icon.png and /dev/null differ
diff --git a/blazor-wasm-boilerplate-main/.template.config/ide.host.json b/blazor-wasm-boilerplate-main/.template.config/ide.host.json
deleted file mode 100644
index 837778b..0000000
--- a/blazor-wasm-boilerplate-main/.template.config/ide.host.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "$schema": "http://json.schemastore.org/vs-2017.3.host",
- "order": 0,
- "icon": "icon.png"
-}
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/.template.config/template.json b/blazor-wasm-boilerplate-main/.template.config/template.json
deleted file mode 100644
index 5fbff2b..0000000
--- a/blazor-wasm-boilerplate-main/.template.config/template.json
+++ /dev/null
@@ -1,51 +0,0 @@
-{
- "$schema": "http://json.schemastore.org/template",
- "author": "Mukesh Murugan",
- "classifications": [
- "Blazor",
- "WASM",
- "WebAssembly",
- "Clean Architecture",
- "Boilerplate",
- "macOS",
- "Windows",
- "Cloud",
- "Web"
- ],
- "tags": {
- "language": "C#",
- "type": "project"
- },
- "identity": "FullStackHero.BlazorWebAssembly.Boilerplate",
- "name": "Blazor WebAssembly Boilerplate - FullStackHero",
- "description": "Clean Architecture Boilerplate Template for .NET 6.0 Blazor WebAssembly built for FSH WebAPI with the goodness of MudBlazor Components.",
- "shortName": "fsh-blazor",
- "sourceName": "FSH.BlazorWebAssembly",
- "preferNameDirectory": true,
- "sources": [
- {
- "source": "./",
- "target": "./",
- "exclude": [
- ".template.config/**"
- ]
- }
- ],
- "primaryOutputs": [
- {
- "path": "./"
- }
- ],
- "postActions": [
- {
- "description": "Restore NuGet packages required by this project.",
- "manualInstructions": [
- {
- "text": "Run 'dotnet restore'"
- }
- ],
- "actionId": "210D431B-A78B-4D2F-B762-4ED3E3EA9025",
- "continueOnError": true
- }
- ]
-}
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/.vscode/launch.json b/blazor-wasm-boilerplate-main/.vscode/launch.json
deleted file mode 100644
index cfcc0fe..0000000
--- a/blazor-wasm-boilerplate-main/.vscode/launch.json
+++ /dev/null
@@ -1,12 +0,0 @@
-{
- "version": "0.2.0",
- "configurations": [
- {
- "name": "Launch and Debug Standalone Blazor WebAssembly App",
- "type": "blazorwasm",
- "request": "launch",
- "cwd": "${workspaceFolder}/src/Host",
- "url": "https://localhost:5002"
- }
- ]
-}
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/.vscode/settings.json b/blazor-wasm-boilerplate-main/.vscode/settings.json
deleted file mode 100644
index fe20a1c..0000000
--- a/blazor-wasm-boilerplate-main/.vscode/settings.json
+++ /dev/null
@@ -1,8 +0,0 @@
-{
- "razor.disableBlazorDebugPrompt": true,
- "cSpell.words": [
- "Blazored",
- "borderradius",
- "Upto"
- ]
-}
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/.vscode/tasks.json b/blazor-wasm-boilerplate-main/.vscode/tasks.json
deleted file mode 100644
index 444731d..0000000
--- a/blazor-wasm-boilerplate-main/.vscode/tasks.json
+++ /dev/null
@@ -1,42 +0,0 @@
-{
- "version": "2.0.0",
- "tasks": [
- {
- "label": "build",
- "command": "dotnet",
- "type": "process",
- "args": [
- "build",
- "${workspaceFolder}/src/Host/Host.csproj",
- "/property:GenerateFullPaths=true",
- "/consoleloggerparameters:NoSummary"
- ],
- "problemMatcher": "$msCompile"
- },
- {
- "label": "publish",
- "command": "dotnet",
- "type": "process",
- "args": [
- "publish",
- "${workspaceFolder}/src/Host/Host.csproj",
- "/property:GenerateFullPaths=true",
- "/consoleloggerparameters:NoSummary"
- ],
- "problemMatcher": "$msCompile"
- },
- {
- "label": "watch",
- "command": "dotnet",
- "type": "process",
- "args": [
- "watch",
- "run",
- "${workspaceFolder}/src/Host/Host.csproj",
- "/property:GenerateFullPaths=true",
- "/consoleloggerparameters:NoSummary"
- ],
- "problemMatcher": "$msCompile"
- }
- ]
-}
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/Directory.Build.props b/blazor-wasm-boilerplate-main/Directory.Build.props
deleted file mode 100644
index 35a60b8..0000000
--- a/blazor-wasm-boilerplate-main/Directory.Build.props
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
- $(MSBuildThisFileDirectory)dotnet.ruleset
- false
- false
- true
- $(OutputPath)$(AssemblyName).xml
- true
- enable
- enable
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
-
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/Directory.Build.targets b/blazor-wasm-boilerplate-main/Directory.Build.targets
deleted file mode 100644
index fd9797b..0000000
--- a/blazor-wasm-boilerplate-main/Directory.Build.targets
+++ /dev/null
@@ -1,5 +0,0 @@
-
-
- $(OutputPath)$(AssemblyName).xml
-
-
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/Dockerfile b/blazor-wasm-boilerplate-main/Dockerfile
deleted file mode 100644
index 2ff39bb..0000000
--- a/blazor-wasm-boilerplate-main/Dockerfile
+++ /dev/null
@@ -1,26 +0,0 @@
-FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
-WORKDIR /app
-EXPOSE 80
-EXPOSE 443
-
-FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
-WORKDIR /src
-
-COPY ["src/Host/Host.csproj", "src/Host/"]
-COPY ["src/Shared/Shared.csproj", "src/Shared/"]
-COPY ["src/Client/Client.csproj", "src/Client/"]
-COPY ["src/Client.Infrastructure/Client.Infrastructure.csproj", "src/Client.Infrastructure/"]
-
-RUN dotnet restore "src/Host/Host.csproj"
-
-COPY . .
-WORKDIR "/src/src/Host"
-
-RUN dotnet publish "Host.csproj" -c Release --no-restore -o /app/publish
-
-FROM base AS final
-WORKDIR /app
-
-COPY --from=build /app/publish .
-
-ENTRYPOINT ["dotnet", "FSH.BlazorWebAssembly.Host.dll"]
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/FSH.BlazorWebAssembly.nuspec b/blazor-wasm-boilerplate-main/FSH.BlazorWebAssembly.nuspec
deleted file mode 100644
index 215e16a..0000000
--- a/blazor-wasm-boilerplate-main/FSH.BlazorWebAssembly.nuspec
+++ /dev/null
@@ -1,25 +0,0 @@
-
-
-
- FullStackHero.BlazorWebAssembly.Boilerplate
- Blazor WebAssembly Boilerplate - FullStackHero
- 0.0.1-rc
- Mukesh Murugan
-
- Clean Architecture Boilerplate Template for .NET 6.0 Blazor WebAssembly built for FSH WebAPI with the goodness of MudBlazor Components.
-
- en-US
- MIT
- 2021
- https://fullstackhero.net/blazor-webassembly-boilerplate/general/getting-started/
-
-
-
-
- cleanarchitecture clean architecture blazor mukesh codewithmukesh fullstackhero solution csharp wasm webassembly mudblazor
- ./content/icon.png
-
-
-
-
-
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/FSH.BlazorWebAssembly.sln b/blazor-wasm-boilerplate-main/FSH.BlazorWebAssembly.sln
deleted file mode 100644
index 2c94ebb..0000000
--- a/blazor-wasm-boilerplate-main/FSH.BlazorWebAssembly.sln
+++ /dev/null
@@ -1,62 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.0.31808.319
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Host", "src\Host\Host.csproj", "{CB2F88F0-F072-420C-9B43-162C2C0773F5}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Client", "src\Client\Client.csproj", "{D5DB6E8A-0161-4EF1-B4D9-467E9A7EF9A7}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shared", "src\Shared\Shared.csproj", "{0D7A7E2D-CCF4-496E-9F2B-141712F4C00F}"
-EndProject
-Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Client.Infrastructure", "src\Client.Infrastructure\Client.Infrastructure.csproj", "{28E5DFC7-A05B-40DB-9E35-AC1E84C008A2}"
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{F6BE3160-F6ED-4E11-A33F-063DD9186D84}"
- ProjectSection(SolutionItems) = preProject
- .dockerignore = .dockerignore
- .editorconfig = .editorconfig
- .gitignore = .gitignore
- Directory.Build.props = Directory.Build.props
- Directory.Build.targets = Directory.Build.targets
- Dockerfile = Dockerfile
- dotnet.ruleset = dotnet.ruleset
- global.json = global.json
- stylecop.json = stylecop.json
- EndProjectSection
-EndProject
-Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "scripts", "scripts", "{F529F1FF-B2FD-46D5-80A1-D4C726230E40}"
- ProjectSection(SolutionItems) = preProject
- scripts\nswag-regen.ps1 = scripts\nswag-regen.ps1
- scripts\pull-shared-from-webapi.ps1 = scripts\pull-shared-from-webapi.ps1
- EndProjectSection
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {CB2F88F0-F072-420C-9B43-162C2C0773F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {CB2F88F0-F072-420C-9B43-162C2C0773F5}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {CB2F88F0-F072-420C-9B43-162C2C0773F5}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {CB2F88F0-F072-420C-9B43-162C2C0773F5}.Release|Any CPU.Build.0 = Release|Any CPU
- {D5DB6E8A-0161-4EF1-B4D9-467E9A7EF9A7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {D5DB6E8A-0161-4EF1-B4D9-467E9A7EF9A7}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {D5DB6E8A-0161-4EF1-B4D9-467E9A7EF9A7}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {D5DB6E8A-0161-4EF1-B4D9-467E9A7EF9A7}.Release|Any CPU.Build.0 = Release|Any CPU
- {0D7A7E2D-CCF4-496E-9F2B-141712F4C00F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {0D7A7E2D-CCF4-496E-9F2B-141712F4C00F}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {0D7A7E2D-CCF4-496E-9F2B-141712F4C00F}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {0D7A7E2D-CCF4-496E-9F2B-141712F4C00F}.Release|Any CPU.Build.0 = Release|Any CPU
- {28E5DFC7-A05B-40DB-9E35-AC1E84C008A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {28E5DFC7-A05B-40DB-9E35-AC1E84C008A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {28E5DFC7-A05B-40DB-9E35-AC1E84C008A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {28E5DFC7-A05B-40DB-9E35-AC1E84C008A2}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {175E8AA9-2BB6-41F9-ACE9-71733ED6EDFD}
- EndGlobalSection
-EndGlobal
diff --git a/blazor-wasm-boilerplate-main/LICENSE b/blazor-wasm-boilerplate-main/LICENSE
deleted file mode 100644
index 6599f6d..0000000
--- a/blazor-wasm-boilerplate-main/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2022 fullstackhero
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
diff --git a/blazor-wasm-boilerplate-main/README.md b/blazor-wasm-boilerplate-main/README.md
deleted file mode 100644
index 10be676..0000000
--- a/blazor-wasm-boilerplate-main/README.md
+++ /dev/null
@@ -1,82 +0,0 @@
-[![GitHub](https://img.shields.io/github/license/fullstackhero/blazor-wasm-boilerplate?color=2da44e&style=flat-square)](https://github.com/fullstackhero/blazor-wasm-boilerplate/blob/main/LICENSE)
-[![Discord](https://img.shields.io/discord/878181478972928011?color=%237289da&label=Discord&logo=discord&logoColor=%237289da&style=flat-square)](https://discord.gg/yQWpShsKrf)
-[![Twitter](https://img.shields.io/twitter/follow/codewithmukesh?color=1DA1F2&label=Twitter&logo=Twitter&style=flat-square)](https://twitter.com/codewithmukesh)
-
-
-
-
-
-# Blazor WebAssembly Boilerplate
-Built with .NET 6.0 and the goodness of MudBlazor Component Library. Incorporates the most essential Packages your projects will ever need. Follows Clean Architecture Principles.
-
-## Goals
-
-The goal of this repository is to help developers / companies kickstart their Web Application Development with a pre-built Blazor WebAssembly Boilerplate that includes several much needed components and features.
-
-> Note that this is a frontend / client application only! The backend for this application is available in a seperate repository.
-> - Find fullstackhero's .NET 6 Web API Boilerplate here - https://github.com/fullstackhero/dotnet-webapi-boilerplate
-
-## Prerequisites
-
-- Make sure you have the API Running. Here is FSH Backend - https://github.com/fullstackhero/dotnet-webapi-boilerplate
-- Once fullstackhero's .NET 6 Web API is up and running, run the Blazor WebAssembly Project to consume it's services.
-
-## Getting Started
-
-Open up your Command Prompt / Powershell and run the following command to install the solution template.
-
-```powershell
-dotnet new --install FullStackHero.BlazorWebAssembly.Boilerplate
-```
-or, if you want to use a specific version of the boilerplate, use
-
-```powershell
-dotnet new --install FullStackHero.BlazorWebAssembly.Boilerplate::0.0.1-rc
-```
-This would install the `fullstackhero Blazor WebAssembly Boilerplate` template globally on your machine. Do note that, at the time of writing this documentation, the latest available version is **0.0.1-rc** which is also one of the first stable pre-release version of the package. It is highly likely that there is already a newer version available when you are reading this.
-
-> *To get the latest version of the package, visit [nuget.org](https://www.nuget.org/packages/FullStackHero.BlazorWebAssembly.Boilerplate/)*
->
-> *FullStackHero.BlazorWebAssembly.Boilerplate is now in pre-release state. You can find the latest version on NuGet.org*
-
-**FullStackHero.BlazorWebAssembly.Boilerplate::0.0.1-rc is compatible only with FullStackHero.WebAPI.Boilerplate::0.0.6-rc and above.**
-
-Get the .NET WebApi Boilerplate by running the following command
-
-```
-dotnet new --install FullStackHero.WebAPI.Boilerplate::0.0.6-rc
-```
-
-For more details on getting started, [read this article](https://fullstackhero.net/blazor-webassembly-boilerplate/general/getting-started/)
-
-## Community
-
-- Discord [@fullstackhero](https://discord.gg/gdgHRt4mMw)
-- Facebook Page [@codewithmukesh](https://facebook.com/codewithmukesh)
-- Youtube Channel [@codewithmukesh](https://youtube.com/c/codewithmukesh)
-
-## Contributors
-
-Submit your PR and join the elite list!
-
-
-
-
-
-## License
-
-This project is licensed with the [MIT license](LICENSE).
-
-## Support :star:
-
-Has this Project helped you learn something New? or Helped you at work?
-Here are a few ways by which you can support.
-
-- Leave a star! :star:
-- Recommend this awesome project to your colleagues. 🥇
-- Do consider endorsing me on LinkedIn for ASP.NET Core - [Connect via LinkedIn](https://codewithmukesh.com/linkedin) 🦸
-- Or, If you want to support this project in the long run, [consider buying me a coffee](https://www.buymeacoffee.com/codewithmukesh)! ☕
-
-
-
-
diff --git a/blazor-wasm-boilerplate-main/dotnet.ruleset b/blazor-wasm-boilerplate-main/dotnet.ruleset
deleted file mode 100644
index 3010e47..0000000
--- a/blazor-wasm-boilerplate-main/dotnet.ruleset
+++ /dev/null
@@ -1,164 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/global.json b/blazor-wasm-boilerplate-main/global.json
deleted file mode 100644
index f443bd4..0000000
--- a/blazor-wasm-boilerplate-main/global.json
+++ /dev/null
@@ -1,7 +0,0 @@
-{
- "sdk": {
- "version": "6.0",
- "rollForward": "latestMajor",
- "allowPrerelease": true
- }
-}
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/icon.png b/blazor-wasm-boilerplate-main/icon.png
deleted file mode 100644
index fd9fa41..0000000
Binary files a/blazor-wasm-boilerplate-main/icon.png and /dev/null differ
diff --git a/blazor-wasm-boilerplate-main/scripts/nswag-regen.ps1 b/blazor-wasm-boilerplate-main/scripts/nswag-regen.ps1
deleted file mode 100644
index bf62c4a..0000000
--- a/blazor-wasm-boilerplate-main/scripts/nswag-regen.ps1
+++ /dev/null
@@ -1,20 +0,0 @@
-# This script is cross-platform, supporting all OSes that PowerShell Core/7 runs on.
-
-$currentDirectory = Get-Location
-$rootDirectory = git rev-parse --show-toplevel
-$hostDirectory = Join-Path -Path $rootDirectory -ChildPath 'src/Host'
-$infrastructurePrj = Join-Path -Path $rootDirectory -ChildPath 'src/Client.Infrastructure/Client.Infrastructure.csproj'
-
-Write-Host "Make sure you have run the FSH.WebApi project. `n"
-Write-Host "Press any key to continue... `n"
-$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');
-
-Set-Location -Path $hostDirectory
-Write-Host "Host Directory is $hostDirectory `n"
-
-<# Run command #>
-dotnet build -t:NSwag $infrastructurePrj
-
-Set-Location -Path $currentDirectory
-Write-Host -NoNewLine 'NSwag Regenerated. Press any key to continue...';
-$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown');
diff --git a/blazor-wasm-boilerplate-main/scripts/pull-shared-from-webapi.ps1 b/blazor-wasm-boilerplate-main/scripts/pull-shared-from-webapi.ps1
deleted file mode 100644
index 35dd0ab..0000000
--- a/blazor-wasm-boilerplate-main/scripts/pull-shared-from-webapi.ps1
+++ /dev/null
@@ -1,40 +0,0 @@
-# This script is cross-platform, supporting all OSes that PowerShell Core/7 runs on.
-
-$rootDirectory = git rev-parse --show-toplevel
-$sourcePath = Join-Path -Path $rootDirectory -ChildPath '..\dotnet-webapi-boilerplate\src\Core\Shared'
-$destinationPath = Join-Path -Path $rootDirectory -ChildPath 'src\Shared'
-
-$excludes = @('bin', 'obj')
-
-Write-Host "Pull changes from the Fullstackhero WebApi Shared Project"
-write-Host "---------------------------------------------------------"
-Write-Host
-
-If ($null -eq $sourcePath) {
- Write-Error "Error! The expected path of WebApi Shared Project does not exist: $sourcePath"
- Exit 1
-}
-
-if ($null -eq (Resolve-Path $destinationPath)) {
- # Ensure the destination exists
- try
- {
- New-Item -Path $destinationPath -ItemType Directory -ErrorAction Stop | Out-Null
- }
- catch
- {
- Write-Error "Error! Unable to create output path \"$destinationPath\""
- Exit 1
- }
-}
-
-Write-Host "WARNING! This will delete everything in the shared project ($($destinationPath | Resolve-Path))"
-Write-Host "and then copy over the whole project from the webapi repository ($($sourcePath | Resolve-Path))"
-Write-Host
-Read-Host -Prompt "Press ENTER to continue"
-
-Remove-Item -Path "$destinationPath" -Recurse -Force
-Copy-Item -Path (Get-Item -Path "$sourcePath" -Exclude $excludes).FullName -Destination "$destinationPath" -Recurse -Force
-
-Write-Host "Changes have been pulled."
-Write-Host
\ No newline at end of file
diff --git a/blazor-wasm-boilerplate-main/src/Client.Infrastructure/ApiClient/FSHApi.cs b/blazor-wasm-boilerplate-main/src/Client.Infrastructure/ApiClient/FSHApi.cs
deleted file mode 100644
index a74762b..0000000
--- a/blazor-wasm-boilerplate-main/src/Client.Infrastructure/ApiClient/FSHApi.cs
+++ /dev/null
@@ -1,6849 +0,0 @@
-//----------------------
-//
-// Generated using the NSwag toolchain v13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v13.0.0.0)) (http://NSwag.org)
-//
-//----------------------
-
-#nullable enable
-
-#pragma warning disable 108 // Disable "CS0108 '{derivedDto}.ToJson()' hides inherited member '{dtoBase}.ToJson()'. Use the new keyword if hiding was intended."
-#pragma warning disable 114 // Disable "CS0114 '{derivedDto}.RaisePropertyChanged(String)' hides inherited member 'dtoBase.RaisePropertyChanged(String)'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword."
-#pragma warning disable 472 // Disable "CS0472 The result of the expression is always 'false' since a value of type 'Int32' is never equal to 'null' of type 'Int32?'
-#pragma warning disable 1573 // Disable "CS1573 Parameter '...' has no matching param tag in the XML comment for ...
-#pragma warning disable 1591 // Disable "CS1591 Missing XML comment for publicly visible type or member ..."
-#pragma warning disable 8073 // Disable "CS8073 The result of the expression is always 'false' since a value of type 'T' is never equal to 'null' of type 'T?'"
-#pragma warning disable 3016 // Disable "CS3016 Arrays as attribute arguments is not CLS-compliant"
-#pragma warning disable 8603 // Disable "CS8603 Possible null reference return"
-
-namespace FSH.BlazorWebAssembly.Client.Infrastructure.ApiClient
-{
- using System = global::System;
-
- [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v13.0.0.0))")]
- public partial interface ITenantsClient : IApiService
- {
- ///
- /// Get a list of all tenants.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task> GetListAsync();
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Get a list of all tenants.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task> GetListAsync(System.Threading.CancellationToken cancellationToken);
-
- ///
- /// Create a new tenant.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task CreateAsync(CreateTenantRequest request);
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Create a new tenant.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task CreateAsync(CreateTenantRequest request, System.Threading.CancellationToken cancellationToken);
-
- ///
- /// Get tenant details.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task GetAsync(string? id);
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Get tenant details.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task GetAsync(string? id, System.Threading.CancellationToken cancellationToken);
-
- ///
- /// Activate a tenant.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task ActivateAsync(string? id);
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Activate a tenant.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task ActivateAsync(string? id, System.Threading.CancellationToken cancellationToken);
-
- ///
- /// Deactivate a tenant.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task DeactivateAsync(string? id);
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Deactivate a tenant.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task DeactivateAsync(string? id, System.Threading.CancellationToken cancellationToken);
-
- ///
- /// Upgrade a tenant's subscription.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task UpgradeSubscriptionAsync(string? id, UpgradeSubscriptionRequest request);
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Upgrade a tenant's subscription.
- ///
- /// A server side error occurred.
- System.Threading.Tasks.Task UpgradeSubscriptionAsync(string? id, UpgradeSubscriptionRequest request, System.Threading.CancellationToken cancellationToken);
-
- }
-
- [System.CodeDom.Compiler.GeneratedCode("NSwag", "13.15.10.0 (NJsonSchema v10.6.10.0 (Newtonsoft.Json v13.0.0.0))")]
- public partial class TenantsClient : ITenantsClient
- {
- private System.Net.Http.HttpClient _httpClient;
- private System.Lazy _settings;
-
- public TenantsClient(System.Net.Http.HttpClient httpClient)
- {
- _httpClient = httpClient;
- _settings = new System.Lazy(CreateSerializerSettings);
- }
-
- private Newtonsoft.Json.JsonSerializerSettings CreateSerializerSettings()
- {
- var settings = new Newtonsoft.Json.JsonSerializerSettings();
- UpdateJsonSerializerSettings(settings);
- return settings;
- }
-
- protected Newtonsoft.Json.JsonSerializerSettings JsonSerializerSettings { get { return _settings.Value; } }
-
- partial void UpdateJsonSerializerSettings(Newtonsoft.Json.JsonSerializerSettings settings);
-
- partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, string url);
- partial void PrepareRequest(System.Net.Http.HttpClient client, System.Net.Http.HttpRequestMessage request, System.Text.StringBuilder urlBuilder);
- partial void ProcessResponse(System.Net.Http.HttpClient client, System.Net.Http.HttpResponseMessage response);
-
- ///
- /// Get a list of all tenants.
- ///
- /// A server side error occurred.
- public virtual System.Threading.Tasks.Task> GetListAsync()
- {
- return GetListAsync(System.Threading.CancellationToken.None);
- }
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Get a list of all tenants.
- ///
- /// A server side error occurred.
- public virtual async System.Threading.Tasks.Task> GetListAsync(System.Threading.CancellationToken cancellationToken)
- {
- var urlBuilder_ = new System.Text.StringBuilder();
- urlBuilder_.Append("api/tenants");
-
- var client_ = _httpClient;
- var disposeClient_ = false;
- try
- {
- using (var request_ = new System.Net.Http.HttpRequestMessage())
- {
- request_.Method = new System.Net.Http.HttpMethod("GET");
- request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json"));
-
- PrepareRequest(client_, request_, urlBuilder_);
-
- var url_ = urlBuilder_.ToString();
- request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
-
- PrepareRequest(client_, request_, url_);
-
- var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
- var disposeResponse_ = true;
- try
- {
- var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
- if (response_.Content != null && response_.Content.Headers != null)
- {
- foreach (var item_ in response_.Content.Headers)
- headers_[item_.Key] = item_.Value;
- }
-
- ProcessResponse(client_, response_);
-
- var status_ = (int)response_.StatusCode;
- if (status_ == 200)
- {
- var objectResponse_ = await ReadObjectResponseAsync>(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- return objectResponse_.Object;
- }
- else
- if (status_ == 400)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- else
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- }
- finally
- {
- if (disposeResponse_)
- response_.Dispose();
- }
- }
- }
- finally
- {
- if (disposeClient_)
- client_.Dispose();
- }
- }
-
- ///
- /// Create a new tenant.
- ///
- /// A server side error occurred.
- public virtual System.Threading.Tasks.Task CreateAsync(CreateTenantRequest request)
- {
- return CreateAsync(request, System.Threading.CancellationToken.None);
- }
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Create a new tenant.
- ///
- /// A server side error occurred.
- public virtual async System.Threading.Tasks.Task CreateAsync(CreateTenantRequest request, System.Threading.CancellationToken cancellationToken)
- {
- if (request == null)
- throw new System.ArgumentNullException("request");
-
- var urlBuilder_ = new System.Text.StringBuilder();
- urlBuilder_.Append("api/tenants");
-
- var client_ = _httpClient;
- var disposeClient_ = false;
- try
- {
- using (var request_ = new System.Net.Http.HttpRequestMessage())
- {
- var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(request, _settings.Value));
- content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
- request_.Content = content_;
- request_.Method = new System.Net.Http.HttpMethod("POST");
- request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json"));
-
- PrepareRequest(client_, request_, urlBuilder_);
-
- var url_ = urlBuilder_.ToString();
- request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
-
- PrepareRequest(client_, request_, url_);
-
- var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
- var disposeResponse_ = true;
- try
- {
- var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
- if (response_.Content != null && response_.Content.Headers != null)
- {
- foreach (var item_ in response_.Content.Headers)
- headers_[item_.Key] = item_.Value;
- }
-
- ProcessResponse(client_, response_);
-
- var status_ = (int)response_.StatusCode;
- if (status_ == 200)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- return objectResponse_.Object;
- }
- else
- if (status_ == 400)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- else
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- }
- finally
- {
- if (disposeResponse_)
- response_.Dispose();
- }
- }
- }
- finally
- {
- if (disposeClient_)
- client_.Dispose();
- }
- }
-
- ///
- /// Get tenant details.
- ///
- /// A server side error occurred.
- public virtual System.Threading.Tasks.Task GetAsync(string? id)
- {
- return GetAsync(id, System.Threading.CancellationToken.None);
- }
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Get tenant details.
- ///
- /// A server side error occurred.
- public virtual async System.Threading.Tasks.Task GetAsync(string? id, System.Threading.CancellationToken cancellationToken)
- {
- var urlBuilder_ = new System.Text.StringBuilder();
- urlBuilder_.Append("api/tenants/{id}");
- urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture)));
-
- var client_ = _httpClient;
- var disposeClient_ = false;
- try
- {
- using (var request_ = new System.Net.Http.HttpRequestMessage())
- {
- request_.Method = new System.Net.Http.HttpMethod("GET");
- request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json"));
-
- PrepareRequest(client_, request_, urlBuilder_);
-
- var url_ = urlBuilder_.ToString();
- request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
-
- PrepareRequest(client_, request_, url_);
-
- var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
- var disposeResponse_ = true;
- try
- {
- var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
- if (response_.Content != null && response_.Content.Headers != null)
- {
- foreach (var item_ in response_.Content.Headers)
- headers_[item_.Key] = item_.Value;
- }
-
- ProcessResponse(client_, response_);
-
- var status_ = (int)response_.StatusCode;
- if (status_ == 200)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- return objectResponse_.Object;
- }
- else
- if (status_ == 400)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- else
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- }
- finally
- {
- if (disposeResponse_)
- response_.Dispose();
- }
- }
- }
- finally
- {
- if (disposeClient_)
- client_.Dispose();
- }
- }
-
- ///
- /// Activate a tenant.
- ///
- /// A server side error occurred.
- public virtual System.Threading.Tasks.Task ActivateAsync(string? id)
- {
- return ActivateAsync(id, System.Threading.CancellationToken.None);
- }
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Activate a tenant.
- ///
- /// A server side error occurred.
- public virtual async System.Threading.Tasks.Task ActivateAsync(string? id, System.Threading.CancellationToken cancellationToken)
- {
- var urlBuilder_ = new System.Text.StringBuilder();
- urlBuilder_.Append("api/tenants/{id}/activate");
- urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture)));
-
- var client_ = _httpClient;
- var disposeClient_ = false;
- try
- {
- using (var request_ = new System.Net.Http.HttpRequestMessage())
- {
- request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json");
- request_.Method = new System.Net.Http.HttpMethod("POST");
- request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json"));
-
- PrepareRequest(client_, request_, urlBuilder_);
-
- var url_ = urlBuilder_.ToString();
- request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
-
- PrepareRequest(client_, request_, url_);
-
- var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
- var disposeResponse_ = true;
- try
- {
- var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
- if (response_.Content != null && response_.Content.Headers != null)
- {
- foreach (var item_ in response_.Content.Headers)
- headers_[item_.Key] = item_.Value;
- }
-
- ProcessResponse(client_, response_);
-
- var status_ = (int)response_.StatusCode;
- if (status_ == 200)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- return objectResponse_.Object;
- }
- else
- if (status_ == 400)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- else
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- }
- finally
- {
- if (disposeResponse_)
- response_.Dispose();
- }
- }
- }
- finally
- {
- if (disposeClient_)
- client_.Dispose();
- }
- }
-
- ///
- /// Deactivate a tenant.
- ///
- /// A server side error occurred.
- public virtual System.Threading.Tasks.Task DeactivateAsync(string? id)
- {
- return DeactivateAsync(id, System.Threading.CancellationToken.None);
- }
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Deactivate a tenant.
- ///
- /// A server side error occurred.
- public virtual async System.Threading.Tasks.Task DeactivateAsync(string? id, System.Threading.CancellationToken cancellationToken)
- {
- var urlBuilder_ = new System.Text.StringBuilder();
- urlBuilder_.Append("api/tenants/{id}/deactivate");
- urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture)));
-
- var client_ = _httpClient;
- var disposeClient_ = false;
- try
- {
- using (var request_ = new System.Net.Http.HttpRequestMessage())
- {
- request_.Content = new System.Net.Http.StringContent(string.Empty, System.Text.Encoding.UTF8, "application/json");
- request_.Method = new System.Net.Http.HttpMethod("POST");
- request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json"));
-
- PrepareRequest(client_, request_, urlBuilder_);
-
- var url_ = urlBuilder_.ToString();
- request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
-
- PrepareRequest(client_, request_, url_);
-
- var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
- var disposeResponse_ = true;
- try
- {
- var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
- if (response_.Content != null && response_.Content.Headers != null)
- {
- foreach (var item_ in response_.Content.Headers)
- headers_[item_.Key] = item_.Value;
- }
-
- ProcessResponse(client_, response_);
-
- var status_ = (int)response_.StatusCode;
- if (status_ == 200)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- return objectResponse_.Object;
- }
- else
- if (status_ == 400)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- else
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- }
- finally
- {
- if (disposeResponse_)
- response_.Dispose();
- }
- }
- }
- finally
- {
- if (disposeClient_)
- client_.Dispose();
- }
- }
-
- ///
- /// Upgrade a tenant's subscription.
- ///
- /// A server side error occurred.
- public virtual System.Threading.Tasks.Task UpgradeSubscriptionAsync(string? id, UpgradeSubscriptionRequest request)
- {
- return UpgradeSubscriptionAsync(id, request, System.Threading.CancellationToken.None);
- }
-
- /// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
- ///
- /// Upgrade a tenant's subscription.
- ///
- /// A server side error occurred.
- public virtual async System.Threading.Tasks.Task UpgradeSubscriptionAsync(string? id, UpgradeSubscriptionRequest request, System.Threading.CancellationToken cancellationToken)
- {
- if (request == null)
- throw new System.ArgumentNullException("request");
-
- var urlBuilder_ = new System.Text.StringBuilder();
- urlBuilder_.Append("api/tenants/{id}/upgrade");
- urlBuilder_.Replace("{id}", System.Uri.EscapeDataString(ConvertToString(id, System.Globalization.CultureInfo.InvariantCulture)));
-
- var client_ = _httpClient;
- var disposeClient_ = false;
- try
- {
- using (var request_ = new System.Net.Http.HttpRequestMessage())
- {
- var content_ = new System.Net.Http.StringContent(Newtonsoft.Json.JsonConvert.SerializeObject(request, _settings.Value));
- content_.Headers.ContentType = System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json");
- request_.Content = content_;
- request_.Method = new System.Net.Http.HttpMethod("POST");
- request_.Headers.Accept.Add(System.Net.Http.Headers.MediaTypeWithQualityHeaderValue.Parse("application/json"));
-
- PrepareRequest(client_, request_, urlBuilder_);
-
- var url_ = urlBuilder_.ToString();
- request_.RequestUri = new System.Uri(url_, System.UriKind.RelativeOrAbsolute);
-
- PrepareRequest(client_, request_, url_);
-
- var response_ = await client_.SendAsync(request_, System.Net.Http.HttpCompletionOption.ResponseHeadersRead, cancellationToken).ConfigureAwait(false);
- var disposeResponse_ = true;
- try
- {
- var headers_ = System.Linq.Enumerable.ToDictionary(response_.Headers, h_ => h_.Key, h_ => h_.Value);
- if (response_.Content != null && response_.Content.Headers != null)
- {
- foreach (var item_ in response_.Content.Headers)
- headers_[item_.Key] = item_.Value;
- }
-
- ProcessResponse(client_, response_);
-
- var status_ = (int)response_.StatusCode;
- if (status_ == 200)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- return objectResponse_.Object;
- }
- else
- if (status_ == 400)
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- else
- {
- var objectResponse_ = await ReadObjectResponseAsync(response_, headers_, cancellationToken).ConfigureAwait(false);
- if (objectResponse_.Object == null)
- {
- throw new ApiException("Response was null which was not expected.", status_, objectResponse_.Text, headers_, null);
- }
- throw new ApiException("A server side error occurred.", status_, objectResponse_.Text, headers_, objectResponse_.Object, null);
- }
- }
- finally
- {
- if (disposeResponse_)
- response_.Dispose();
- }
- }
- }
- finally
- {
- if (disposeClient_)
- client_.Dispose();
- }
- }
-
- protected struct ObjectResponseResult
- {
- public ObjectResponseResult(T responseObject, string responseText)
- {
- this.Object = responseObject;
- this.Text = responseText;
- }
-
- public T Object { get; }
-
- public string Text { get; }
- }
-
- public bool ReadResponseAsString { get; set; }
-
- protected virtual async System.Threading.Tasks.Task> ReadObjectResponseAsync(System.Net.Http.HttpResponseMessage response, System.Collections.Generic.IReadOnlyDictionary> headers, System.Threading.CancellationToken cancellationToken)
- {
- if (response == null || response.Content == null)
- {
- return new ObjectResponseResult(default(T)!, string.Empty);
- }
-
- if (ReadResponseAsString)
- {
- var responseText = await response.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- var typedBody = Newtonsoft.Json.JsonConvert.DeserializeObject(responseText, JsonSerializerSettings);
- return new ObjectResponseResult(typedBody!, responseText);
- }
- catch (Newtonsoft.Json.JsonException exception)
- {
- var message = "Could not deserialize the response body string as " + typeof(T).FullName + ".";
- throw new ApiException(message, (int)response.StatusCode, responseText, headers, exception);
- }
- }
- else
- {
- try
- {
- using (var responseStream = await response.Content.ReadAsStreamAsync().ConfigureAwait(false))
- using (var streamReader = new System.IO.StreamReader(responseStream))
- using (var jsonTextReader = new Newtonsoft.Json.JsonTextReader(streamReader))
- {
- var serializer = Newtonsoft.Json.JsonSerializer.Create(JsonSerializerSettings);
- var typedBody = serializer.Deserialize(jsonTextReader);
- return new ObjectResponseResult(typedBody!, string.Empty);
- }
- }
- catch (Newtonsoft.Json.JsonException exception)
- {
- var message = "Could not deserialize the response body stream as " + typeof(T).FullName + ".";
- throw new ApiException(message, (int)response.StatusCode, string.Empty, headers, exception);
- }
- }
- }
-
- private string ConvertToString(object? value, System.Globalization.CultureInfo cultureInfo)
- {
- if (value == null)
- {
- return "";
- }
-
- if (value is System.Enum)
- {
- var name = System.Enum.GetName(value.GetType(), value);
- if (name != null)
- {
- var field = System.Reflection.IntrospectionExtensions.GetTypeInfo(value.GetType()).GetDeclaredField(name);
- if (field != null)
- {
- var attribute = System.Reflection.CustomAttributeExtensions.GetCustomAttribute(field, typeof(System.Runtime.Serialization.EnumMemberAttribute))
- as System.Runtime.Serialization.EnumMemberAttribute;
- if (attribute != null)
- {
- return attribute.Value != null ? attribute.Value : name;
- }
- }
-
- var converted = System.Convert.ToString(System.Convert.ChangeType(value, System.Enum.GetUnderlyingType(value.GetType()), cultureInfo));
- return converted == null ? string.Empty : converted;
- }
- }
- else if (value is bool)
- {
- return System.Convert.ToString((bool)value, cultureInfo).ToLowerInvariant();
- }
- else if (value is byte[])
- {
- return System.Convert.ToBase64String((byte[]) value);
- }
- else if (value.GetType().IsArray)
- {
- var array = System.Linq.Enumerable.OfType