Click here to Skip to main content
15,921,351 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C#
public static void TimeCheck(Object sender, ElapsedEventArgs e)


hai,
Iam having a method like this in windows service.And i want to call this method from another class.

Iam trying like this..

service.TimeCheck(null,new ElapsedEventArgs() );



Please help me in finding the solution..
Posted
Comments
Syed Shabeer 1-Aug-13 6:08am    
can you call it like service.TimeCheck(null,null);. Let me know if it works

1 solution

You can call it as

C#
service.TimeCheck(null,null);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900