Skip to content

Commit

Permalink
chore: create AssemblyInfo.cs file in TypedHandlers project
Browse files Browse the repository at this point in the history
  • Loading branch information
filipeesch committed Apr 5, 2021
1 parent 0e9fdd6 commit 02690c2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 4 additions & 0 deletions src/KafkaFlow.TypedHandler/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("KafkaFlow.UnitTests")]
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
3 changes: 2 additions & 1 deletion src/KafkaFlow.TypedHandler/HandlerTypeMapping.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ public void AddMapping(Type messageType, Type handlerType)
{
if (!this.mapping.TryGetValue(messageType, out var handlers))
{
this.mapping.Add(messageType, handlers = new List<Type>());
handlers = new List<Type>();
this.mapping.Add(messageType, handlers);
}

handlers.Add(handlerType);
Expand Down
6 changes: 0 additions & 6 deletions src/KafkaFlow.TypedHandler/KafkaFlow.TypedHandler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,4 @@
<ProjectReference Include="..\KafkaFlow.Abstractions\KafkaFlow.Abstractions.csproj" />
</ItemGroup>

<ItemGroup>
<AssemblyAttribute Include="System.Runtime.CompilerServices.InternalsVisibleToAttribute">
<_Parameter1>KafkaFlow.UnitTests</_Parameter1>
</AssemblyAttribute>
</ItemGroup>

</Project>

0 comments on commit 02690c2

Please sign in to comment.