diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..af4d2e7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +# 编译目录 +bin/ +obj/ + +# Nuget包目录 +packages/ + + +# 编译结果 +[Dd]ebug/ +[Rr]elease/ +x64/ +*_i.c +*_p.c +*.ilk +*.meta +*.obj +*.pch +*.pdb +*.pgc +*.pgd +*.rsp +*.sbr +*.tlb +*.tli +*.tlh +*.tmp +*.log +*.vspscc +*.vssscc +.builds \ No newline at end of file diff --git a/.vscode/solution-explorer/class.cs-template b/.vscode/solution-explorer/class.cs-template new file mode 100644 index 0000000..20c7109 --- /dev/null +++ b/.vscode/solution-explorer/class.cs-template @@ -0,0 +1,5 @@ +namespace {{namespace}}; + +public class {{name}} +{ +} diff --git a/.vscode/solution-explorer/class.ts-template b/.vscode/solution-explorer/class.ts-template new file mode 100644 index 0000000..ff2edef --- /dev/null +++ b/.vscode/solution-explorer/class.ts-template @@ -0,0 +1,3 @@ +export class {{name}} { + +} \ No newline at end of file diff --git a/.vscode/solution-explorer/class.vb-template b/.vscode/solution-explorer/class.vb-template new file mode 100644 index 0000000..38ef67f --- /dev/null +++ b/.vscode/solution-explorer/class.vb-template @@ -0,0 +1,9 @@ +Imports System + +Namespace {{namespace}} + + Public Class {{name}} + + End Class + +End Namespace diff --git a/.vscode/solution-explorer/default.ts-template b/.vscode/solution-explorer/default.ts-template new file mode 100644 index 0000000..04af870 --- /dev/null +++ b/.vscode/solution-explorer/default.ts-template @@ -0,0 +1,3 @@ +export default {{name}} { + +} \ No newline at end of file diff --git a/.vscode/solution-explorer/enum.cs-template b/.vscode/solution-explorer/enum.cs-template new file mode 100644 index 0000000..1ded8c0 --- /dev/null +++ b/.vscode/solution-explorer/enum.cs-template @@ -0,0 +1,5 @@ +namespace {{namespace}}; + +public enum {{name}} +{ +} diff --git a/.vscode/solution-explorer/interface.cs-template b/.vscode/solution-explorer/interface.cs-template new file mode 100644 index 0000000..bf25cbb --- /dev/null +++ b/.vscode/solution-explorer/interface.cs-template @@ -0,0 +1,5 @@ +namespace {{namespace}}; + +public interface {{name}} +{ +} diff --git a/.vscode/solution-explorer/interface.ts-template b/.vscode/solution-explorer/interface.ts-template new file mode 100644 index 0000000..3ea404b --- /dev/null +++ b/.vscode/solution-explorer/interface.ts-template @@ -0,0 +1,3 @@ +export interface {{name}} { + +} \ No newline at end of file diff --git a/.vscode/solution-explorer/template-list.json b/.vscode/solution-explorer/template-list.json new file mode 100644 index 0000000..2849622 --- /dev/null +++ b/.vscode/solution-explorer/template-list.json @@ -0,0 +1,46 @@ +{ + "templates": [ + { + "name": "Class", + "extension": "cs", + "file": "./class.cs-template", + "parameters": "./template-parameters.js" + }, + { + "name": "Interface", + "extension": "cs", + "file": "./interface.cs-template", + "parameters": "./template-parameters.js" + }, + { + "name": "Enum", + "extension": "cs", + "file": "./enum.cs-template", + "parameters": "./template-parameters.js" + }, + { + "name": "Class", + "extension": "ts", + "file": "./class.ts-template", + "parameters": "./template-parameters.js" + }, + { + "name": "Interface", + "extension": "ts", + "file": "./interface.ts-template", + "parameters": "./template-parameters.js" + }, + { + "name": "Default", + "extension": "ts", + "file": "./default.ts-template", + "parameters": "./template-parameters.js" + }, + { + "name": "Class", + "extension": "vb", + "file": "./class.vb-template", + "parameters": "./template-parameters.js" + } + ] +} \ No newline at end of file diff --git a/.vscode/solution-explorer/template-parameters.js b/.vscode/solution-explorer/template-parameters.js new file mode 100644 index 0000000..daba8b2 --- /dev/null +++ b/.vscode/solution-explorer/template-parameters.js @@ -0,0 +1,17 @@ +var path = require("path"); + +module.exports = function(filename, projectPath, folderPath) { + var namespace = "Unknown"; + if (projectPath) { + namespace = path.basename(projectPath, path.extname(projectPath)); + if (folderPath) { + namespace += "." + folderPath.replace(path.dirname(projectPath), "").substring(1).replace(/[\\\/]/g, "."); + } + namespace = namespace.replace(/[\\\-]/g, "_"); + } + + return { + namespace: namespace, + name: path.basename(filename, path.extname(filename)) + } +}; \ No newline at end of file diff --git a/Sanchime.Functional/Core/Extensions/Task.cs b/Sanchime.Functional/Core/Extensions/Task.cs index 8a8666c..07fa211 100644 --- a/Sanchime.Functional/Core/Extensions/Task.cs +++ b/Sanchime.Functional/Core/Extensions/Task.cs @@ -28,7 +28,7 @@ public static class TaskExtension public static async Task Apply(this Task> @this, Task task) => (await @this.ConfigureAwait(false))(await task.ConfigureAwait(false)); - public static Task> Apply(this Task> @this, Task task) + public static Task> Apply(this Task> @this, Task task) => @this.Map(CurryingExtension.Curry).Apply(task); diff --git a/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.deps.json b/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.deps.json deleted file mode 100644 index 82c9819..0000000 --- a/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.deps.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "runtimeTarget": { - "name": ".NETCoreApp,Version=v7.0", - "signature": "" - }, - "compilationOptions": {}, - "targets": { - ".NETCoreApp,Version=v7.0": { - "Sanchime.Functional/1.0.0": { - "runtime": { - "Sanchime.Functional.dll": {} - } - } - } - }, - "libraries": { - "Sanchime.Functional/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - } - } -} \ No newline at end of file diff --git a/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.dll b/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.dll deleted file mode 100644 index 716eb24..0000000 Binary files a/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.dll and /dev/null differ diff --git a/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.pdb b/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.pdb deleted file mode 100644 index 885f3af..0000000 Binary files a/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.pdb and /dev/null differ diff --git a/Sanchime.Functional/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs b/Sanchime.Functional/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs deleted file mode 100644 index 88ecc6e..0000000 --- a/Sanchime.Functional/obj/Debug/net7.0/.NETCoreApp,Version=v7.0.AssemblyAttributes.cs +++ /dev/null @@ -1,4 +0,0 @@ -// -using System; -using System.Reflection; -[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v7.0", FrameworkDisplayName = "")] diff --git a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.AssemblyInfo.cs b/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.AssemblyInfo.cs deleted file mode 100644 index 4feb04d..0000000 --- a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.AssemblyInfo.cs +++ /dev/null @@ -1,22 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -using System; -using System.Reflection; - -[assembly: System.Reflection.AssemblyCompanyAttribute("Sanchime.Functional")] -[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] -[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] -[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] -[assembly: System.Reflection.AssemblyProductAttribute("Sanchime.Functional")] -[assembly: System.Reflection.AssemblyTitleAttribute("Sanchime.Functional")] -[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] - -// 由 MSBuild WriteCodeFragment 类生成。 - diff --git a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.AssemblyInfoInputs.cache b/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.AssemblyInfoInputs.cache deleted file mode 100644 index 54ae77e..0000000 --- a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.AssemblyInfoInputs.cache +++ /dev/null @@ -1 +0,0 @@ -1132520a32de11ff302b7fe56da971f09e88fb78 diff --git a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.GeneratedMSBuildEditorConfig.editorconfig b/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.GeneratedMSBuildEditorConfig.editorconfig deleted file mode 100644 index 73b922c..0000000 --- a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.GeneratedMSBuildEditorConfig.editorconfig +++ /dev/null @@ -1,10 +0,0 @@ -is_global = true -build_property.TargetFramework = net7.0 -build_property.TargetPlatformMinVersion = -build_property.UsingMicrosoftNETSdkWeb = -build_property.ProjectTypeGuids = -build_property.InvariantGlobalization = -build_property.PlatformNeutralAssembly = -build_property._SupportedPlatformList = Linux,macOS,Windows -build_property.RootNamespace = Sanchime.Functional -build_property.ProjectDir = /home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/ diff --git a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.GlobalUsings.g.cs b/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.GlobalUsings.g.cs deleted file mode 100644 index 8578f3d..0000000 --- a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.GlobalUsings.g.cs +++ /dev/null @@ -1,8 +0,0 @@ -// -global using global::System; -global using global::System.Collections.Generic; -global using global::System.IO; -global using global::System.Linq; -global using global::System.Net.Http; -global using global::System.Threading; -global using global::System.Threading.Tasks; diff --git a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.assets.cache b/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.assets.cache deleted file mode 100644 index 60e27cf..0000000 Binary files a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.assets.cache and /dev/null differ diff --git a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.AssemblyReference.cache b/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.AssemblyReference.cache deleted file mode 100644 index e22e2d0..0000000 Binary files a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.AssemblyReference.cache and /dev/null differ diff --git a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.CoreCompileInputs.cache b/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.CoreCompileInputs.cache deleted file mode 100644 index e174995..0000000 --- a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -14ff64154b5d7a38f0fe0b94f6fa9545005d4e6f diff --git a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.FileListAbsolute.txt b/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.FileListAbsolute.txt deleted file mode 100644 index f71ab32..0000000 --- a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,12 +0,0 @@ -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.AssemblyReference.cache -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.GeneratedMSBuildEditorConfig.editorconfig -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.AssemblyInfoInputs.cache -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.AssemblyInfo.cs -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.csproj.CoreCompileInputs.cache -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.deps.json -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.dll -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/bin/Debug/net7.0/Sanchime.Functional.pdb -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.dll -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/Debug/net7.0/refint/Sanchime.Functional.dll -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.pdb -/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/Debug/net7.0/ref/Sanchime.Functional.dll diff --git a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.dll b/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.dll deleted file mode 100644 index 716eb24..0000000 Binary files a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.dll and /dev/null differ diff --git a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.pdb b/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.pdb deleted file mode 100644 index 885f3af..0000000 Binary files a/Sanchime.Functional/obj/Debug/net7.0/Sanchime.Functional.pdb and /dev/null differ diff --git a/Sanchime.Functional/obj/Debug/net7.0/ref/Sanchime.Functional.dll b/Sanchime.Functional/obj/Debug/net7.0/ref/Sanchime.Functional.dll deleted file mode 100644 index e78a44a..0000000 Binary files a/Sanchime.Functional/obj/Debug/net7.0/ref/Sanchime.Functional.dll and /dev/null differ diff --git a/Sanchime.Functional/obj/Debug/net7.0/refint/Sanchime.Functional.dll b/Sanchime.Functional/obj/Debug/net7.0/refint/Sanchime.Functional.dll deleted file mode 100644 index e78a44a..0000000 Binary files a/Sanchime.Functional/obj/Debug/net7.0/refint/Sanchime.Functional.dll and /dev/null differ diff --git a/Sanchime.Functional/obj/Sanchime.Functional.csproj.nuget.dgspec.json b/Sanchime.Functional/obj/Sanchime.Functional.csproj.nuget.dgspec.json deleted file mode 100644 index 1000666..0000000 --- a/Sanchime.Functional/obj/Sanchime.Functional.csproj.nuget.dgspec.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "format": 1, - "restore": { - "/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/Sanchime.Functional.csproj": {} - }, - "projects": { - "/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/Sanchime.Functional.csproj": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/Sanchime.Functional.csproj", - "projectName": "Sanchime.Functional", - "projectPath": "/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/Sanchime.Functional.csproj", - "packagesPath": "/home/sanchime/.nuget/packages/", - "outputPath": "/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/", - "projectStyle": "PackageReference", - "configFilePaths": [ - "/home/sanchime/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "net7.0" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "net7.0": { - "targetAlias": "net7.0", - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "net7.0": { - "targetAlias": "net7.0", - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "/home/sanchime/dotnet/sdk/7.0.100-preview.3.22179.4/RuntimeIdentifierGraph.json" - } - } - } - } -} \ No newline at end of file diff --git a/Sanchime.Functional/obj/Sanchime.Functional.csproj.nuget.g.props b/Sanchime.Functional/obj/Sanchime.Functional.csproj.nuget.g.props deleted file mode 100644 index 87a059e..0000000 --- a/Sanchime.Functional/obj/Sanchime.Functional.csproj.nuget.g.props +++ /dev/null @@ -1,15 +0,0 @@ - - - - True - NuGet - $(MSBuildThisFileDirectory)project.assets.json - /home/sanchime/.nuget/packages/ - /home/sanchime/.nuget/packages/ - PackageReference - 6.2.0 - - - - - \ No newline at end of file diff --git a/Sanchime.Functional/obj/Sanchime.Functional.csproj.nuget.g.targets b/Sanchime.Functional/obj/Sanchime.Functional.csproj.nuget.g.targets deleted file mode 100644 index 3dc06ef..0000000 --- a/Sanchime.Functional/obj/Sanchime.Functional.csproj.nuget.g.targets +++ /dev/null @@ -1,2 +0,0 @@ - - \ No newline at end of file diff --git a/Sanchime.Functional/obj/project.assets.json b/Sanchime.Functional/obj/project.assets.json deleted file mode 100644 index 86c04d2..0000000 --- a/Sanchime.Functional/obj/project.assets.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "version": 3, - "targets": { - "net7.0": {} - }, - "libraries": {}, - "projectFileDependencyGroups": { - "net7.0": [] - }, - "packageFolders": { - "/home/sanchime/.nuget/packages/": {} - }, - "project": { - "version": "1.0.0", - "restore": { - "projectUniqueName": "/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/Sanchime.Functional.csproj", - "projectName": "Sanchime.Functional", - "projectPath": "/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/Sanchime.Functional.csproj", - "packagesPath": "/home/sanchime/.nuget/packages/", - "outputPath": "/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/", - "projectStyle": "PackageReference", - "configFilePaths": [ - "/home/sanchime/.nuget/NuGet/NuGet.Config" - ], - "originalTargetFrameworks": [ - "net7.0" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "net7.0": { - "targetAlias": "net7.0", - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "net7.0": { - "targetAlias": "net7.0", - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "/home/sanchime/dotnet/sdk/7.0.100-preview.3.22179.4/RuntimeIdentifierGraph.json" - } - } - } -} \ No newline at end of file diff --git a/Sanchime.Functional/obj/project.nuget.cache b/Sanchime.Functional/obj/project.nuget.cache deleted file mode 100644 index fe74c1a..0000000 --- a/Sanchime.Functional/obj/project.nuget.cache +++ /dev/null @@ -1,8 +0,0 @@ -{ - "version": 2, - "dgSpecHash": "SFlPh821qi4GkLKqdQvlF3w70bJfiHdxPTcWjQz6sHNJrETehv6TShnFcPyYahMOhHW73n97cu5NcnOrJNHiSw==", - "success": true, - "projectFilePath": "/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/Sanchime.Functional.csproj", - "expectedPackageFiles": [], - "logs": [] -} \ No newline at end of file diff --git a/Sanchime.Functional/obj/project.packagespec.json b/Sanchime.Functional/obj/project.packagespec.json deleted file mode 100644 index 8caba5b..0000000 --- a/Sanchime.Functional/obj/project.packagespec.json +++ /dev/null @@ -1 +0,0 @@ -"restore":{"projectUniqueName":"/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/Sanchime.Functional.csproj","projectName":"Sanchime.Functional","projectPath":"/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/Sanchime.Functional.csproj","outputPath":"/home/sanchime/桌面/Program/C#/Sanchime/Sanchime.Functional/obj/","projectStyle":"PackageReference","originalTargetFrameworks":["net7.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net7.0":{"targetAlias":"net7.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net7.0":{"targetAlias":"net7.0","imports":["net461","net462","net47","net471","net472","net48"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"/home/sanchime/dotnet/sdk/7.0.100-preview.3.22179.4/RuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/Sanchime.Functional/obj/rider.project.restore.info b/Sanchime.Functional/obj/rider.project.restore.info deleted file mode 100644 index aa2ab3c..0000000 --- a/Sanchime.Functional/obj/rider.project.restore.info +++ /dev/null @@ -1 +0,0 @@ -16514907543498126 \ No newline at end of file