Skip to content

Why is IRequestMessage.BodyAsMimeMessage null in new versions (> 1.8.7) #1319

@jheier

Description

@jheier

We are using IRequestMessage.BodyAsMimeMessage to do some extra processing when Mocking a request containing a Mime-message. All things are working as expected when using WireMock.Net 1.8.7. In the versions > 1.8.7 our code is broken; the value is null.

Looking a the WireMock-code we think that TypeLoader cannot find the needed DLL when using TypeLoader.TryFindTypeInDlls. The implementation uses Directory.GetCurrentDirectory() but that could be another directory than the folder containing the DLL's.

Question: Is this an extra restriction in the new versions? It should be added to the documentation.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions