-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(configuration): updating to allow services to pass a key when se…
…nding requests and changing how option information is configured and stored (#98) BREAKING CHANGE: removed all key container types in favour of using `IOptions<T>`, changed how configuration is done for options during service configuration, changed the namespace of multiple classes/extension methods, changed the name of the extension methods to add the geocoding services
- Loading branch information
1 parent
86adae2
commit 659288f
Showing
114 changed files
with
1,677 additions
and
1,648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 0 additions & 21 deletions
21
src/Geo.ArcGIS/Abstractions/IArcGISCredentialsContainer.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// <copyright file="IArcGISTokenProvider.cs" company="Geo.NET"> | ||
// Copyright (c) Geo.NET. | ||
// Licensed under the MIT license. See the LICENSE file in the solution root for full license information. | ||
// </copyright> | ||
|
||
namespace Geo.ArcGIS | ||
{ | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// A class for providing an ArcGIS API token. | ||
/// </summary> | ||
public interface IArcGISTokenProvider | ||
{ | ||
/// <summary> | ||
/// Gets a token for the ArcGIS API using the provided client id and client secret. | ||
/// </summary> | ||
/// <param name="clientId">The client id to use to fetch the token.</param> | ||
/// <param name="clientSecret">The client secret to use to fetch the token.</param> | ||
/// <param name="cancellationToken">A <see cref="CancellationToken"/> used to cancel the request.</param> | ||
/// <returns>A <see cref="string"/> with the token for accessing the ArcGIS API, or null if a token could not be retrieved.</returns> | ||
Task<string> GetTokenAsync(string clientId, string clientSecret, CancellationToken cancellationToken); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.