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