Skip to content

Commit

Permalink
Merge pull request #302 from Otixa/add-interface
Browse files Browse the repository at this point in the history
Add IArangoDBClient interface. Fixes #296
  • Loading branch information
DiscoPYF authored Nov 12, 2020
2 parents ac222cd + 882c2ea commit 6abd7bd
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
{
public 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 6abd7bd

Please sign in to comment.