This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Data.Entity; | |
| using System.Linq; | |
| using System.Web; | |
| namespace LogFileParser.Helpers | |
| { | |
| public static class EntityPerformance | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Inherit the base DataTable filter request so we can have extra fields to use. | |
| public class DataTableDateFilteredRequest : DataTableFilterRequest | |
| { | |
| public DateTime? fromDate { get; set; } | |
| public DateTime? toDate { get; set; } | |
| } | |
| // The following are the base classes for sending/receiving jQuery DataTable responses. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Written for LinqPad, sorry guys | |
| async void Main() | |
| { | |
| var pm = new PollerManager(); | |
| // var task1 = pm.Create(() => { @"LOOP 1".Dump(); }, () => { @"DONE 1".Dump(); }, TimeSpan.FromSeconds(1), TimeSpan.FromSeconds(5)); | |
| // var task2 = pm.Create(() => { @"LOOP 2".Dump(); }, () => { @"DONE 2".Dump(); }, TimeSpan.FromSeconds(2), TimeSpan.FromSeconds(10)); | |
| for (int i = 0; i < 10; i++) { |