public void registerNotifierListener() { NotifyEventListenerContainer <PaymentListener> notifyEventListenerContainer = new NotifyEventListenerContainer <PaymentListener>(spaceProxy); notifyEventListenerContainer.Template = new PaymentListener(); notifyEventListenerContainer.Start(); // when needed dispose of the container notifyEventListenerContainer.Dispose(); }
public void registerNotifierListener() { NotifyEventListenerContainer<PaymentListener> notifyEventListenerContainer = new NotifyEventListenerContainer<PaymentListener>(spaceProxy); notifyEventListenerContainer.Template = new PaymentListener(); notifyEventListenerContainer.Start (); // when needed dispose of the container notifyEventListenerContainer.Dispose(); }