Exemplo n.º 1
0
 public static ServiceInstance GetInstance()
 {
     lock (InstanceLock)
     {
         return instance ?? (instance = new ServiceInstance(new MusicServiceClient()));
     }
 }
Exemplo n.º 2
0
 public ServiceInstance(IMusicService musicService)
 {
     Service = musicService;
     instance = this;
 }