| | | 1 | | /* |
| | | 2 | | * WeShare API |
| | | 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 |
| | | 7 | | * Generated by: https://github.com/openapitools/openapi-generator.git |
| | | 8 | | */ |
| | | 9 | | |
| | | 10 | | |
| | | 11 | | using System.Collections.Generic; |
| | | 12 | | |
| | | 13 | | namespace Applications.WeShare.Swagger.Client |
| | | 14 | | { |
| | | 15 | | /// <summary> |
| | | 16 | | /// <see cref="GlobalConfiguration"/> provides a compile-time extension point for globally configuring |
| | | 17 | | /// API Clients. |
| | | 18 | | /// </summary> |
| | | 19 | | /// <remarks> |
| | | 20 | | /// A customized implementation via partial class may reside in another file and may |
| | | 21 | | /// be excluded from automatic generation via a .openapi-generator-ignore file. |
| | | 22 | | /// </remarks> |
| | | 23 | | public partial class GlobalConfiguration : Configuration |
| | | 24 | | { |
| | | 25 | | #region Private Members |
| | | 26 | | |
| | 1 | 27 | | private static readonly object GlobalConfigSync = new { }; |
| | | 28 | | private static IReadableConfiguration _globalConfiguration; |
| | | 29 | | |
| | | 30 | | #endregion Private Members |
| | | 31 | | |
| | | 32 | | #region Constructors |
| | | 33 | | |
| | | 34 | | /// <inheritdoc /> |
| | 1 | 35 | | private GlobalConfiguration() |
| | 1 | 36 | | { |
| | 1 | 37 | | } |
| | | 38 | | |
| | | 39 | | /// <inheritdoc /> |
| | 0 | 40 | | public GlobalConfiguration(IDictionary<string, string> defaultHeader, IDictionary<string, string> apiKey, IDicti |
| | 0 | 41 | | { |
| | 0 | 42 | | } |
| | | 43 | | |
| | | 44 | | static GlobalConfiguration() |
| | 1 | 45 | | { |
| | 1 | 46 | | Instance = new GlobalConfiguration(); |
| | 1 | 47 | | } |
| | | 48 | | |
| | | 49 | | #endregion Constructors |
| | | 50 | | |
| | | 51 | | /// <summary> |
| | | 52 | | /// Gets or sets the default Configuration. |
| | | 53 | | /// </summary> |
| | | 54 | | /// <value>Configuration.</value> |
| | | 55 | | public static IReadableConfiguration Instance |
| | | 56 | | { |
| | 21 | 57 | | get { return _globalConfiguration; } |
| | | 58 | | set |
| | 1 | 59 | | { |
| | 1 | 60 | | lock (GlobalConfigSync) |
| | 1 | 61 | | { |
| | 1 | 62 | | _globalConfiguration = value; |
| | 1 | 63 | | } |
| | 1 | 64 | | } |
| | | 65 | | } |
| | | 66 | | } |
| | | 67 | | } |