Skip to content

Instantly share code, notes, and snippets.

@NMZivkovic
Created April 7, 2018 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save NMZivkovic/5f0984deec0b7937b3a8908b231add34 to your computer and use it in GitHub Desktop.
Save NMZivkovic/5f0984deec0b7937b3a8908b231add34 to your computer and use it in GitHub Desktop.
public class Client
{
private readonly IService1 _service1;
private readonly IService2 _service2;
public Client(IService1 service, IService2 service2)
{
_service1 = service;
_service2 = service2;
}
public void InitiateServiceMethods()
{
_service1.Service1Method();
_service2.Service2Method();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment