FastPushClient.NET
1.0.0
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package FastPushClient.NET --version 1.0.0
NuGet\Install-Package FastPushClient.NET -Version 1.0.0
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="FastPushClient.NET" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add FastPushClient.NET --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: FastPushClient.NET, 1.0.0"
#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 FastPushClient.NET as a Cake Addin
#addin nuget:?package=FastPushClient.NET&version=1.0.0
// Install FastPushClient.NET as a Cake Tool
#tool nuget:?package=FastPushClient.NET&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
集成demo
using System;
using System.Threading;
using FastLivePushClient.CoreLib;
using FastLivePushClient.Entity;
using FastLivePushClient.Payload;
namespace FastLivePushAppEndpointDemo
{
internal class Program
{
private static readonly NLog.Logger Logger = NLog.LogManager.GetCurrentClassLogger();
public static void Main(string[] args)
{
var info = new AppInfo("a127297f117c4a3fb095a15443bc96fc", "b4722bb12f30485582fb3e3a5c6157c6",
"NUhONBRTxPxFtFkH78P9AJ2EDUJ1EeoaFzGVoJUz5BcYFtqiag0baRw61y1ycoZaYpkxp9BC08K2F8h2II4tyQ==");
var client = new PushClient().SetAppInfo(info);
client.AddInitailListener((code, message) =>
{
Logger.Info("SDK Initail: StatusCode :{0} Message:{1}", code, message);
});
client.AddSendListener((code, message) =>
{
Logger.Info("Local Send: StatusCode :{0} Message:{1}", code, message);
});
client.AddNotifyListener((code, message) =>
{
Logger.Info("Notification Status: StatusCode :{0} Message:{1}", code, message);
});
client.BuildClient();
// http客户端
var httpClient = new FastLiveHttpClient(info);
Thread.Sleep(4000);
if (client.IsReady())
{
for (int i = 0; i < 1000; i++)
{
var body = MessageBody.Create($"C# 消息 : {i}", "C#消息体", null);
var notify = Notification.Create("8613810654610", EnumMessage.Priority.LOW, body);
client.SendPushNotification(notify);
}
}
Console.ReadLine();
}
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net48 is compatible. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
- Bytebuf (>= 1.0.1)
- DotNettyAll (>= 2.6.0)
- EasyEncrypt (>= 2.2.1)
- EasyEncryption (>= 1.0.2)
- EasyHttp (>= 1.7.0)
- Newtonsoft.Json (>= 13.0.1)
- NLog.Config (>= 4.7.13)
- System.Memory (>= 4.5.3)
- System.Runtime.CompilerServices.Unsafe (>= 4.7.0)
- System.Threading.Tasks.Extensions (>= 4.5.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.