예제 #1
0
        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"));
        }
예제 #2
0
 public FinancialClient(RestTarget rest, OpenGammaFudgeContext fudgeContext)
 {
     _rest = rest;
     _fudgeContext = fudgeContext;
     _heartbeatSender = new HeartbeatSender(TimeSpan.FromMinutes(5), _rest.Resolve("heartbeat"));
 }
예제 #3
0
 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"))))
     {
     }
 }