public DefaultWebApiClient(string serverUrl, string appKey, string appSecret) { this.appKey = appKey; this.appSecret = appSecret; this.serverUrl = serverUrl; this.webUtils = new WebUtils(); this.topLogger = new DefaultWebApiLogger(); }
public PersonController(StatelessServiceContext context) { _contextScope = new ServiceRequestContextWrapperX(correlationId: Guid.NewGuid().ToString(), userId: "mainframe64/Kapten_rödskägg"); _logger = new WebApiLogger(context); _servicesCommunicationLogger = new CommunicationLogger(context); _logger.ActivatingController(_contextScope.CorrelationId, _contextScope.UserId); }
public ValuesController(StatelessServiceContext context) { _correlationId = Guid.NewGuid().ToString(); _logger = new WebApiLogger(context); _servicesCommunicationLogger = new ServicesCommunicationLogger(context); _partitionHelper = new PartitionHelper(_servicesCommunicationLogger); _logger.ActivatingController(); }
public void SetLogger(IWebApiLogger topLogger) { this.topLogger = topLogger; }