Simplest way to do a fire and forget method in C#?
问题 I saw in WCF they have the [OperationContract(IsOneWay = true)] attribute. But WCF seems kind of slow and heavy just to do create a nonblocking function. Ideally there would be something like static void nonblocking MethodFoo(){} , but I don\'t think that exists. What is the quickest way to create a nonblocking method call in C#? E.g. class Foo { static void Main() { FireAway(); //No callback, just go away Console.WriteLine(\"Happens immediately\"); } static void FireAway() { System.Threading