Skip to content

Instantly share code, notes, and snippets.

@rssoft2
rssoft2 / ConsolePortScanner.cs
Created August 9, 2019 11:35 — forked from jonlabelle/ConsolePortScanner.cs
Simple async C# Open Port Network Scanner
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Diagnostics;
using System.Net.Sockets;
namespace ConsolePortScanner
{
class MainClass
@rssoft2
rssoft2 / AsyncAwaitEventHandlerTests.cs
Last active April 15, 2019 13:38
showing deterministic (serial) execution behaviour of async-task event handler
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Frank.AsyncVoid.Trials
{
[Explicit]
public class AsyncAwaitEventHandlerTests
{
@rssoft2
rssoft2 / AsyncVoidEventHandlerTests.cs
Last active April 15, 2019 14:59
showing unprecitable execution behaviour of async-void-event-handler
using System;
using System.Threading.Tasks;
using NUnit.Framework;
namespace Frank.AsyncVoid.Trials
{
[Explicit]
public class AsyncVoidEventHandlerTests
{
private static readonly Random Random = new Random();
using System.Threading.Tasks;
using Microsoft.Practices.Prism.Commands;
namespace Klingelnberg.MachineBase.Presentation.Core.Controls
{
/// <summary>
/// Ermöglicht die asynchrone Ausführung von UI-Triggern, die sich selbst während der Ausführung sperren
/// </summary>
public interface IAsyncCommand : IRaiseCanExecuteChanged
{
using System;
using System.Threading.Tasks;
using System.Windows.Input;
using Microsoft.Practices.Prism.Commands;
namespace Klingelnberg.MachineBase.Presentation.Core.Controls
{
/// <summary>
/// Ermöglicht die asynchrone Ausführung von UI-Triggern, die sich selbst während der Ausführung sperren
/// </summary>