Skip to content

Commit

Permalink
Akka.NET v1.5 upgrade guide documentation fix (#6778). (#6874)
Browse files Browse the repository at this point in the history
* Akka.NET v1.5 upgrade guide documentation fix (#6778).

* Akka.NET v1.5 upgrade guide documentation fix (#6778).
  • Loading branch information
F0b0s authored Aug 8, 2023
1 parent bb16c68 commit 1fbe838
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -208,3 +208,10 @@ In `Directory.Build.props`:
</ItemGroup>
</Project>
```

Note, in order to log more than 6 parameters you need to explicitly create ```object[]``` and pass your arguments into corresponding method. It was done in order to eliminate large numbers of accidental ```object[]``` allocations that were created implicitly through the params keyword AND to eliminate the large amount of boxing that occurred whenever value types (struct) were logged:

```csharp
var @params = new[]{arg1, arg2, arg3, arg4, arg5, arg6, arg7};
loggingAdapter.Log(format, @params);
```

0 comments on commit 1fbe838

Please sign in to comment.