Skip to content

Commit

Permalink
Add empty service metadata object
Browse files Browse the repository at this point in the history
  • Loading branch information
corstian committed Dec 31, 2024
1 parent 6c5c827 commit fc033c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Whaally.Domain.Testing/ServiceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ServiceTest(
Service = service;

var id = Guid.NewGuid();
Context = new ServiceHandlerContext(Services)
Context = new ServiceHandlerContext(Services, new ServiceMetadata())
{
ParentContext = default
};
Expand Down
3 changes: 1 addition & 2 deletions src/Whaally.Domain/Service/ServiceMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ namespace Whaally.Domain;

public record ServiceMetadata : IServiceMetadata
{
public IDictionary<string, object> Attributes { get; set; }
= new Dictionary<string, object>();
public IDictionary<string, object> Attributes { get; set; } = new Dictionary<string, object>();
public ActivityContext? ParentContext { get; set; }
public DateTimeOffset CreatedAt { get; set; }
public Type? ServiceType { get; set; }
Expand Down

0 comments on commit fc033c3

Please sign in to comment.