Exemple #1
0
        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;
        }
Exemple #2
0
        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;
        }