diff --git a/Realtime/LCApplicationRealtimeExt.cs b/Realtime/LCApplicationRealtimeExt.cs index 73f48ad..e26d47e 100644 --- a/Realtime/LCApplicationRealtimeExt.cs +++ b/Realtime/LCApplicationRealtimeExt.cs @@ -6,13 +6,5 @@ using LeanCloud.Realtime.Internal; namespace LeanCloud { public static class LCApplicationRealtimeExt { - public static async Task CreateIMClient(this LCApplication application, string clientId) { - if (string.IsNullOrEmpty(clientId)) { - throw new ArgumentNullException(nameof(clientId)); - } - - LCIMClient client = new LCIMClient(clientId); - return client; - } } } diff --git a/Test/RealtimeConsole/Program.cs b/Test/RealtimeConsole/Program.cs index 6ec85c1..b0b4dda 100644 --- a/Test/RealtimeConsole/Program.cs +++ b/Test/RealtimeConsole/Program.cs @@ -12,7 +12,7 @@ namespace RealtimeConsole { public static void Main(string[] args) { Console.WriteLine("Hello World!"); - Start(); + _ = Start(); Console.ReadKey(true); }