forked from loafle/openapi-generator-original
* [csharp] refactor ApiClient and Configuration usage * # This is a combination of 2 commits. # The first commit's message is: [csharp] refactor ApiClient and Configuration usage [csharp] Regenerate sample # This is the 2nd commit message: [csharp] Simplify setting apikey/prefix/headers * # This is a combination of 2 commits. # The first commit's message is: [csharp] refactor ApiClient and Configuration usage * Simplify setting apikey/prefix/headers * Regenerate sample # This is the 2nd commit message: [csharp] Pass-through configuration timeout to client * [csharp] refactor ApiClient and Configuration usage * Simplify setting apikey/prefix/headers * Regenerate sample * [csharp] Regenerate all client samples * [csharp] regenerate .net standard/core samples * [csharp] Fix Timeout diff between netstandard and non-netstandard * [csharp] Resolve additional netStandard issues after merge * [csharp] Update doc for Configuration usage
26 lines
751 B
Plaintext
26 lines
751 B
Plaintext
{{>partial_header}}
|
|
|
|
using System.Collections.Generic;
|
|
|
|
namespace {{packageName}}.Client
|
|
{
|
|
/// <summary>
|
|
/// Represents a readable-only configuration contract.
|
|
/// </summary>
|
|
public interface IReadableConfiguration
|
|
{
|
|
string AccessToken { get; }
|
|
IDictionary<string, string> ApiKey { get; }
|
|
IDictionary<string, string> ApiKeyPrefix { get; }
|
|
string BasePath { get; }
|
|
string DateTimeFormat { get; }
|
|
IDictionary<string, string> DefaultHeader { get; }
|
|
string Password { get; }
|
|
string TempFolderPath { get; }
|
|
int Timeout { get; }
|
|
string UserAgent { get; }
|
|
string Username { get; }
|
|
|
|
string GetApiKeyWithPrefix(string apiKeyIdentifier);
|
|
}
|
|
} |