コード例 #1
0
        /// <summary>
        /// Delete a source.
        /// </summary>
        /// <param name="sourceId">ID of source to delete</param>
        /// <returns>delete has been accepted</returns>
        public async Task DeleteSource(string sourceId)
        {
            Arguments.CheckNotNull(sourceId, nameof(sourceId));

            await _service.DeleteSourcesIDAsync(sourceId);
        }
コード例 #2
0
        /// <summary>
        /// Delete a source.
        /// </summary>
        /// <param name="sourceId">ID of source to delete</param>
        /// <returns>delete has been accepted</returns>
        public Task DeleteSourceAsync(string sourceId)
        {
            Arguments.CheckNotNull(sourceId, nameof(sourceId));

            return(_service.DeleteSourcesIDAsync(sourceId));
        }