laurentkempe / Nubot

NOT SUPPORTED ANYMORE - Nubot is a chat bot in C# connecting to HipChat and soon others

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

interface IMessenger

pinopino opened this issue · comments

inside public interface IMessenger:

void On<TModel>(string eventName, Action<TModel> action);

and

void On<TModel>(string eventName, Action<IMessage<TModel>> action);

why choose the later one?

IMessenger doesn't exists anymore! It was renamed to IEventEmitter
and there is only one method On on this interface
void On<TModel>(string eventName, Action<IMessage<TModel>> action);

the newest commit was b4ae8aa3 and the IEventEmitter was:

public interface IEventEmitter
{
    void On<TModel>(string eventName, Action<IMessage<TModel>> action);

    void Emit<TModel>(string eventName, TModel model);
}

so its in another new branch you did not commit yet?

I am talking about master branch!