Skip to content

Commit

Permalink
Temporary remove AppAssignmentUpdate (since it seems to be removed fr…
Browse files Browse the repository at this point in the history
…om the graph sdk)
  • Loading branch information
svrooij committed Jul 24, 2024
1 parent 6765e80 commit 1416802
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Svrooij.WinTuner.CmdLets/Commands/DeployWtWin32App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ await batch.AddBatchRequestStepAsync(graphServiceClient.DeviceAppManagement.Mobi
{
if (assignment.Intent == GraphModels.InstallIntent.Available && assignment.Settings is null)
{
assignment.Settings = new GraphModels.Win32LobAppAssignmentSettings { AutoUpdateSettings = new GraphModels.Win32LobAppAutoUpdateSettings { AutoUpdateSupersededApps = GraphModels.Win32LobAppAutoUpdateSupersededApps.Enabled } };
//assignment.Settings = new GraphModels.Win32LobAppAssignmentSettings { AutoUpdateSettings = new GraphModels.Win32LobAppAutoUpdateSettings { AutoUpdateSupersededApps = GraphModels.Win32LobAppAutoUpdateSupersededApps.Enabled } };
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public static IServiceCollection AddWinTunerProxyClient(this IServiceCollection
{
services.AddKiotaHandlers();
}

services.AddHttpClient<WinTunerProxyClientFactory>().AttachKiotaHandlers();
services.AddTransient<WinTunerProxyClient>((sp) => sp.GetRequiredService<WinTunerProxyClientFactory>().GetClient());
return services;
Expand Down
2 changes: 1 addition & 1 deletion src/WingetIntune/Graph/GraphWorkflows.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private static List<MobileAppAssignment> GenerateAssignments(string[] groups, In
MobileAppAssignmentSettings? settings = null;
if (intent == InstallIntent.Available && addSetting)
{
settings = new Win32LobAppAssignmentSettings { AutoUpdateSettings = new Win32LobAppAutoUpdateSettings { AutoUpdateSupersededApps = Win32LobAppAutoUpdateSupersededApps.Enabled } };
//settings = new Win32LobAppAssignmentSettings { AutoUpdateSettings = new Win32LobAppAutoUpdateSettings { AutoUpdateSupersededApps = Win32LobAppAutoUpdateSupersededApps.Enabled } };
}
if (groups is not null && groups.Any())
{
Expand Down

0 comments on commit 1416802

Please sign in to comment.