public MainViewModel(IServiceEndpointResolver serviceEndpointResolver, IWebServiceManager webServiceManager, IErrorNotificationService errorNotificationService, IStartUpBehavior startUpBehavior) { if (serviceEndpointResolver == null) { throw new ArgumentNullException("serviceEndpointResolver"); } if (webServiceManager == null) { throw new ArgumentNullException("webServiceManager"); } if (errorNotificationService == null) { throw new ArgumentNullException("errorNotificationService"); } if (startUpBehavior == null) { throw new ArgumentNullException("startUpBehavior"); } this.serviceEndpointResolver = serviceEndpointResolver; this.webServiceManager = webServiceManager; this.errorNotificationService = errorNotificationService; this.startUpBehavior = startUpBehavior; this.fillEndpoints(); port = DEFAULT_PORT; }
public MainViewModel(IServiceEndpointResolver serviceEndpointResolver, IWebServiceManager webServiceManager, IErrorNotificationService errorNotificationService, IStartUpBehavior startUpBehavior) { if (serviceEndpointResolver == null) throw new ArgumentNullException("serviceEndpointResolver"); if (webServiceManager == null) throw new ArgumentNullException("webServiceManager"); if (errorNotificationService == null) throw new ArgumentNullException("errorNotificationService"); if (startUpBehavior == null) throw new ArgumentNullException("startUpBehavior"); this.serviceEndpointResolver = serviceEndpointResolver; this.webServiceManager = webServiceManager; this.errorNotificationService = errorNotificationService; this.startUpBehavior = startUpBehavior; this.fillEndpoints(); port = DEFAULT_PORT; }