Skip to content

Commit

Permalink
Protected members (#315)
Browse files Browse the repository at this point in the history
Make OmsOutput fields protecetd to allow access from subclasses
  • Loading branch information
AssafTzurEl authored and karolz-ms committed Apr 1, 2019
1 parent e25bf5d commit 72f13ab
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions src/Microsoft.Diagnostics.EventFlow.Outputs.Oms/OmsOutput.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------

using Microsoft.Diagnostics.EventFlow.Configuration;
using Microsoft.Diagnostics.EventFlow.Utilities;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using System;
using System.Collections.Generic;
using System.Diagnostics;
Expand All @@ -12,15 +17,8 @@
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Configuration;
using Newtonsoft.Json;
using Validation;

using Microsoft.Diagnostics.EventFlow;
using Microsoft.Diagnostics.EventFlow.Configuration;
using Microsoft.Diagnostics.EventFlow.Utilities;


namespace Microsoft.Diagnostics.EventFlow.Outputs
{
public class OmsOutput : IOutput
Expand All @@ -30,8 +28,8 @@ public class OmsOutput : IOutput
private const string MsDateHeaderName = "x-ms-date";
private const string JsonContentId = "application/json";

private readonly IHealthReporter healthReporter;
private readonly OmsConnectionData connectionData;
protected readonly IHealthReporter healthReporter;
protected readonly OmsConnectionData connectionData;

public OmsOutput(IConfiguration configuration, IHealthReporter healthReporter)
{
Expand Down Expand Up @@ -186,7 +184,6 @@ protected virtual IReadOnlyDictionary<string, string> PrepareEventData(IReadOnly

if ((events != null) && (events.Count > 0))
{

result.Add(this.connectionData.LogTypeName, JsonConvert.SerializeObject(events, EventFlowJsonUtilities.DefaultSerializerSettings));
}

Expand Down

0 comments on commit 72f13ab

Please sign in to comment.