示例#1
0
 /// <summary>
 /// Must inject the IRemoteCallService to resolve calls and TWO configuration objects: one for the server, and one for general
 /// configuration of any RemoteCall service.
 /// </summary>
 /// <param name="remoteService"></param>
 /// <param name="config"></param>
 /// <param name="generalConfig"></param>
 public HttpRemoteCallServer(IRemoteCallService remoteService, HttpRemoteCallServerConfig config, GeneralRemoteCallConfig generalConfig)
 {
     Logger             = LogServices.CreateLoggerFromDefault(GetType());
     this.config        = config;
     this.generalConfig = generalConfig;
     this.remoteService = remoteService;
 }
 /// <summary>
 /// Must inject a general configuration to enable/disable things like low level logging
 /// </summary>
 /// <param name="config"></param>
 public JsonRemoteCallService(GeneralRemoteCallConfig config)
 {
     Logger      = LogServices.CreateLoggerFromDefault(GetType());
     this.config = config;
 }