Skip to content

Commit

Permalink
Internal variable rename (#3300)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhipsaMisra authored Apr 24, 2023
1 parent 2bee053 commit e029919
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion iothub/device/src/Pipeline/PipelineContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Microsoft.Azure.Devices.Client
{
internal class PipelineContext
{
internal ITransportSettings TransportSettings { get; set; }
internal ITransportSettings TransportSettingsSelected { get; set; }

internal ITransportSettings[] TransportSettingsArray { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private void SelectTransport()
$"{nameof(ProtocolRoutingDelegatingHandler)}.{nameof(OpenAsync)}");

// Configure the transportSettings for this context (Important! Within Context, 'ITransportSettings' != 'ITransportSettings[]').
Context.TransportSettings = transportSettings;
Context.TransportSettingsSelected = transportSettings;
CreateNewTransportHandler();

_nextTransportIndex++;
Expand Down
2 changes: 1 addition & 1 deletion iothub/device/src/Pipeline/TransportHandlerFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public IDelegatingHandler Create(PipelineContext context)
{
// ProtocolRoutingDelegatingHandler configures the ITransportSettings configuration
// which is different from ITransportSettings[] element.
ITransportSettings transportSetting = context.TransportSettings;
ITransportSettings transportSetting = context.TransportSettingsSelected;
IotHubConnectionString connectionString = context.IotHubConnectionString;
InternalClient.OnMethodCalledDelegate onMethodCallback = context.MethodCallback;
Action<TwinCollection> onDesiredStatePatchReceived = context.DesiredPropertyUpdateCallback;
Expand Down

0 comments on commit e029919

Please sign in to comment.