guibranco / GuiStracini.Mandae

Methods that deal with async should have their names suffixed with Async CS-R1073
Anti-pattern
Major
7 months ago10 months old
Method with return type Task does not follow the naming convention
278        /// <param name="requestObject">The request object.</param>
279        /// <param name="token">The token.</param>
280        /// <returns>TOut.</returns>
281        public async Task<TOut> Post<TOut, TIn>(TIn requestObject, CancellationToken token)282            where TIn : Request
283            where TOut : BaseResponse
284        {
Method with return type Task does not follow the naming convention
262        /// <param name="requestObject">The request object.</param>
263        /// <param name="token">The token.</param>
264        /// <returns>TOut.</returns>
265        public async Task<TOut> Get<TOut, TIn>(TIn requestObject, CancellationToken token)266            where TIn : Request
267            where TOut : BaseResponse
268        {
Method with return type Task does not follow the naming convention
127        /// <returns>TOut.</returns>
128        /// <exception cref="System.Net.Http.HttpRequestException">Requested method {method} not implemented in V1</exception>
129        /// <exception cref="GuiStracini.Mandae.GoodPractices.MandaeApiException"></exception>
130        private async Task<TOut> Execute<TOut, TIn>(131            ActionMethod method,
132            TIn requestObject,
133            CancellationToken cancellationToken
Method with return type Task does not follow the naming convention
 79        /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns>
 80        /// <exception cref="System.InvalidOperationException">Cannot get the constants path</exception>
 81        /// <exception cref="System.InvalidOperationException">Cannot get the constants from file {match.Value}</exception>
 82        private async Task<bool> GetConstants(CancellationToken cancellationToken) 83        {
 84            using (var client = new HttpClient())
 85            {
Method with return type Task does not follow the naming convention
270        /// <param name="requestObject">The request object.</param>
271        /// <param name="token">The token.</param>
272        /// <returns>Task&lt;TOut&gt;.</returns>
273        public async Task<TOut> Delete<TOut, TIn>(TIn requestObject, CancellationToken token)274            where TIn : Request
275        {
276            return await Execute<TOut, TIn>(ActionMethod.DELETE, requestObject, token)