Skip to content

Commit 17b7790

Browse files
authored
[dotnet] update samples (#22803)
1 parent 852a607 commit 17b7790

92 files changed

Lines changed: 837 additions & 92 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Api/IApi.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Example
3+
*
4+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Generated by: https://github.com/openapitools/openapi-generator.git
8+
*/
9+
110
using System.Net.Http;
211

312
namespace Org.OpenAPITools.Api
@@ -12,4 +21,4 @@ public interface IApi
1221
/// </summary>
1322
HttpClient HttpClient { get; }
1423
}
15-
}
24+
}

samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Client/ApiFactory.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Example
3+
*
4+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Generated by: https://github.com/openapitools/openapi-generator.git
8+
*/
9+
110
using System;
211
using Microsoft.Extensions.DependencyInjection;
312
using Org.OpenAPITools.Api;

samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Client/ApiResponseEventArgs.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Example
3+
*
4+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Generated by: https://github.com/openapitools/openapi-generator.git
8+
*/
9+
110
using System;
211

312
namespace Org.OpenAPITools.Client

samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Client/CookieContainer.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// <auto-generated>
2+
/*
3+
* Example
4+
*
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 1.0.0
8+
* Generated by: https://github.com/openapitools/openapi-generator.git
9+
*/
210

311
#nullable enable
412

@@ -17,4 +25,4 @@ public sealed class CookieContainer
1725
/// </summary>
1826
public System.Net.CookieContainer Value { get; } = new System.Net.CookieContainer();
1927
}
20-
}
28+
}

samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Client/ExceptionEventArgs.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* Example
3+
*
4+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5+
*
6+
* The version of the OpenAPI document: 1.0.0
7+
* Generated by: https://github.com/openapitools/openapi-generator.git
8+
*/
9+
110
using System;
211

312
namespace Org.OpenAPITools.Client

samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Client/JsonSerializerOptionsProvider.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// <auto-generated>
2+
/*
3+
* Example
4+
*
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 1.0.0
8+
* Generated by: https://github.com/openapitools/openapi-generator.git
9+
*/
210

311
#nullable enable
412

@@ -24,4 +32,4 @@ public JsonSerializerOptionsProvider(JsonSerializerOptions options)
2432
Options = options;
2533
}
2634
}
27-
}
35+
}

samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Client/TokenBase.cs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// <auto-generated>
2+
/*
3+
* Example
4+
*
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 1.0.0
8+
* Generated by: https://github.com/openapitools/openapi-generator.git
9+
*/
210

311
#nullable enable
412

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

18-
1926
internal TimeSpan? Timeout { get; set; }
2027
public delegate void TokenBecameAvailableEventHandler(object sender);
2128
public event TokenBecameAvailableEventHandler? TokenBecameAvailable;
2229

23-
2430
/// <summary>
2531
/// Initialize a TokenBase object.
2632
/// </summary>
@@ -33,7 +39,6 @@ internal TokenBase(TimeSpan? timeout = null)
3339
StartTimer(Timeout.Value);
3440
}
3541

36-
3742
/// <summary>
3843
/// Starts the token's timer
3944
/// </summary>
@@ -68,4 +73,4 @@ private void OnTimer(object? sender, System.Timers.ElapsedEventArgs e)
6873
TokenBecameAvailable.Invoke(this);
6974
}
7075
}
71-
}
76+
}

samples/client/petstore/csharp/generichost/net10/AllOf/src/Org.OpenAPITools/Client/TokenContainer`1.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
// <auto-generated>
2+
/*
3+
* Example
4+
*
5+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
6+
*
7+
* The version of the OpenAPI document: 1.0.0
8+
* Generated by: https://github.com/openapitools/openapi-generator.git
9+
*/
210

311
#nullable enable
412

@@ -34,4 +42,4 @@ public TokenContainer(global::System.Collections.Generic.IEnumerable<TTokenBase>
3442
Tokens = tokens.ToList();
3543
}
3644
}
37-
}
45+
}

samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Api/IApi.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* fruity
3+
*
4+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5+
*
6+
* The version of the OpenAPI document: 0.0.1
7+
* Generated by: https://github.com/openapitools/openapi-generator.git
8+
*/
9+
110
using System.Net.Http;
211

312
namespace Org.OpenAPITools.Api
@@ -12,4 +21,4 @@ public interface IApi
1221
/// </summary>
1322
HttpClient HttpClient { get; }
1423
}
15-
}
24+
}

samples/client/petstore/csharp/generichost/net10/AnyOf/src/Org.OpenAPITools/Client/ApiFactory.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
/*
2+
* fruity
3+
*
4+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5+
*
6+
* The version of the OpenAPI document: 0.0.1
7+
* Generated by: https://github.com/openapitools/openapi-generator.git
8+
*/
9+
110
using System;
211
using Microsoft.Extensions.DependencyInjection;
312
using Org.OpenAPITools.Api;

0 commit comments

Comments
 (0)