public RPCServerRegistry(ITokenToProcessorMapper mapper) : base()
        {
            this.mapper = mapper;
            this.IncludeRegistry <CommonRegistry>();
            this.boxLocations = new BoxLocations();
            For <IBoxLocations>().Use(this.boxLocations).Singleton();

            this.ExecuteRecordBaseMappers();
            this.ExecuteRecordManagerMappers();
            //Manage the execution of a request
            For <IOrchExecutor>().Use <OrchExecutor>();
            //Listeners for inbox and reboot-continue box
            For <ILocalCallWatcher>().Use <OrchFileWatcher>()
            .Ctor <string>("watchDir").Is(boxLocations.MonitoringDir).Named("inbox");
            For <ILocalCallWatcher>().Use <OrchFileWatcher>()
            .Ctor <string>("watchDir").Is(boxLocations.RcDir).Named("rcbox");
            //the service facade for hosting the service
            For <IServiceFacade>().Use <ServiceFacade>()
            .Ctor <ILocalCallWatcher>("inbox").IsNamedInstance("inbox")
            .Ctor <ILocalCallWatcher>("rcbox").IsNamedInstance("rcbox");
        }
 public static IFileProcessingHost GetFileProcessingHost(ITokenToProcessorMapper mapper)
 {
     return(new FileProcessingHost(new RPCServerRegistry(mapper)));
 }