* LCApplicationRealtimeExt.cs:
* Program.cs: chore: 去掉 warning
parent
ca2c190d3b
commit
d109ccef65
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,7 +12,7 @@ namespace RealtimeConsole {
|
|||
public static void Main(string[] args) {
|
||||
Console.WriteLine("Hello World!");
|
||||
|
||||
Start();
|
||||
_ = Start();
|
||||
|
||||
Console.ReadKey(true);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue