The warning means that you declared your method to be asynchronous, while the method is actually synchronous. You could make your method asynchronous like so:
public async void ProcessRequests(object sender, ElapsedEventArgs args)
{
await Task.Run(() => {
timeDelay2.Stop();
string ID = DateTime.Now.ToString("yyyyMMddhhmmss");
try {
if (disableService == "N") {
var Requests = GetTransactions(ID);
if (Requests != null) {
int totalRows = Requests.Count;
if (totalRows > 0) {
logger.Info(" ID : " + ID + " | New Reprocessing Session Started... ");
Parallel.ForEach(Requests,
row => {
ReprocessFailedTopUp(ID, row);
}
);
logger.Info(" ID : " + ID + " | Transactions Processed : " + totalRows.ToString("N0"));
}
}
}
}
catch (Exception exc) {
logger.Error("ID : " + ID + " | Exception Occurred in Current Session | Exception : " + exc.Message);
}
timeDelay2.Start();
});
}