Ritu Singh
The warning "This async method lacks 'await' operators" typically occurs when you declare a function with the async keyword but don't actually use await inside the function. The purpose of async functions is to allow the use of await to handle promises in a synchronous-looking way.
To address this warning, you have to remove async from your derived classes and return a value using Task.FromResult()
Base:
Derived:
Suggested blogs:
>How to delete duplicate names from Array in Typescript?
>How to do PHP Decryption from Node.js Encryption
>How to Set up the Android emulator?
>How to Set up the local environment for Angular development?
>How to solve encoding issue when writing to a text file, with Python?
>Step by Step guide to Deploy Terraform in Azure using GitHub Actions
>Testing react components using Hooks and Mocks
>Use Firebase Realtime Database with ASP.NET MVC App
>Use of Singletons in .NET Core in AWS Lambda
>What are common syntax errors and exceptions in Python