This file contains 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
export class KittenRoutes { | |
static readonly listKittens = 'api/kittens/list'; | |
static feedKitten(kittenId: any): string { | |
return `api/kitten/${kittenId}/feed`; | |
} | |
static adoptKitten(kittenId: any): string { | |
return `api/kitten/${kittenId}/feed`; | |
} |
This file contains 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
private void OnDirectoryChange(object s, FileSystemEventArgs a) | |
{ | |
Console.Beep(1500, 200); | |
} |
This file contains 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
private readonly Timer _timer = new Timer(300) { AutoReset = false, Enabled = false }; | |
// ... | |
_timer.Elapsed += (s, a) => | |
{ | |
Console.Beep(1500, 200); | |
_timer.Enabled = false; | |
}; |
This file contains 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
_fileSystemWatcher = new FileSystemWatcher | |
{ | |
Path = @"C:\My Project\Apps\Analysis", | |
NotifyFilter = NotifyFilters.LastWrite, | |
Filter = "*.*" | |
}; | |
_fileSystemWatcher.EnableRaisingEvents = true; | |
_fileSystemWatcher.Changed += OnDirectoryChange; |
OlderNewer