Exemplo n.º 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 the IRemoteCallService for creating calls and the configuration for communication
 /// </summary>
 /// <param name="remoteService"></param>
 /// <param name="config"></param>
 public HttpRemoteCallClient(IRemoteCallService remoteService, HttpRemoteCallClientConfig config)
 {
     Logger             = LogServices.CreateLoggerFromDefault(GetType());
     this.remoteService = remoteService;
     this.config        = config;
     client             = new HttpClient();
     client.Timeout     = config.CommunicationTimeout;
 }