【问题标题】:Pusher Client, authEndpoint field in .NET Core SDKPusher 客户端,.NET Core SDK 中的 authEndpoint 字段
【发布时间】:2021-07-20 16:20:13
【问题描述】:

我需要在 PushClient 对象中设置 authEndpoint。文档将此字段描述为客户端对象属性的一部分,但在 PusherOptions 的引用中我没有看到它

public class PusherOptions
{
    public PusherOptions();

    public bool Encrypted { get; set; }
    public IAuthorizer Authorizer { get; set; }
    public string Cluster { get; set; }
    public string Host { get; set; }
    public TimeSpan ClientTimeout { get; set; }
    public ITraceLogger TraceLogger { get; set; }
}

我应该如何设置 authEndpoint?

【问题讨论】:

    标签: c# .net .net-core websocket pusher


    【解决方案1】:

    authpoint 必须在 IAuthorizer 实例中设置,HttpAuthorizer

    Authorizer= new HttpAuthorizer("authUrl")
    

    【讨论】:

      猜你喜欢
      • 2017-03-28
      • 2020-08-11
      • 1970-01-01
      • 2017-06-08
      • 1970-01-01
      • 1970-01-01
      • 2018-04-01
      • 2017-05-03
      • 2019-11-22
      相关资源
      最近更新 更多