Skip to content

Commit

Permalink
v3.0 第三代协议通信库,增强RPC,引入主流Http/WebSockt/WebApi应用级封装
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jun 20, 2024
1 parent 6565a67 commit 36f76ab
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 17 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/publish-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Setup dotNET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Get Version
run: echo "VERSION=$(date '+%Y.%m%d-beta%H%M')" >> $GITHUB_ENV
- name: Build
run: |
dotnet pack --version-suffix $(date "+%Y.%m%d-beta%H%M") -c Release -o out NewLife.Remoting/NewLife.Remoting.csproj
dotnet pack --version-suffix $(date "+%Y.%m%d-beta%H%M") -c Release -o out NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out NewLife.Remoting/NewLife.Remoting.csproj
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj
- name: Publish
run: |
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ jobs:
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Get Version
run: echo "VERSION=$(date '+%Y.%m%d')" >> $GITHUB_ENV
- name: Build
run: |
dotnet pack -c Release -o out NewLife.Remoting/NewLife.Remoting.csproj
dotnet pack -c Release -o out NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out NewLife.Remoting/NewLife.Remoting.csproj
dotnet pack --version-suffix ${{ env.VERSION }} -c Release -o out NewLife.Remoting.Extensions/NewLife.Remoting.Extensions.csproj
- name: Publish
run: |
Expand Down
6 changes: 3 additions & 3 deletions Demo/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Demo;

internal class Program
{
static void Main(string[] args)
static void Main(String[] args)
{
XTrace.UseConsole();

Expand Down Expand Up @@ -53,7 +53,7 @@ class BigController : IApi
{
public IApiSession Session { get; set; }

public int Sum(int a, int b)
public Int32 Sum(Int32 a, Int32 b)
{
Task.Run(async () =>
{
Expand All @@ -64,7 +64,7 @@ public int Sum(int a, int b)

return a + b;
}
public string ToUpper(string str) => str.ToUpper();
public String ToUpper(String str) => str.ToUpper();

public Packet Test(Packet pk)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFrameworks>net6.0;net7.0;net8.0</TargetFrameworks>
<AssemblyTitle>RPC服务扩展</AssemblyTitle>
<Description>RPC远程过程调用,二进制封装,提供高吞吐低延迟的高性能RPC框架</Description>
<AssemblyTitle>协议通信扩展库</AssemblyTitle>
<Description>提供WebApi应用级服务端</Description>
<Company>新生命开发团队</Company>
<Copyright>©2002-2024 NewLife</Copyright>
<VersionPrefix>2.8</VersionPrefix>
<VersionPrefix>3.0</VersionPrefix>
<VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
<Version>$(VersionPrefix).$(VersionSuffix)</Version>
<FileVersion>$(Version)</FileVersion>
Expand All @@ -31,7 +31,7 @@
<RepositoryUrl>https://github.com/NewLifeX/NewLife.Remoting</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>新生命团队;X组件;NewLife;$(AssemblyName)</PackageTags>
<PackageReleaseNotes>RPC服务</PackageReleaseNotes>
<PackageReleaseNotes>第三代协议通信库,增强RPC,引入主流Http/WebSockt/WebApi应用级封装</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand Down
8 changes: 4 additions & 4 deletions NewLife.Remoting/NewLife.Remoting.csproj
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net45;net461;netstandard2.0;netstandard2.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
<AssemblyTitle>RPC远程过程调用</AssemblyTitle>
<Description>RPC远程过程调用,二进制封装,提供高吞吐低延迟的高性能RPC框架</Description>
<AssemblyTitle>协议通信库</AssemblyTitle>
<Description>提供高性能RPC客户端服务端,提供Http/WebSocket客户端服务端,提供应用级客户端</Description>
<Company>新生命开发团队</Company>
<Copyright>©2002-2024 新生命开发团队</Copyright>
<VersionPrefix>2.8</VersionPrefix>
<VersionPrefix>3.0</VersionPrefix>
<VersionSuffix>$([System.DateTime]::Now.ToString(`yyyy.MMdd`))</VersionSuffix>
<Version>$(VersionPrefix).$(VersionSuffix)</Version>
<FileVersion>$(Version)</FileVersion>
Expand All @@ -28,7 +28,7 @@
<RepositoryUrl>https://github.com/NewLifeX/NewLife.Remoting</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageTags>新生命团队;X组件;NewLife;$(AssemblyName)</PackageTags>
<PackageReleaseNotes>RPC接口出入参支持IAccessor派生类,便于使用二进制序列化用户自定义消息,其它消息默认Json序列化</PackageReleaseNotes>
<PackageReleaseNotes>第三代协议通信库,增强RPC,引入主流Http/WebSockt/WebApi应用级封装</PackageReleaseNotes>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
Expand Down
1 change: 0 additions & 1 deletion Samples/IoTZero/Program.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using IoTZero;
using IoTZero.Common;
using IoTZero.Services;
using NewLife.Caching;
using NewLife.Cube;
Expand Down

0 comments on commit 36f76ab

Please sign in to comment.