Skip to content

Commit

Permalink
init deployment metrics before task
Browse files Browse the repository at this point in the history
  • Loading branch information
lfitchett committed Aug 4, 2020
1 parent ea964b5 commit cb74351
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ internal EdgeAgentConnection(
this.moduleConnection = new ModuleConnection(moduleClientProvider, requestManager, this.OnConnectionStatusChanged, this.OnDesiredPropertiesUpdated, enableSubscriptions);
this.retryStrategy = Preconditions.CheckNotNull(retryStrategy, nameof(retryStrategy));
this.refreshTwinTask = new PeriodicTask(this.ForceRefreshTwin, refreshConfigFrequency, refreshConfigFrequency, Events.Log, "refresh twin config");
this.initTask = this.ForceRefreshTwin();
this.pullOnReconnect = enableSubscriptions;
this.deviceManager = Preconditions.CheckNotNull(deviceManager, nameof(deviceManager));
Events.TwinRefreshInit(refreshConfigFrequency);
this.deploymentMetrics = Preconditions.CheckNotNull(deploymentMetrics, nameof(deploymentMetrics));
this.initTask = this.ForceRefreshTwin();
}

public Option<TwinCollection> ReportedProperties => this.reportedProperties;
Expand Down

0 comments on commit cb74351

Please sign in to comment.