初始化
This commit is contained in:
22
ConsoleApp2/ConsoleApp2.csproj
Normal file
22
ConsoleApp2/ConsoleApp2.csproj
Normal file
@@ -0,0 +1,22 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Hosting" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.1" />
|
||||
<PackageReference Include="Microsoft.Orleans.Client" Version="8.2.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\IOT_JieKou\IOT_JieKou.csproj" />
|
||||
<ProjectReference Include="..\ViewModels\ViewModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
47
ConsoleApp2/Program.cs
Normal file
47
ConsoleApp2/Program.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using CommonEntity.RCUEntity;
|
||||
using IOT_JieKou;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
using ViewModels;
|
||||
|
||||
namespace ConsoleApp2
|
||||
{
|
||||
internal class Program
|
||||
{
|
||||
static async Task Main(string[] args)
|
||||
{
|
||||
using var host = new HostBuilder()
|
||||
.UseOrleansClient(clientBuilder =>
|
||||
{
|
||||
clientBuilder
|
||||
.UseLocalhostClustering();
|
||||
})
|
||||
.Build();
|
||||
|
||||
await host.StartAsync();
|
||||
var client = host.Services.GetRequiredService<IClusterClient>();
|
||||
|
||||
RCU_UDPData_With_String a = new RCU_UDPData_With_String();
|
||||
a.hostnum = "1101_04_05";
|
||||
byte[] Y111 = Tools.HEXString2ByteArray("AA 55 3C 00 54 33 53 41 34 32 F8 3D 04 81 FC 01 01 A3 06 01 30 20 00 00 00 00 00 02 02 02 39 01 01 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 07 01 00 00 02 5B 0B 79 CF".Replace(" ", ""));
|
||||
a.data = Y111;
|
||||
a.endpoint = "127.0.0.1:3100";
|
||||
a.currenttimestamp = DateTimeOffset.Now.ToUnixTimeMilliseconds();
|
||||
|
||||
//for (int i = 0; i < 100000; i++)
|
||||
//{
|
||||
// int ooo = i;
|
||||
// Task.Run(() =>
|
||||
// {
|
||||
// var ccc1 = client.GetGrain<IDataTran>("1101_04_" + ooo.ToString());
|
||||
// ccc1.TongXin(a);
|
||||
// });
|
||||
//}
|
||||
|
||||
var ccc = client.GetGrain<IDataTran>("1101_04_05");
|
||||
await ccc.TongXin(a);
|
||||
Console.WriteLine("Hello, World!");
|
||||
Console.ReadKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
ConsoleApp2/bin/Debug/net8.0/CommonEntity.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/CommonEntity.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/CommonEntity.pdb
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/CommonEntity.pdb
Normal file
Binary file not shown.
1209
ConsoleApp2/bin/Debug/net8.0/ConsoleApp2.deps.json
Normal file
1209
ConsoleApp2/bin/Debug/net8.0/ConsoleApp2.deps.json
Normal file
File diff suppressed because it is too large
Load Diff
BIN
ConsoleApp2/bin/Debug/net8.0/ConsoleApp2.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/ConsoleApp2.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/ConsoleApp2.exe
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/ConsoleApp2.exe
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/ConsoleApp2.pdb
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/ConsoleApp2.pdb
Normal file
Binary file not shown.
12
ConsoleApp2/bin/Debug/net8.0/ConsoleApp2.runtimeconfig.json
Normal file
12
ConsoleApp2/bin/Debug/net8.0/ConsoleApp2.runtimeconfig.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"runtimeOptions": {
|
||||
"tfm": "net8.0",
|
||||
"framework": {
|
||||
"name": "Microsoft.NETCore.App",
|
||||
"version": "8.0.0"
|
||||
},
|
||||
"configProperties": {
|
||||
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
|
||||
}
|
||||
}
|
||||
}
|
||||
BIN
ConsoleApp2/bin/Debug/net8.0/Humanizer.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Humanizer.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/IOT_JieKou.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/IOT_JieKou.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/IOT_JieKou.pdb
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/IOT_JieKou.pdb
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/MemoryPack.Core.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/MemoryPack.Core.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/MessagePack.Annotations.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/MessagePack.Annotations.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/MessagePack.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/MessagePack.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Bcl.AsyncInterfaces.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Bcl.AsyncInterfaces.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.CodeAnalysis.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.CodeAnalysis.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.Features.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.Features.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.Hosting.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.Hosting.dll
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.Logging.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.Logging.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.ObjectPool.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.ObjectPool.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.Options.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.Options.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.Primitives.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.Extensions.Primitives.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.NET.StringTools.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Microsoft.NET.StringTools.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Newtonsoft.Json.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Newtonsoft.Json.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Orleans.Core.Abstractions.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Orleans.Core.Abstractions.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Orleans.Core.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Orleans.Core.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/Orleans.Serialization.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/Orleans.Serialization.dll
Normal file
Binary file not shown.
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/System.Composition.Convention.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/System.Composition.Convention.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/System.Composition.Hosting.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/System.Composition.Hosting.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/System.Composition.Runtime.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/System.Composition.Runtime.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/System.Composition.TypedParts.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/System.Composition.TypedParts.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/System.Diagnostics.EventLog.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/System.Diagnostics.EventLog.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/System.IO.Hashing.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/System.IO.Hashing.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/System.IO.Pipelines.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/System.IO.Pipelines.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/System.Memory.Data.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/System.Memory.Data.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/ViewModels.dll
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/ViewModels.dll
Normal file
Binary file not shown.
BIN
ConsoleApp2/bin/Debug/net8.0/ViewModels.pdb
Normal file
BIN
ConsoleApp2/bin/Debug/net8.0/ViewModels.pdb
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
1449
ConsoleApp2/obj/ConsoleApp2.csproj.nuget.dgspec.json
Normal file
1449
ConsoleApp2/obj/ConsoleApp2.csproj.nuget.dgspec.json
Normal file
File diff suppressed because it is too large
Load Diff
23
ConsoleApp2/obj/ConsoleApp2.csproj.nuget.g.props
Normal file
23
ConsoleApp2/obj/ConsoleApp2.csproj.nuget.g.props
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
|
||||
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
|
||||
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
|
||||
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
|
||||
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\Administrator\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
|
||||
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
|
||||
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.14.1</NuGetToolVersion>
|
||||
</PropertyGroup>
|
||||
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<SourceRoot Include="C:\Users\Administrator\.nuget\packages\" />
|
||||
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
|
||||
</ItemGroup>
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\8.0.1\buildTransitive\net6.0\Microsoft.Extensions.Configuration.UserSecrets.props" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\8.0.1\buildTransitive\net6.0\Microsoft.Extensions.Configuration.UserSecrets.props')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.orleans.codegenerator\8.2.0\buildTransitive\Microsoft.Orleans.CodeGenerator.props" Condition="Exists('$(NuGetPackageRoot)microsoft.orleans.codegenerator\8.2.0\buildTransitive\Microsoft.Orleans.CodeGenerator.props')" />
|
||||
</ImportGroup>
|
||||
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<PkgMicrosoft_CodeAnalysis_Analyzers Condition=" '$(PkgMicrosoft_CodeAnalysis_Analyzers)' == '' ">C:\Users\Administrator\.nuget\packages\microsoft.codeanalysis.analyzers\3.3.3</PkgMicrosoft_CodeAnalysis_Analyzers>
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
10
ConsoleApp2/obj/ConsoleApp2.csproj.nuget.g.targets
Normal file
10
ConsoleApp2/obj/ConsoleApp2.csproj.nuget.g.targets
Normal file
@@ -0,0 +1,10 @@
|
||||
<?xml version="1.0" encoding="utf-8" standalone="no"?>
|
||||
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<ImportGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.options\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Options.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.options\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Options.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.logging.abstractions\8.0.2\buildTransitive\net6.0\Microsoft.Extensions.Logging.Abstractions.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.binder\8.0.2\buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.Binder.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.binder\8.0.2\buildTransitive\netstandard2.0\Microsoft.Extensions.Configuration.Binder.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\8.0.1\buildTransitive\net6.0\Microsoft.Extensions.Configuration.UserSecrets.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.extensions.configuration.usersecrets\8.0.1\buildTransitive\net6.0\Microsoft.Extensions.Configuration.UserSecrets.targets')" />
|
||||
<Import Project="$(NuGetPackageRoot)microsoft.orleans.sdk\8.2.0\buildTransitive\Microsoft.Orleans.Sdk.targets" Condition="Exists('$(NuGetPackageRoot)microsoft.orleans.sdk\8.2.0\buildTransitive\Microsoft.Orleans.Sdk.targets')" />
|
||||
</ImportGroup>
|
||||
</Project>
|
||||
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")]
|
||||
23
ConsoleApp2/obj/Debug/net8.0/ConsoleApp2.AssemblyInfo.cs
Normal file
23
ConsoleApp2/obj/Debug/net8.0/ConsoleApp2.AssemblyInfo.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本:4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能会导致不正确的行为,并且如果
|
||||
// 重新生成代码,这些更改将会丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
using System;
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("ConsoleApp2")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+b5c74a3917285a83fa24bb31b761745583549030")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("ConsoleApp2")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("ConsoleApp2")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
// 由 MSBuild WriteCodeFragment 类生成。
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user