* LCApplicationRealtimeExt.cs:

* Program.cs: chore: 去掉 warning
oneRain 2020-03-18 16:29:04 +08:00
parent ca2c190d3b
commit d109ccef65
2 changed files with 1 additions and 9 deletions

View File

@ -6,13 +6,5 @@ using LeanCloud.Realtime.Internal;
namespace LeanCloud {
public static class LCApplicationRealtimeExt {
public static async Task<LCIMClient> CreateIMClient(this LCApplication application, string clientId) {
if (string.IsNullOrEmpty(clientId)) {
throw new ArgumentNullException(nameof(clientId));
}
LCIMClient client = new LCIMClient(clientId);
return client;
}
}
}

View File

@ -12,7 +12,7 @@ namespace RealtimeConsole {
public static void Main(string[] args) {
Console.WriteLine("Hello World!");
Start();
_ = Start();
Console.ReadKey(true);
}