Skip to content

Cant pass ActivitySource across project boundaries #1

@matt-richardson

Description

@matt-richardson

It seems that the code generates an ActivitySourceWithCodePath class for each assembly, so that when you pass one through (from say a Test project), it complains that it's not assignable.

Tests\Web\Controllers\ProductsControllerFixture.cs:49 Argument type 'ActivitySourceCodeAttributes.ActivitySourceWithCodePath [Tests]' is not assignable to parameter type 'ActivitySourceCodeAttributes.ActivitySourceWithCodePath [Web]'

Admittedly, in my tests, i'm just passing new ActivitySource("Test")), so I wonder if there might be a better way?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions