DesignPatterns icon indicating copy to clipboard operation
DesignPatterns copied to clipboard

Dispatcher code example [StatelessWorker] attribute in wrong place?

Open wanton7 opened this issue 5 years ago • 0 comments

In dispatcher example there is [StatelessWorker] attribute for IDispatcherGrain interface, but it should be in the DispatcherGrain class. In C# to my knowledge class don't inherit attributes from interfaces it uses.

[StatelessWorker]
public interface IDispatcherGrain : IGrain
{
    Task Send(Tuple<int, string>[] messages);
}

wanton7 avatar Apr 18 '19 06:04 wanton7