ManagerService

Release 1.0 - ...

The Manager Service is just a helper service, which is only in use by the Config Editor. It is used to check whether the (web)rootpath is properly configured by means of creating a temp file and returning the relative path which is then compared with the registry's rootpath setting of the site.

Since this service is used from inside the Config Editor, which may be used to connect to remote machines, the endpoint must be configured to use a publicly available address (using basicHttpBinding and an public address pointing to your site).

Configuration

As for all WCF services hosted in the publication engine, the ManagerService configuration itself is limited to the web.config configuration file (besides the fact it should be registered within the services section within the smartsite.config file).

The example below shows the system.serviceModel section with just the necessary configuration elements for this particular service.

XML CopyCode image Copy Code
<system.serviceModel>
 <services>
  <service name="Smartsite.Core.Services.ManagerService">
   <endpoint address="http://siteurl/sitename/ManagerService" binding="basicHttpBinding"
     contract="Smartsite.Core.Services.IManagerService" />
  </service>
 </services>
</system.serviceModel>

The name of the service element reflects the namespace-scoped class-name which provides the ManagerService, whereas the contract attribute of the endpoint element reflects the interface implemented by this service.

Note that sitename in the address attribute of the endpoint element should be substituted with your site's name and siteurl with the public address of your site (the service should be publicly available through http).