Skip to content

Commit

Permalink
Add the optional data parameters to service declarations too for serv…
Browse files Browse the repository at this point in the history
…ices without metadata
  • Loading branch information
helto4real committed May 7, 2024
1 parent aaf85ea commit e61dee2
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ private static IEnumerable<MemberDeclarationSyntax> GenerateServiceMethod(string

if (serviceArguments is null)
{
targetParam = "object? data";
targetArg = "null, data";
// method without arguments
yield return ParseMemberDeclaration($$"""
void {{serviceMethodName}}({{targetParam}})
Expand Down

0 comments on commit e61dee2

Please sign in to comment.