Skip to content

Commit 8538a86

Browse files
committed
Update GeneralUpdateBootstrap.cs
1 parent e035390 commit 8538a86

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/c#/GeneralUpdate.Core/Bootstrap/GeneralUpdateBootstrap.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,15 @@ private async Task<GeneralUpdateBootstrap> LaunchWithStrategy(IStrategy roleStra
130130
}
131131

132132
roleStrategy.Create(_configInfo);
133+
134+
var binaryDiffer = ResolveExtension<IBinaryDiffer>();
135+
if (binaryDiffer != null)
136+
{
137+
if (roleStrategy is ClientUpdateStrategy cs2)
138+
cs2.SetBinaryDiffer(binaryDiffer);
139+
else if (roleStrategy is UpgradeUpdateStrategy us2)
140+
us2.SetBinaryDiffer(binaryDiffer);
141+
}
133142

134143
// Inject binary differ into OS-level strategy for differential patching
135144
// Must be called after Create() since _osStrategy is initialized there.

0 commit comments

Comments
 (0)