Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 438 Bytes

DEA0001.md

File metadata and controls

22 lines (16 loc) · 438 Bytes

DEA0001 SubscribeAttribute used on an invalid method

SubscribeAttribute should only be used on method with the MessageHandler signature.

Examples of patterns that are flagged by this analyzer

using DefaultEcs;

namespace DummyNamespace
{
    class DummyClass
    {
        [Subscribe]
        bool DummyMethod() => true;
    }
}

Solution

Remove SubscribeAttribute from the method or change the method signature.