Skip to content

Commit f2b6361

Browse files
committed
Update mediator.mdx
1 parent 752a349 commit f2b6361

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/content/docs/release-notes/mediator.mdx

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,27 @@ import RN from '/src/components/ReleaseNote.astro';
88
## v4
99

1010
### v4.10 - TBD
11+
<RN type="feature">New contract key generator - sample below</RN>
1112
<RN type="feature">Re-releasing standalone Sentry library due to AOT not being supported on MAUI via Sentry.Diagnostics</RN>
1213
<RN type="enhancement">New RuntimeEventRegistration service that you can add event handlers to at runtime dynamically</RN>
1314

15+
New Contract Key Generator
16+
* Type must be partial
17+
18+
```csharp
19+
[Shiny.Mediator.ContractKeyAttribute("MyClass_{MyProperty}_{Date:yyyyMMdd}")]
20+
public partial class MyClass
21+
{
22+
public string? MyProperty { get; set;}
23+
public string? UnusedProperty { get; set;}
24+
public DateTime? Date { get; set;}
25+
}
26+
27+
// UnusedProperty will not be included in the contract key
28+
// If a property is null, it is replaced with an empty string
29+
// Date will be formatted as yyyyMMdd if not null
30+
```
31+
1432
### 4.9.1
1533
<RN type="fix" repo="mediator" githubNumber="40">Fix storage service deadlock</RN>
1634
<RN type="fix">Fix another release semaphore state in storage service indexing</RN>

0 commit comments

Comments
 (0)