Пример #1
0
 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();
 }
Пример #2
0
        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);
        }
Пример #3
0
        public ValuesController(StatelessServiceContext context)
        {
            _correlationId = Guid.NewGuid().ToString();
            _logger        = new WebApiLogger(context);
            _servicesCommunicationLogger = new ServicesCommunicationLogger(context);

            _partitionHelper = new PartitionHelper(_servicesCommunicationLogger);

            _logger.ActivatingController();
        }
Пример #4
0
 public void SetLogger(IWebApiLogger topLogger)
 {
     this.topLogger = topLogger;
 }