Exemple #1
0
 public static ServiceRepository GetInstance(ServiceService serviceService)
 {
     if (instance == null)
     {
         instance = new ServiceRepository(serviceService);
     }
     return(instance);
 }
Exemple #2
0
 public static ServiceService GetInstance()
 {
     if (singleton == null)
     {
         singleton = new ServiceService();
     }
     return(singleton);
 }
Exemple #3
0
 private ServiceRepository(ServiceService serviceService)
 {
     this.serviceService = serviceService;
 }