Wait for an event in a WaterfallDialog

Working on a Skill, I needed to block the execution of a WaterfallDialog while waiting for a specific event to arrive. The solution is simple and based on the use of EventPrompt. Below I show how to use it. Register EventPrompt in the constructor AddDialog(new WaterfallDialog(nameof(WaterfallDialog), new WaterfallStep[] { HelloAsync, WaitForEventAsync, DoneAsync })); AddDialog(new EventPrompt(nameof(EventPrompt), … Continue reading Wait for an event in a WaterfallDialog

macOS disable WIFI on logout

I recently started using an Apple notebook as a development laptop. I realized that when I block the screen the WIFI connection goes down. This is a wanted behavior and can be changed using this command: cd /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources sudo ./airport en1 prefs DisconnectOnLogout=NO Obviously you need to replace "en1" with the identifier of your WIFI … Continue reading macOS disable WIFI on logout