SHARE
TWEET

Untitled

a guest Aug 25th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using ProductService.Events.Interfaces;
  2. using ProductService.Queues.Interfaces;
  3.  
  4. namespace ProductService.Events
  5. {
  6.     public class ReleasedProductsDataEventProcessor : IReleasedProductsDataEventProcessor
  7.     {
  8.         private IReleasedProductsDataEventSubscriber subscriber;
  9.  
  10.         public ReleasedProductsDataEventProcessor(IReleasedProductsDataEventSubscriber eventSubscriber)
  11.         {
  12.             this.subscriber = eventSubscriber;
  13.         }
  14.  
  15.         public void Start()
  16.         {
  17.             this.subscriber.Subscribe();
  18.         }
  19.  
  20.         public void Stop()
  21.         {
  22.             this.subscriber.Unsubscribe();
  23.         }
  24.     }
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top