Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Class {
- private Service1 service1;
- private Service2 service2;
- public MyClass (Service1 service1, Service2 service2) {
- this.service1 = service1;
- this.service2 = service2;
- }
- private int SampleMethod() {
- Console.WriteLine("doing something with service 1");
- service1.DoSomething();
- return 0;
- }
- private int SampleMethod2() {
- Console.WriteLine("doing something with service 2");
- service2.DoSomethingElse();
- return 1;
- }
- }
Add Comment
Please, Sign In to add comment