public static ServiceRepository GetInstance(ServiceService serviceService) { if (instance == null) { instance = new ServiceRepository(serviceService); } return(instance); }
public static ServiceService GetInstance() { if (singleton == null) { singleton = new ServiceService(); } return(singleton); }
private ServiceRepository(ServiceService serviceService) { this.serviceService = serviceService; }