doc: live query

oneRain 2021-04-20 11:29:59 +08:00
parent 2fedc04ac7
commit 765b301d40
2 changed files with 9 additions and 1 deletions

View File

@ -10,7 +10,7 @@ using LeanCloud.LiveQuery.Internal;
namespace LeanCloud.LiveQuery { namespace LeanCloud.LiveQuery {
/// <summary> /// <summary>
/// LiveQuery /// LCLiveQuery provides the live query in LeanCloud.
/// </summary> /// </summary>
public class LCLiveQuery { public class LCLiveQuery {
/// <summary> /// <summary>

View File

@ -2,7 +2,15 @@
using LeanCloud.Storage; using LeanCloud.Storage;
namespace LeanCloud.LiveQuery { namespace LeanCloud.LiveQuery {
/// <summary>
/// LCQueryExtension is the extension of query for live query.
/// </summary>
public static class LCQueryExtension { public static class LCQueryExtension {
/// <summary>
/// Subscribes this LCQuery to live query.
/// </summary>
/// <param name="query"></param>
/// <returns></returns>
public static async Task<LCLiveQuery> Subscribe(this LCQuery query) { public static async Task<LCLiveQuery> Subscribe(this LCQuery query) {
LCLiveQuery liveQuery = new LCLiveQuery { LCLiveQuery liveQuery = new LCLiveQuery {
Query = query Query = query