Пример #1
0
        private void StartUp()
        {
            Platform.Log(LogLevel.Info, "Starting application root {0}", this.GetType().FullName);

            var hostUri = new Uri(WebServicesSettings.Default.BaseUrl);

            _serviceMount = new ServiceMount(hostUri, WebServicesSettings.Default.ConfigurationClass)
            {
                EnablePerformanceLogging    = WebServicesSettings.Default.EnablePerformanceLogging,
                MaxReceivedMessageSize      = WebServicesSettings.Default.MaxReceivedMessageSize,
                SendExceptionDetailToClient = WebServicesSettings.Default.SendExceptionDetailToClient,
                CertificateSearchDirective  = GetCertificateSearchDirective(WebServicesSettings.Default, hostUri)
            };


            _serviceMount.AddServices(new CoreServiceExtensionPoint());
            _serviceMount.AddServices(new ApplicationServiceExtensionPoint());


            Platform.Log(LogLevel.Info, "Starting WCF services on {0}...", WebServicesSettings.Default.BaseUrl);

            _serviceMount.OpenServices();

            Platform.Log(LogLevel.Info, "WCF Services started on {0}", WebServicesSettings.Default.BaseUrl);

            // kick NHibernate, rather than waiting for it to load on demand
            PersistentStoreRegistry.GetDefaultStore();

            _isStarted = true;
        }
Пример #2
0
        private void MountWebServices()
        {
            _serviceMount = new ServiceMount(new Uri(WebServicesSettings.Default.BaseUri), typeof(ServerWsHttpConfiguration).AssemblyQualifiedName)
            {
                MaxReceivedMessageSize = EnterpriseImageServerServiceSettings.Default.MaxReceivedMessageSize,
                SendTimeoutSeconds     = EnterpriseImageServerServiceSettings.Default.SendTimeoutSeconds
            };

            _serviceMount.AddServices(new ApplicationServiceExtensionPoint());
            _serviceMount.OpenServices();
        }
Пример #3
0
 private void MountWebServices()
 {
     _serviceMount = new ServiceMount(new Uri(WebServicesSettings.Default.BaseUri), typeof(ServerWsHttpConfiguration).AssemblyQualifiedName);
     _serviceMount.AddServices(new ApplicationServiceExtensionPoint());
     _serviceMount.OpenServices();
 }