Skip to content

Commit

Permalink
Future-proof AddressUpdaterShapeTableProvider by implementing IShapeT…
Browse files Browse the repository at this point in the history
…ableProvider.DiscoverAsync
  • Loading branch information
sarahelsaig committed May 25, 2024
1 parent 4b59680 commit 44a77f5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ public class AddressUpdaterShapeTableProvider : IShapeTableProvider
// The conventional suffix of services inheriting from IAddressUpdater may be omitted.
private const string Suffix = "AddressUpdater";

public ValueTask DiscoverAsync(ShapeTableBuilder builder)
{
Discover(builder);
return ValueTask.CompletedTask;
}

public void Discover(ShapeTableBuilder builder) => builder
.Describe(AddressFieldEditorViewModel.ShapeType)
.OnDisplaying(displaying =>
Expand Down

0 comments on commit 44a77f5

Please sign in to comment.