Esempio n. 1
0
 /// <summary>
 /// Gets the instance of the DefaultWrappingService class.
 /// Clasical Singleton implementation.
 /// </summary>
 /// <returns></returns>
 public static DefaultWrappingService GetInstance()
 {
     lock (typeof(DefaultWrappingService))
     {
         if (instance == null)
         {
             instance = new DefaultWrappingService();
         }
         return(instance);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Instantiates a Waiter service with the DefaultWrappingService.
 /// </summary>
 public Waiter()
 {
     WrappingService = DefaultWrappingService.GetInstance();
 }