Вытащил солюшен на уровень выше, чтобы прощё было дотнетить
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
2966
VisaApiClient/Client.cs
Normal file
2966
VisaApiClient/Client.cs
Normal file
File diff suppressed because it is too large
Load Diff
31
VisaApiClient/ClientPartialMethods.cs
Normal file
31
VisaApiClient/ClientPartialMethods.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System.Text;
|
||||
|
||||
// ReSharper disable UnusedParameter.Local
|
||||
|
||||
namespace VisaApiClient;
|
||||
|
||||
public partial class Client
|
||||
{
|
||||
public AuthToken? AuthToken { get; set; }
|
||||
|
||||
private Task<HttpRequestMessage> CreateHttpRequestMessageAsync(CancellationToken cancellationToken)
|
||||
{
|
||||
var msg = new HttpRequestMessage();
|
||||
|
||||
msg.Headers.Authorization = new("Bearer", AuthToken?.Token);
|
||||
|
||||
return Task.FromResult(msg);
|
||||
}
|
||||
|
||||
|
||||
private async Task PrepareRequestAsync(HttpClient client, HttpRequestMessage request, string url, CancellationToken cancellationToken)
|
||||
=> await Task.CompletedTask;
|
||||
|
||||
private async Task PrepareRequestAsync(HttpClient client, HttpRequestMessage request, StringBuilder urlBuilder, CancellationToken cancellationToken)
|
||||
{
|
||||
await Task.CompletedTask;
|
||||
}
|
||||
|
||||
private async Task ProcessResponseAsync(HttpClient client, HttpResponseMessage response, CancellationToken cancellationToken)
|
||||
=> await Task.CompletedTask;
|
||||
}
|
||||
7
VisaApiClient/IClientBase.cs
Normal file
7
VisaApiClient/IClientBase.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace VisaApiClient
|
||||
{
|
||||
public interface IClientBase
|
||||
{
|
||||
AuthToken? AuthToken { get; set; }
|
||||
}
|
||||
}
|
||||
13
VisaApiClient/VisaApiClient.csproj
Normal file
13
VisaApiClient/VisaApiClient.csproj
Normal file
@@ -0,0 +1,13 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
101
VisaApiClient/clientGeneratorConfig.nswag
Normal file
101
VisaApiClient/clientGeneratorConfig.nswag
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user