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