public async Task HandleAsync(DeregisterApnsDeviceCommand message, CancellationToken cancellationToken)
        {
            string normalizedDeviceToken = message.DeviceToken.Replace(" ", "");
            ApnsUserDeviceToken token    = await repository.FirstOrDefaultAsync <ApnsUserDeviceToken>(
                x => x.DeviceToken == normalizedDeviceToken &&
                x.AppId == message.AppId);

            if (token != null)
            {
                repository.Remove(token);
            }
        }
 public Task DeregisterDevice(DeregisterApnsDeviceCommand parameters)
 {
     return(CommandBus.SendAsync(parameters));
 }