Bit.Core.Services.PushSharpPushService.PushSyncCiphersAsync C# (CSharp) Method

PushSyncCiphersAsync() public method

public PushSyncCiphersAsync ( System.Guid userId ) : System.Threading.Tasks.Task
userId System.Guid
return System.Threading.Tasks.Task
        public async Task PushSyncCiphersAsync(Guid userId)
        {
            var message = new SyncCiphersPushNotification
            {
                Type = PushType.SyncCiphers,
                UserId = userId,
                Date = DateTime.UtcNow,
                Aps = new PushNotification.AppleData { ContentAvailable = 1 }
            };

            await PushToAllUserDevicesAsync(userId, JObject.FromObject(message), null);
        }