diff --git a/Example2/Chat.cs b/Example2/Chat.cs index cff3f4ea..c5e59849 100644 --- a/Example2/Chat.cs +++ b/Example2/Chat.cs @@ -27,7 +27,7 @@ namespace Example2 return Context.QueryString ["name"] ?? (_prefix + getNum ()); } - private int getNum () + private static int getNum () { return Interlocked.Increment (ref _num); }