Skip to content

Commit 70b80ab

Browse files
committed
Incorporated comment
1 parent d6eb859 commit 70b80ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

15/umbraco-commerce/how-to-guides/order-number-customization.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,14 @@ public class CustomOrderNumberGenerator : IOrderNumberGenerator
3535

3636
After creating your custom generator, register it in `Program.cs` to replace the default implementation:
3737

38+
{% code title="Program.cs" %}
39+
3840
```csharp
3941
builder.Services.AddUnique<IOrderNumberGenerator, MyOrderNumberGenerator>();
4042
```
4143

44+
{% endcode %}
45+
4246
The `AddUnique` method ensures that your custom generator replaces the default `IOrderNumberGenerator`. For more details on dependency injection, see the [Dependency Injection](dependency-injection.md) article.
4347

4448
## Important Considerations

0 commit comments

Comments
 (0)