public AdminController( IMOrderRepository orderRepository, MachineRepositoryClient machineRepository, IMapper mapper, IUnitOfWork unitOfWork ) { _orderRepository = orderRepository; _machineRepository = machineRepository; _mapper = mapper; _unitOfWork = unitOfWork; }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(MachineRepositoryClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IMachineRepository)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(MachineRepositoryClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IMachineRepository)); }
public MachineRepositoryClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(MachineRepositoryClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public MachineRepositoryClient(EndpointConfiguration endpointConfiguration) : base(MachineRepositoryClient.GetBindingForEndpoint(endpointConfiguration), MachineRepositoryClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public MachineRepositoryClient() : base(MachineRepositoryClient.GetDefaultBinding(), MachineRepositoryClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IMachineRepository.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }