C# Class Bit.Core.Services.PushSharpPushService

Inheritance: IPushService
Show file Open project: bitwarden/core

Public Methods

Method Description
PushSharpPushService ( IDeviceRepository deviceRepository, ILogger logger, CurrentContext currentContext, IHostingEnvironment hostingEnvironment, GlobalSettings globalSettings ) : System
PushSyncCipherCreateAsync ( Cipher cipher ) : System.Threading.Tasks.Task
PushSyncCipherDeleteAsync ( Cipher cipher ) : System.Threading.Tasks.Task
PushSyncCipherUpdateAsync ( Cipher cipher ) : System.Threading.Tasks.Task
PushSyncCiphersAsync ( System.Guid userId ) : System.Threading.Tasks.Task

Private Methods

Method Description
ApnsBroker_OnNotificationFailed ( PushSharp.Apple.ApnsNotification notification, AggregateException exception ) : void
FeedbackService_FeedbackReceived ( string deviceToken, System.DateTime timestamp ) : void
GcmBroker_OnNotificationFailed ( PushSharp.Google.GcmNotification notification, AggregateException exception ) : void
GetCertificate ( string thumbprint ) : X509Certificate2
InitApnsBroker ( GlobalSettings globalSettings, IHostingEnvironment hostingEnvironment ) : void
InitGcmBroker ( GlobalSettings globalSettings ) : void
PushCipherAsync ( Cipher cipher, PushType type ) : System.Threading.Tasks.Task
PushToAllUserDevicesAsync ( System.Guid userId, Newtonsoft.Json.Linq.JObject message, IEnumerable tokensToSkip ) : System.Threading.Tasks.Task

Method Details

PushSharpPushService() public method

public PushSharpPushService ( IDeviceRepository deviceRepository, ILogger logger, CurrentContext currentContext, IHostingEnvironment hostingEnvironment, GlobalSettings globalSettings ) : System
deviceRepository IDeviceRepository
logger ILogger
currentContext CurrentContext
hostingEnvironment IHostingEnvironment
globalSettings GlobalSettings
return System

PushSyncCipherCreateAsync() public method

public PushSyncCipherCreateAsync ( Cipher cipher ) : System.Threading.Tasks.Task
cipher Cipher
return System.Threading.Tasks.Task

PushSyncCipherDeleteAsync() public method

public PushSyncCipherDeleteAsync ( Cipher cipher ) : System.Threading.Tasks.Task
cipher Cipher
return System.Threading.Tasks.Task

PushSyncCipherUpdateAsync() public method

public PushSyncCipherUpdateAsync ( Cipher cipher ) : System.Threading.Tasks.Task
cipher Cipher
return System.Threading.Tasks.Task

PushSyncCiphersAsync() public method

public PushSyncCiphersAsync ( System.Guid userId ) : System.Threading.Tasks.Task
userId System.Guid
return System.Threading.Tasks.Task