public void ExecutonFunction() { List <WindowsServiceExecution> lst = windowsServiceExecutionService.GetAllPendingExecution(); foreach (WindowsServiceExecution windowsServiceExecution in lst) { switch (windowsServiceExecution.WindowsServiceFunctionCode) { case 1: MarkAutoRenewalSubscription(windowsServiceExecution.WindowsServiceArgumrnt, windowsServiceExecution); break; } } }