Esempio n. 1
0
 /// <summary>
 /// 异步设置对应 <see cref="Session"/> 实例的 Websocket
 /// </summary>
 /// <param name="enabled">是否启用</param>
 private async Task SetWebsocketAsync(bool enabled) => (await ApiMethods.ConfigAsync(Session.Settings.HttpUri, Session.SessionKey, enabled)).CheckError();
Esempio n. 2
0
 /// <summary>
 /// 异步设置对应 <see cref="Session"/> 实例的缓存大小
 /// </summary>
 /// <param name="size">缓存大小</param>
 public async Task SetCacheSizeAsync(int size) => (await ApiMethods.ConfigAsync(Session.Settings.HttpUri, Session.SessionKey, size)).CheckError();