public IStanSubscription Subscribe(string subject, EventHandler <StanMsgHandlerArgs> handler) { try { if (handler.GetInvocationList().Any(m => m.Method.Name != "LogMsgHandler")) { handler += LogMsgHandler; } return(_obs.Subscribe(subject, handler)); } catch (Exception e) { _log.Error(e, e.Message); throw; } }
public IStanSubscription Subscribe(string subject, EventHandler <StanMsgHandlerArgs> handler) { return(_obs.Subscribe(subject, handler)); }