Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 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
Empty file.
7,962 changes: 5,610 additions & 2,352 deletions telemetry/csharp/AwsToolkit.Telemetry.Events.Tests/Generated/GeneratedCode.cs
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just calling out that this file naturally has a large diff because it isn't updated each time the telemetry definition json file is updated. This file isn't changed as a result of Shruti's change, nor am I concerned about it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, the generator is auto generated

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<AssemblyName>Amazon.AwsToolkit.Telemetry.SDK</AssemblyName>
<PackageId>AWS.Toolkit.Telemetry.SDK</PackageId>
<TargetFramework>net472</TargetFramework>
<LangVersion>9.0</LangVersion>
<Authors>Amazon Web Services</Authors>
<Company>Amazon Web Services</Company>
<Product>AWS Toolkit Telemetry</Product>
Expand All @@ -21,7 +22,7 @@
<AssemblyOriginatorKeyFile>..\toolkit-telemetry.snk</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="AWSSDK.Core" Version="3.7.13.1" />
<PackageReference Include="AWSSDK.Core" Version="4.0.0.18" />
</ItemGroup>
<ItemGroup>
<Reference Include="System" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<tags>AWS AWSToolkit</tags>
<dependencies>
<group targetFramework="net472">
<dependency id="AWSSDK.Core" version="3.7.13.1" />
<dependency id="AWSSDK.Core" version="4.0.0.18" />
</group>
</dependencies>
</metadata>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/

using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
using Amazon.Runtime.Internal;

namespace Amazon.ToolkitTelemetry
{
/// <summary>
/// Configuration for accessing Amazon ToolkitTelemetry service - Custom partial class
/// </summary>
public partial class AmazonToolkitTelemetryConfig
{
/// <summary>
/// Returns the endpoint that will be used for a particular request.
/// </summary>
/// <param name="parameters">A Container class for parameters used for endpoint resolution.</param>
/// <returns>The resolved endpoint for the given request.</returns>
public override Amazon.Runtime.Endpoints.Endpoint DetermineServiceOperationEndpoint(ServiceOperationEndpointParameters parameters)
{
var request = new DefaultRequest(parameters.Request, ServiceId);
request.AlternateEndpoint = parameters.AlternateEndpoint;

var requestContext = new RequestContext(false);
requestContext.ClientConfig = this;
requestContext.OriginalRequest = parameters.Request;
requestContext.Request = request;
var executionContext = new Amazon.Runtime.Internal.ExecutionContext(requestContext, null);
return new BaseEndpointResolver().GetEndpoint(executionContext);
}
}
}
2 changes: 1 addition & 1 deletion telemetry/csharp/TelemetryClient.proj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<BuildRoot Condition="'$(BuildRoot)' == ''">$(MSBuildThisFileDirectory)</BuildRoot>

<BuildTemp>$(BuildRoot)buildtemp\</BuildTemp>
<DotNetSdkTag>3.7.354.0</DotNetSdkTag>
<DotNetSdkTag>4.0.56.0</DotNetSdkTag>
<DotNetSdkClone>$(BuildTemp)dotnetsdk\</DotNetSdkClone>
<SdkGeneratorRoot>$(DotNetSdkClone)generator\</SdkGeneratorRoot>
<SdkGenerator>$(SdkGeneratorRoot)ServiceClientGenerator\bin\Release\ServiceClientGenerator.exe</SdkGenerator>
Expand Down
4 changes: 2 additions & 2 deletions telemetry/csharp/client-generator-inputs/sdk-versions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"file-description": "This file is used by the SDK Client Generator. See telemetry/csharp/README.md for details",
"ProductVersion": "3.3.716.0",
"CoreVersion": "3.3.106.2",
"ProductVersion": "4.0.56.0",
"CoreVersion": "4.0.0.18",
"DefaultToPreview": false,
"ServiceVersions": {
"ToolkitTelemetry": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"file-description": "This file is used by the SDK Client Generator. See telemetry/csharp/README.md for details"
}
}
Loading