Skip to content
This repository has been archived by the owner on Jan 24, 2023. It is now read-only.

Commit

Permalink
updated copyright headers to 2019 (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaronontheweb authored Jan 2, 2019
1 parent 812ba83 commit d813cab
Show file tree
Hide file tree
Showing 57 changed files with 226 additions and 230 deletions.
33 changes: 17 additions & 16 deletions src/Petabridge.Tracing.Zipkin.Integration.Tests/ZipkinFixture.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -----------------------------------------------------------------------
// <copyright file="ZipkinFixture.cs" company="Petabridge, LLC">
// Copyright (C) 2018 - 2018 Petabridge, LLC <https://petabridge.com>
// Copyright (C) 2015 - 2019 Petabridge, LLC <https://petabridge.com>
// </copyright>
// -----------------------------------------------------------------------

Expand All @@ -21,8 +21,6 @@ public class ZipkinFixture : IAsyncLifetime
protected readonly string _zipkinContainerName = $"zipkin-{Guid.NewGuid():N}";
protected DockerClient _client;

public string ZipkinUrl { get; protected set; }

public ZipkinFixture()
{
DockerClientConfiguration config;
Expand All @@ -36,12 +34,25 @@ public ZipkinFixture()
_client = config.CreateClient();
}

public string ZipkinUrl { get; protected set; }

public virtual async Task InitializeAsync()
{
ZipkinUrl = await StartZipkinContainer(null, null);
await Task.Delay(TimeSpan.FromSeconds(20));
}

public virtual async Task DisposeAsync()
{
if (_client != null)
{
await _client.Containers.StopContainerAsync(_zipkinContainerName, new ContainerStopParameters());
await _client.Containers.RemoveContainerAsync(_zipkinContainerName,
new ContainerRemoveParameters {Force = true});
_client.Dispose();
}
}

protected async Task<string> StartZipkinContainer(string[] links, string[] environmentArgs)
{
var images = await _client.Images.ListImagesAsync(new ImagesListParameters {MatchName = ZipkinImageName});
Expand Down Expand Up @@ -78,24 +89,14 @@ await _client.Containers.CreateContainerAsync(new CreateContainerParameters
}
}
},
Links = links,
}, Env = environmentArgs
Links = links
},
Env = environmentArgs
});

// start the container
await _client.Containers.StartContainerAsync(_zipkinContainerName, new ContainerStartParameters());
return $"localhost:{zipkinHttpPort}";
}

public virtual async Task DisposeAsync()
{
if (_client != null)
{
await _client.Containers.StopContainerAsync(_zipkinContainerName, new ContainerStopParameters());
await _client.Containers.RemoveContainerAsync(_zipkinContainerName,
new ContainerRemoveParameters {Force = true});
_client.Dispose();
}
}
}
}
2 changes: 1 addition & 1 deletion src/Petabridge.Tracing.Zipkin.KafkaDemo/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -----------------------------------------------------------------------
// <copyright file="Program.cs" company="Petabridge, LLC">
// Copyright (C) 2015 - 2018 Petabridge, LLC <https://petabridge.com>
// Copyright (C) 2015 - 2019 Petabridge, LLC <https://petabridge.com>
// </copyright>
// -----------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/Petabridge.Tracing.Zipkin.SimpleDemo/Program.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -----------------------------------------------------------------------
// <copyright file="Program.cs" company="Petabridge, LLC">
// Copyright (C) 2015 - 2018 Petabridge, LLC <https://petabridge.com>
// Copyright (C) 2015 - 2019 Petabridge, LLC <https://petabridge.com>
// </copyright>
// -----------------------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -----------------------------------------------------------------------
// <copyright file="SpanBuilderSpecs.cs" company="Petabridge, LLC">
// Copyright (C) 2015 - 2018 Petabridge, LLC <https://petabridge.com>
// Copyright (C) 2015 - 2019 Petabridge, LLC <https://petabridge.com>
// </copyright>
// -----------------------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -----------------------------------------------------------------------
// <copyright file="SpanSerializerSpecs.cs" company="Petabridge, LLC">
// Copyright (C) 2015 - 2018 Petabridge, LLC <https://petabridge.com>
// Copyright (C) 2015 - 2019 Petabridge, LLC <https://petabridge.com>
// </copyright>
// -----------------------------------------------------------------------

Expand Down
2 changes: 1 addition & 1 deletion src/Petabridge.Tracing.Zipkin.Tests/Bug25SpanTagsSpecs.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -----------------------------------------------------------------------
// <copyright file="Bug25SpanTagsSpecs.cs" company="Petabridge, LLC">
// Copyright (C) 2015 - 2018 Petabridge, LLC <https://petabridge.com>
// Copyright (C) 2015 - 2019 Petabridge, LLC <https://petabridge.com>
// </copyright>
// -----------------------------------------------------------------------

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// -----------------------------------------------------------------------
// <copyright file="ExternalScopeManagerSpecs.cs" company="Petabridge, LLC">
// Copyright (C) 2015 - 2018 Petabridge, LLC <https://petabridge.com>
// Copyright (C) 2015 - 2019 Petabridge, LLC <https://petabridge.com>
// </copyright>
// -----------------------------------------------------------------------

Expand Down
Loading

0 comments on commit d813cab

Please sign in to comment.