public FindMyPetServiceClient(IGlobalHelper globalHelper) { if (globalHelper == null) { throw new ArgumentNullException(nameof(globalHelper)); } _globalHelper = globalHelper; }
/// <summary> /// This default constructor passes the name of our service “PersonService” /// as well as all assemblies that need to be loaded – in this case we only need to /// use the current assembly so I have passed that using typeof() /// </summary> public FindMyPetHost(IGlobalHelper globalHelper) : base("Find My Pet Service", typeof(FindMyPetHost).Assembly) { if (globalHelper == null) { throw new ArgumentNullException(nameof(globalHelper)); } _globalHelper = globalHelper; }