Class PushServiceClientOptions
The options for PushServiceClient
Inheritance
System.Object
PushServiceClientOptions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lib.AspNetCore.WebPush
Assembly: Lib.AspNetCore.WebPush.dll
Syntax
public class PushServiceClientOptions
Properties
AutoRetryAfter
Gets or sets the value indicating if client should automatically attempt to retry in case of 429 Too Many Requests.
Declaration
public bool AutoRetryAfter { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultAuthenticationScheme
Gets or sets the default VapidAuthenticationScheme to be used.
Declaration
public VapidAuthenticationScheme DefaultAuthenticationScheme { get; set; }
Property Value
Type | Description |
---|---|
VapidAuthenticationScheme |
DefaultTimeToLive
Gets or sets the default time (in seconds) for which the message should be retained by push service. It will be used when TimeToLive is not set.
Declaration
public int? DefaultTimeToLive { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Expiration
Gets or sets the time after which the authentication token expires (in seconds).
Declaration
public int? Expiration { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
MaxRetriesAfter
Gets or sets the value indicating the maximum number of automatic attempts to retry in case of 429 Too Many Requests (<= 0 means unlimited).
Declaration
public int MaxRetriesAfter { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
PrivateKey
Gets or sets the Application Server Private Key.
Declaration
public string PrivateKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
PublicKey
Gets or sets the Application Server Public Key.
Declaration
public string PublicKey { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Subject
Gets or sets the contact information for the application server.
Declaration
public string Subject { get; set; }
Property Value
Type | Description |
---|---|
System.String |