protected RestfulJmsResultConsumerBase(OpenGammaFudgeContext fudgeContext, RestTarget clientUri, MQTemplate mqTemplate, Action <object, TListener> resultAction) { FudgeContext = fudgeContext; _mqTemplate = mqTemplate; REST = clientUri; _listenerReference = new ListenerReference(resultAction); //TODO: check that this doesn't reference us _heartbeatSender = new HeartbeatSender(TimeSpan.FromSeconds(10), REST.Resolve("heartbeat")); }
public FinancialClient(RestTarget rest, OpenGammaFudgeContext fudgeContext) { _rest = rest; _fudgeContext = fudgeContext; _heartbeatSender = new HeartbeatSender(TimeSpan.FromMinutes(5), _rest.Resolve("heartbeat")); }
public RemoteViewCycleReference(RestTarget location) { _location = location; _heartbeatSender = new HeartbeatSender(TimeSpan.FromSeconds(2.5), _location); }
public void CanCreateAndDispose() { using (var heartbeatSender = new HeartbeatSender(TimeSpan.FromMilliseconds(int.MaxValue), new RestTarget(new OpenGammaFudgeContext(), new Uri("http://www.opengamma.com")))) { } }