Example #1
0
        public ServiceC(ServiceA serviceA, ServiceB serviceB)
        {
            if(serviceA == null) throw new ArgumentNullException("serviceA");
            if(serviceB == null) throw new ArgumentNullException("serviceB");

            this.serviceA = serviceA;
            this.serviceB = serviceB;
        }
Example #2
0
        public ServiceC(ServiceA serviceA, ServiceB serviceB)
        {
            if (serviceA == null)
            {
                throw new ArgumentNullException("serviceA");
            }
            if (serviceB == null)
            {
                throw new ArgumentNullException("serviceB");
            }

            this.serviceA = serviceA;
            this.serviceB = serviceB;
        }