Skip to content

Commit

Permalink
Add IArangoDBClient interface. Fixes ArangoDB-Community#296
Browse files Browse the repository at this point in the history
  • Loading branch information
Otixa committed Nov 11, 2020
1 parent ac222cd commit 2bd1eb6
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arangodb-net-standard/ArangoDBClient.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Net.Http;
using System.Net.Http;
using ArangoDBNetStandard.AqlFunctionApi;
using ArangoDBNetStandard.AuthApi;
using ArangoDBNetStandard.CollectionApi;
Expand All @@ -18,7 +17,7 @@ namespace ArangoDBNetStandard
/// <summary>
/// Wrapper class providing access to the complete set of ArangoDB REST resources.
/// </summary>
public class ArangoDBClient : IDisposable
public class ArangoDBClient : IArangoDBClient
{
/// <summary>
/// The transport client used to communicate with the ArangoDB host.
Expand Down
61 changes: 61 additions & 0 deletions arangodb-net-standard/IArangoDBClient.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
using System;
using ArangoDBNetStandard.AqlFunctionApi;
using ArangoDBNetStandard.AuthApi;
using ArangoDBNetStandard.CollectionApi;
using ArangoDBNetStandard.CursorApi;
using ArangoDBNetStandard.DatabaseApi;
using ArangoDBNetStandard.DocumentApi;
using ArangoDBNetStandard.GraphApi;
using ArangoDBNetStandard.TransactionApi;
using ArangoDBNetStandard.UserApi;

namespace ArangoDBNetStandard
{
interface IArangoDBClient : IDisposable
{
/// <summary>
/// AQL user functions management API.
/// </summary>
AqlFunctionApiClient AqlFunction { get; }

/// <summary>
/// Auth API
/// </summary>
AuthApiClient Auth { get; }

/// <summary>
/// Cursor API
/// </summary>
CursorApiClient Cursor { get; }

/// <summary>
/// Database API
/// </summary>
DatabaseApiClient Database { get; }

/// <summary>
/// Document API
/// </summary>
DocumentApiClient Document { get; }

/// <summary>
/// Collection API
/// </summary>
CollectionApiClient Collection { get; }

/// <summary>
/// Transaction API
/// </summary>
TransactionApiClient Transaction { get; }

/// <summary>
/// Graph API
/// </summary>
GraphApiClient Graph { get; }

/// <summary>
/// User management API.
/// </summary>
UserApiClient User { get; }
}
}

0 comments on commit 2bd1eb6

Please sign in to comment.