IShellConfiguration
<div id="hero-container" class="ra-hero--saber @String.Join(" ", Model.Classes)">
<div class="ra-hero__content">
<div class="ra-hero__callout ra-contained">
<div class="ra-hero__callout-content">
@await DisplayAsync(Model.Header)
@{
var widgets = (ContentItem[])Model.ContentItem.Content.FlowPart.Widgets.ToObject<ContentItem[]>();
var logos = widgets.Where(c => c.ContentType == "FlowMediaWidget").ToList();
foreach (var logo in logos)
{
@* This throws as it needs a shape *@
await DisplayAsync(logo);
}
Model.Content.Remove("FlowMediaWidget");
}
</div>
</div>
</div>
@await DisplayAsync(Model.Content)
</div>
<resources type="HeadLink" />
Model.Content.Remove("FlowMediaWidget");
but no such luck.{
"TitlePart": {
"Title": null
},
"HeroContainer": {
"BackgroundImage": {
"Paths": [
"Innovator Resources/SERIES-I-Logo-Hero-2.png"
],
"MediaTexts": []
},
"CalloutLogo": {
"Paths": [],
"MediaTexts": []
}
},
"FlowPart": {
"Widgets": [
{
"ContentItemId": "4dpm8bcp9aevywvjhecehncsnd",
"ContentItemVersionId": null,
"ContentType": "FlowMediaWidget",
"DisplayText": "Logo",
"Latest": false,
"Published": false,
"ModifiedUtc": "2021-11-03T17:21:14.8646595Z",
"PublishedUtc": null,
"CreatedUtc": null,
"Owner": "",
"Author": "admin",
"FlowMediaWidget": {
"Media": {
"Paths": [
"Logos/SERIES_I_LOGO_Tagline.png"
],
"MediaTexts": [
""
],
"Anchors": [
{
"X": 0.5,
"Y": 0.5
}
]
}
},
"FlowPart": {
"Widgets": []
},
"TitlePart": {
"Title": "Logo"
},
"AdditionalStylingPart": {
"CustomClasses": "center-logo",
"RemoveGridExtensionClasses": false
},
"@WeldedPartSettings": {
"AdditionalStylingPart": {}
},
"FlowMetadata": {
"Alignment": 2,
"Size": 100
}
}
]
},
"AdditionalStylingPart": {
"CustomClasses": "ra-hero--saber-detail",
"RemoveGridExtensionClasses": false
},
"@WeldedPartSettings": {
"AdditionalStylingPart": {}
},
"FlowMetadata": {
"Alignment": 3,
"Size": 100
}
}
var response = new LoginResponse() { UserId = "abc", Token = "123" };
var user = await _userManager.FindByIdAsync(response.UserId) as User;
user.Put(response);
var storedResponse = user.As<LoginResponse>();
I am expecting storedResponse.Token to be "123" but instead its null. In fact, user.Has<LoginResponse>()
returns false