Exemple #1
0
 public TestAgentComponents(
     TestAgentConfigurationReader reader,
     Service service = null,
     IPayloadSender payloadSender = null
     ) : base(reader.Logger, reader, service, payloadSender ?? new MockPayloadSender())
 {
 }
Exemple #2
0
 public TestAgentComponents(
     IApmLogger logger = null,
     TestAgentConfigurationReader configurationReader = null,
     IPayloadSender payloadSender = null,
     ICurrentExecutionSegmentsContainer currentExecutionSegmentsContainer = null
     ) : base(
         logger ?? new NoopLogger(),
         configurationReader ?? new TestAgentConfigurationReader(logger ?? new NoopLogger()),
         payloadSender ?? new MockPayloadSender(),
         new FakeMetricsCollector(),
         currentExecutionSegmentsContainer)
 {
 }
 public TestAgentComponents(
     IApmLogger logger = null,
     TestAgentConfigurationReader configurationReader = null,
     IPayloadSender payloadSender = null,
     ICurrentExecutionSegmentsContainer currentExecutionSegmentsContainer = null,
     string captureBody             = ConfigConsts.SupportedValues.CaptureBodyOff,
     string captureBodyContentTypes = ConfigConsts.DefaultValues.CaptureBodyContentTypes
     ) : base(
         logger ?? new NoopLogger(),
         configurationReader ?? new TestAgentConfigurationReader(
             logger ?? new NoopLogger(),
             captureBody: captureBody,
             captureBodyContentTypes: captureBodyContentTypes),
         payloadSender ?? new MockPayloadSender(),
         new FakeMetricsCollector(),
         currentExecutionSegmentsContainer
         )
 {
 }
 public TestAgentComponents(
     TestAgentConfigurationReader reader,
     IPayloadSender payloadSender = null
     ) : base(new FakeMetricsCollector(), reader.Logger, reader, payloadSender ?? new MockPayloadSender())
 {
 }