-
Notifications
You must be signed in to change notification settings - Fork 19
/
IAppServiceClient.cs
27 lines (22 loc) · 1019 Bytes
/
IAppServiceClient.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
using RESTClient;
using System;
using System.Collections;
namespace Azure.AppServices {
public interface IAppServiceClient : IZumoClient {
AppServiceTable<E> GetTable<E>(string tableName) where E : class;
/// <summary>
/// Invokes a custom API using GET HTTP method
/// </summary>
IEnumerator InvokeApi<T>(string apiName, Action<IRestResponse<T>> callback = null) where T : new();
/// <summary>
/// Invokes a custom API for HTTP Methods: GET, POST, PUT, PATCH, DELETE
/// </summary>
IEnumerator InvokeApi<T>(string apiName, Method httpMethod, Action<IRestResponse<T>> callback = null) where T : new();
/// <summary>
/// Invokes a custom API with body object
/// </summary>
IEnumerator InvokeApi<B, T>(string apiName, Method httpMethod, B body, Action<IRestResponse<T>> callback = null) where T : new();
}
}