Pub.Sdk 1.0.11

There is a newer version of this package available.
See the version list below for details.
dotnet add package Pub.Sdk --version 1.0.11
NuGet\Install-Package Pub.Sdk -Version 1.0.11
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Pub.Sdk" Version="1.0.11" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Pub.Sdk --version 1.0.11
#r "nuget: Pub.Sdk, 1.0.11"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install Pub.Sdk as a Cake Addin
#addin nuget:?package=Pub.Sdk&version=1.0.11

// Install Pub.Sdk as a Cake Tool
#tool nuget:?package=Pub.Sdk&version=1.0.11

how to use

//订阅
string serverIpAndPort = "127.0.0.1:5199";
List<SubscribeItem> subscribes = new List<SubscribeItem>();
subscribes.Add(new SubscribeItem
{
    Topic = "qq",
    Callback = async (msg) =>
    {
        Console.WriteLine("收到消息qq");
        await Task.Delay(1000);
        return ByteString.CopyFromUtf8("1");
    }
});

services.AddSubscribeClient(serverIpAndPort, subscribes);
services.AddSendClient(serverIpAndPort);

//调用方法
//注入PubGrpcService.Greeter.GreeterClient client
 var req = new PubGrpcService.RequestMsg
        {
            Topic = "qq",
            Id = Guid.NewGuid().ToString(),
            Data = ByteString.CopyFrom(0), //UnsafeByteOperations.UnsafeWrap(RandomNumberGenerator.GetBytes(1)),
            TimeoutMilliseconds = 30,
        };

req.Extra.Add("cc", "fsaffa");
var res = await client.RequestAsync(req);
Product Compatible and additional computed target framework versions.
.NET net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.6.0 81 5/25/2024
1.5.0 91 4/11/2024
1.4.1 85 3/22/2024
1.4.0 55 3/20/2024
1.3.4 127 1/16/2024
1.3.3 86 1/16/2024
1.3.2 84 1/14/2024
1.3.1 95 1/14/2024
1.3.0 93 1/14/2024
1.2.6 118 12/26/2023
1.2.5 87 12/22/2023
1.2.4 91 12/22/2023
1.2.3 77 12/22/2023
1.2.2 95 12/15/2023
1.2.1 118 11/30/2023
1.2.0 80 11/29/2023
1.1.4 89 11/29/2023
1.1.3 80 11/29/2023
1.1.1 90 11/28/2023
1.1.0 95 11/28/2023
1.0.38 97 11/27/2023
1.0.37 80 11/27/2023
1.0.36 90 11/27/2023
1.0.35 79 11/26/2023
1.0.33 88 11/26/2023
1.0.32 100 11/25/2023
1.0.31 89 11/25/2023
1.0.30 86 11/25/2023
1.0.23 101 11/23/2023
1.0.22 79 11/23/2023
1.0.21 94 11/23/2023
1.0.20 86 11/22/2023
1.0.19 95 11/22/2023
1.0.18 141 8/10/2023
1.0.17 140 8/10/2023
1.0.16 133 7/27/2023
1.0.15 142 7/25/2023
1.0.14 142 7/25/2023
1.0.13 146 7/25/2023
1.0.12 152 7/25/2023
1.0.11 153 7/24/2023
1.0.10 139 7/24/2023
1.0.9 145 7/23/2023
1.0.8 142 7/23/2023
1.0.7 138 7/22/2023
1.0.6 129 7/21/2023
1.0.5 135 7/21/2023
1.0.4 140 7/20/2023
1.0.3 141 7/20/2023
1.0.2 142 7/20/2023
1.0.1 133 7/20/2023