Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{>partial_header}}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{>partial_header}}
using System;
using Microsoft.Extensions.DependencyInjection;
using {{packageName}}.{{apiPackage}};
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated>
{{partial_header}}
{{>partial_header}}

{{#nrt}}
#nullable enable

Expand Down Expand Up @@ -53,4 +54,4 @@ namespace {{packageName}}.{{clientPackage}}
parseQueryString[ClientUtils.ApiKeyHeaderToString(Header)] = Uri.EscapeDataString(_raw).ToString(){{nrt!}};
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{>partial_header}}
using System;

namespace {{packageName}}.{{clientPackage}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated>
{{partial_header}}
{{>partial_header}}

{{#nrt}}
#nullable enable

Expand Down Expand Up @@ -43,4 +44,4 @@ namespace {{packageName}}.{{clientPackage}}
request.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Basic", {{packageName}}.Client.ClientUtils.Base64Encode(_username + ":" + _password));
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated>
{{partial_header}}
{{>partial_header}}

{{#nrt}}
#nullable enable

Expand Down Expand Up @@ -38,4 +39,4 @@ namespace {{packageName}}.{{clientPackage}}
request.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _raw);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated>
{{partial_header}}
{{>partial_header}}

{{#nrt}}
#nullable enable

Expand All @@ -19,4 +20,4 @@ namespace {{packageName}}.{{clientPackage}}
/// </summary>
public System.Net.CookieContainer Value { get; } = new System.Net.CookieContainer();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{>partial_header}}
using System;

namespace {{packageName}}.{{clientPackage}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated>
{{partial_header}}
{{>partial_header}}

{{#nrt}}
#nullable enable

Expand Down Expand Up @@ -42,4 +43,4 @@ namespace {{packageName}}.{{clientPackage}}
request.Headers.Add(signedHeader.Key, signedHeader.Value);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{>partial_header}}
using System.Net.Http;

namespace {{packageName}}.{{apiPackage}}
Expand All @@ -12,4 +13,4 @@ namespace {{packageName}}.{{apiPackage}}
/// </summary>
HttpClient HttpClient { get; }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated>
{{partial_header}}
{{>partial_header}}

{{#nrt}}
#nullable enable

Expand All @@ -26,4 +27,4 @@ namespace {{packageName}}.{{clientPackage}}
Options = options;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated>
{{partial_header}}
{{>partial_header}}

{{#nrt}}
#nullable enable

Expand Down Expand Up @@ -38,4 +39,4 @@ namespace {{packageName}}.{{clientPackage}}
request.Headers.Authorization = new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _raw);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated>
{{partial_header}}
{{>partial_header}}

{{#nrt}}
#nullable enable

Expand All @@ -17,12 +18,10 @@ namespace {{packageName}}.{{clientPackage}}
private object _nextAvailableLock = new object();
private readonly System.Timers.Timer _timer = new System.Timers.Timer();


internal TimeSpan? Timeout { get; set; }
internal delegate void TokenBecameAvailableEventHandler(object sender);
internal event TokenBecameAvailableEventHandler{{nrt?}} TokenBecameAvailable;


/// <summary>
/// Initialize a TokenBase object.
/// </summary>
Expand All @@ -35,7 +34,6 @@ namespace {{packageName}}.{{clientPackage}}
StartTimer(Timeout.Value);
}


/// <summary>
/// Starts the token's timer
/// </summary>
Expand Down Expand Up @@ -70,4 +68,4 @@ namespace {{packageName}}.{{clientPackage}}
TokenBecameAvailable.Invoke(this);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// <auto-generated>
{{partial_header}}
{{>partial_header}}

{{#nrt}}
#nullable enable

Expand Down Expand Up @@ -36,4 +37,4 @@ namespace {{packageName}}.{{clientPackage}}
Tokens = tokens.ToList();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* OpenAPI
*
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System.Net.Http;

namespace Org.OpenAPITools.Api
Expand All @@ -12,4 +21,4 @@ public interface IApi
/// </summary>
HttpClient HttpClient { get; }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* OpenAPI
*
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
using Microsoft.Extensions.DependencyInjection;
using Org.OpenAPITools.Api;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* OpenAPI
*
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;

namespace Org.OpenAPITools.Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
// <auto-generated>
/*
* OpenAPI
*
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

#nullable enable

Expand All @@ -17,4 +25,4 @@ public sealed class CookieContainer
/// </summary>
public System.Net.CookieContainer Value { get; } = new System.Net.CookieContainer();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* OpenAPI
*
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;

namespace Org.OpenAPITools.Client
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
// <auto-generated>
/*
* OpenAPI
*
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

#nullable enable

Expand All @@ -24,4 +32,4 @@ public JsonSerializerOptionsProvider(JsonSerializerOptions options)
Options = options;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
// <auto-generated>
/*
* OpenAPI
*
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

#nullable enable

Expand All @@ -15,12 +23,10 @@ public abstract class TokenBase
private object _nextAvailableLock = new object();
private readonly System.Timers.Timer _timer = new System.Timers.Timer();


internal TimeSpan? Timeout { get; set; }
internal delegate void TokenBecameAvailableEventHandler(object sender);
internal event TokenBecameAvailableEventHandler? TokenBecameAvailable;


/// <summary>
/// Initialize a TokenBase object.
/// </summary>
Expand All @@ -33,7 +39,6 @@ internal TokenBase(TimeSpan? timeout = null)
StartTimer(Timeout.Value);
}


/// <summary>
/// Starts the token's timer
/// </summary>
Expand Down Expand Up @@ -68,4 +73,4 @@ private void OnTimer(object? sender, System.Timers.ElapsedEventArgs e)
TokenBecameAvailable.Invoke(this);
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
// <auto-generated>
/*
* OpenAPI
*
* OpenAPI
*
* The version of the OpenAPI document: 0.0.1
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

#nullable enable

Expand Down Expand Up @@ -34,4 +42,4 @@ public TokenContainer(global::System.Collections.Generic.IEnumerable<TTokenBase>
Tokens = tokens.ToList();
}
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Minimal reproduction for csharp webhook bug
*
* This is an example API to reproduce a bug with webhooks in csharp codegen
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System.Net.Http;

namespace Org.OpenAPITools.Api
Expand All @@ -12,4 +21,4 @@ public interface IApi
/// </summary>
HttpClient HttpClient { get; }
}
}
}
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Minimal reproduction for csharp webhook bug
*
* This is an example API to reproduce a bug with webhooks in csharp codegen
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;
using Microsoft.Extensions.DependencyInjection;
using Org.OpenAPITools.Api;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
/*
* Minimal reproduction for csharp webhook bug
*
* This is an example API to reproduce a bug with webhooks in csharp codegen
*
* The version of the OpenAPI document: 1.0.0
* Generated by: https://github.com/openapitools/openapi-generator.git
*/

using System;

namespace Org.OpenAPITools.Client
Expand Down
Loading
Loading