Adopted further C# 14 and .NET 10 features (#1158)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-04 14:04:10 +01:00
1 parent f649febf88
commit f0fa1411c8
40 files changed
+545 -56

No files matched your search

@@ -167,7 +167,7 @@ public partial class AssistantBlock<TSettings> : MSGComponentBase, IAssistantCat
private void OnMediaImportStateChanged(MediaImportOwner owner)
{
if (this.OwnedByThisBlock(owner))
this.InvokeAsync(this.StateHasChanged).Observe($"{nameof(AssistantBlock<TSettings>)}: rendering a media import change");
this.InvokeAsync(this.StateHasChanged).Observe($"{nameof(AssistantBlock<>)}: rendering a media import change");
}
protected override void DisposeResources()
@@ -1011,9 +1011,7 @@ public partial class ChatComponent : MSGComponentBase
var automaticOptions = this.GetAutomaticDataSourceOptions();
this.lastAppliedAutomaticDataSourceOptions = automaticOptions.CreateCopy();
this.earlyDataSourceOptions = automaticOptions;
if(this.ChatThread is not null)
this.ChatThread.DataSourceOptions = automaticOptions;
this.ChatThread?.DataSourceOptions = automaticOptions;
this.dataSourceSelectionComponent?.ChangeOptionWithoutSaving(automaticOptions);
}