var startTimeSpan = TimeSpan.Zero;
var periodTimeSpan = TimeSpan.FromMinutes(5);
var timer = new System.Threading.Timer((e) =>
{
MyMethod();
}, null, startTimeSpan, periodTimeSpan);
More Related Contents:
- How to trim after 1 letter from space C#? [closed]
- How to capture drop-down, checkbox and radio selected text? [closed]
- How to cancel Task await after a timeout period
- Difference between two lists
- how can you easily check if access is denied for a file in .NET?
- What is the best way to implement a “timer”? [duplicate]
- How does the ternary operator work?
- Notify ObservableCollection when Item changes
- C# – Cannot implicitly convert type List to List
- How to extract text from MS office documents in C#
- Why the cpu performance counter kept reporting 0% cpu usage?
- How to set value for property of an anonymous object?
- Store complex object in TempData
- Testing equality of arrays in C#
- ASP.NET Web Application Message Box
- How can I intercept all key events, including ctrl+alt+del and ctrl+tab?
- Static and Instance methods with the same name?
- How to take all but the last element in a sequence using LINQ?
- A way to push buffered events in even intervals
- Convert DataTable to IEnumerable
- Random errors using wait for element clickable method in Selenium
- .Net Core 2.0 Process.Start throws “The specified executable is not a valid application for this OS platform”
- ObservableCollection and Item PropertyChanged
- Culture invariant Decimal.TryParse()
- How do I solve a “view not found” exception in asp.net core mvc project
- Parsing one terabyte of text and efficiently counting the number of occurrences of each word
- .net Core Parallel.ForEach issues
- How to use Custom Serialization or Deserialization in WCF to force a new instance on every property of a datacontact ?
- Understanding Covariance and Contravariance in C# 4.0
- Byte Array to Bitmap Image