Пример #1
0
        /// <summary>
        ///     Send a vlog record request notification.
        /// </summary>
        /// <remarks>
        ///     This is dispatched to the <see cref="DispatchManager"/>.
        /// </remarks>
        /// <param name="userId">User id to notify.</param>
        /// <param name="vlogId">The suggested vlog id to post.</param>
        /// <param name="requestTimeout">The timeout time span for the request.</param>
        public virtual Task NotifyVlogRecordRequestAsync(Guid userId, Guid vlogId, TimeSpan requestTimeout)
        {
            var notification = _notificationFactory.BuildVlogRecordRequest(userId, vlogId, DateTimeOffset.Now, requestTimeout);

            _logger.LogTrace($"Sending vlog record request to {userId}");

            _dispatchManager.Dispatch <NotifyBackgroundTask <DataVlogRecordRequest> >(notification);

            return(Task.CompletedTask);
        }