daily pastebin goal
86%
SHARE
TWEET

Untitled

a guest Jun 14th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public MachineUseCase()
  2.         {
  3.             container = new MachineContainer();
  4.             container.Initialize();
  5.             container.PrepareForServices();
  6.  
  7.             container.Register.Type<IWebApp>().ImplementedBy<IWebApp>().AsTransient();
  8.  
  9.             container.Register.Type<IAuthenticator>().ImplementedBy<Authenticator>().AsTransient();
  10.  
  11.             container.Register.Type<IStockQuote>().ImplementedBy<StockQuote>().AsTransient();
  12.  
  13.             container.Register.Type<IDatabase>().ImplementedBy<Database>().AsTransient();
  14.  
  15.             container.Register.Type<IErrorHandler>().ImplementedBy<ErrorHandler>().AsTransient();
  16.  
  17.             container.Register.Type<ILogger>().ImplementedBy<Logger>().AsTransient();
  18.  
  19.             container.ReadyForServices();
  20.         }
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