Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:Add Initialized method for additional initialization in client classes #24

Merged
merged 1 commit into from
Aug 30, 2024
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.ActionsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public ActionsClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.ActivityClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public ActivityClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.AppsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public AppsClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.BillingClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public BillingClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.ChecksClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public ChecksClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.ClassroomClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public ClassroomClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.CodeScanningClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public CodeScanningClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.CodeSecurityClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public CodeSecurityClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.CodesOfConductClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public CodesOfConductClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.CodespacesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public CodespacesClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.CopilotClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public CopilotClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.DependabotClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public DependabotClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.DependencyGraphClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public DependencyGraphClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.DesktopClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public DesktopClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.EmojisClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public EmojisClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.EnterpriseTeamsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public EnterpriseTeamsClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.GistsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public GistsClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.GitClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public GitClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.GitHubApi.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,8 @@ public GitHubApi(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -235,6 +237,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.GitignoreClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public GitignoreClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.InteractionsClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public InteractionsClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
4 changes: 4 additions & 0 deletions src/libs/GitHub/Generated/GitHub.IssuesClient.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public IssuesClient(
{
_httpClient = httpClient ?? new global::System.Net.Http.HttpClient();
_httpClient.BaseAddress ??= baseUri ?? new global::System.Uri(BaseUrl);

Initialized(_httpClient);
}

/// <inheritdoc/>
Expand All @@ -40,6 +42,8 @@ public void Dispose()
_httpClient.Dispose();
}

partial void Initialized(
global::System.Net.Http.HttpClient client);
partial void PrepareArguments(
global::System.Net.Http.HttpClient client);
partial void PrepareRequest(
Expand Down
Loading
Loading