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