forked from Redth/PushSharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPushServiceSettings.cs
More file actions
29 lines (27 loc) · 809 Bytes
/
PushServiceSettings.cs
File metadata and controls
29 lines (27 loc) · 809 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PushSharp.Core
{
public class PushServiceSettings : IPushServiceSettings
{
public PushServiceSettings()
{
this.AutoScaleChannels = true;
this.MaxAutoScaleChannels = 20;
this.MinAvgTimeToScaleChannels = 100;
this.Channels = 1;
this.MaxNotificationRequeues = 5;
this.NotificationSendTimeout = 15000;
this.IdleTimeout = TimeSpan.FromMinutes (5);
}
public bool AutoScaleChannels { get; set; }
public int MaxAutoScaleChannels { get; set; }
public long MinAvgTimeToScaleChannels { get; set; }
public int Channels { get; set; }
public int MaxNotificationRequeues { get; set; }
public int NotificationSendTimeout { get; set; }
public TimeSpan IdleTimeout { get;set; }
}
}