public FlutnetWebSocketService() { // Generate a long task when start the debug service _taskId = UIApplication.SharedApplication.BeginBackgroundTask("FlutnetWebSocket", () => { // Expiration handler do nothing }); _socket = new FlutnetWebSocket(); _socket.Start(); }
public override void OnCreate() { base.OnCreate(); _socket = new FlutnetWebSocket(); }