Skip to content
This repository has been archived by the owner on Aug 25, 2021. It is now read-only.

Commit

Permalink
Rename package RedHatX -> RedHat, v2.1.1 -> v2.1.0 (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
tmds authored Jul 9, 2018
1 parent 2c579aa commit be5b5d9
Show file tree
Hide file tree
Showing 62 changed files with 91 additions and 91 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ before_install:
- sudo ln -s /opt/dotnet/dotnet /usr/bin/dotnet
script:
- pushd samples/KestrelSample && dotnet restore && dotnet build && popd
- pushd test/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.Test && dotnet restore && dotnet test && popd
- dotnet pack src/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux --configuration Release --version-suffix "$(date +"%y%m%d")-$TRAVIS_BUILD_NUMBER"
- pushd test/RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Test && dotnet restore && dotnet test && popd
- dotnet pack src/RedHat.AspNetCore.Server.Kestrel.Transport.Linux --configuration Release --version-suffix "$(date +"%y%m%d")-$TRAVIS_BUILD_NUMBER"
--output .
after_success:
- 'if [ "$TRAVIS_BRANCH" == "master" ] && [ "$TRAVIS_PULL_REQUEST" == "false" ]; then
curl -H "X-NuGet-ApiKey: $NUGET_APIKEY" -T src/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.*.nupkg
curl -H "X-NuGet-ApiKey: $NUGET_APIKEY" -T src/RedHat.AspNetCore.Server.Kestrel.Transport.Linux/RedHat.AspNetCore.Server.Kestrel.Transport.Linux.*.nupkg
https://www.myget.org/F/redhat-dotnet/api/v2/package ; fi'
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ Add the myget feed to your `NuGet.Config` file:
Include a package reference in your project `csproj` file:
```xml
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.1-*" />
<PackageReference Include="RedHatX.AspNetCore.Server.Kestrel.Transport.Linux" Version="2.1.1-*" />
<PackageReference Include="Microsoft.AspNetCore.App" Version="2.1.0-*" />
<PackageReference Include="RedHat.AspNetCore.Server.Kestrel.Transport.Linux" Version="2.1.0-*" />
</ItemGroup>
```

Expand All @@ -41,20 +41,20 @@ public static IWebHost BuildWebHost(string[] args) =>
# Repo structure

There are 5 projects in this repository:
- src/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux: managed library implementing Transport
- src/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.Native: native library used by managed library
- src/RedHat.AspNetCore.Server.Kestrel.Transport.Linux: managed library implementing Transport
- src/RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Native: native library used by managed library
- samples/KestrelSample: Kestrel app for [benchmarking](Benchmark.md)
- test/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.Test: xunit test projects, has access to internals of managed library
- test/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.TestApp: empty application to use during development, has access to internals of managed library
- test/RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Test: xunit test projects, has access to internals of managed library
- test/RedHat.AspNetCore.Server.Kestrel.Transport.Linux.TestApp: empty application to use during development, has access to internals of managed library

The library can be packaged by running the `dotnet pack` on src/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.
The library can be packaged by running the `dotnet pack` on src/RedHat.AspNetCore.Server.Kestrel.Transport.Linux.
```
$ dotnet pack src/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux --configuration Release
$ dotnet pack src/RedHat.AspNetCore.Server.Kestrel.Transport.Linux --configuration Release
```

To build the library and run the tests execute `dotnet test` on test/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.Test.
To build the library and run the tests execute `dotnet test` on test/RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Test.
```
$ dotnet test test/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.Test
$ dotnet test test/RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Test
```

# Design
Expand Down
2 changes: 1 addition & 1 deletion samples/BenchmarkApp/BenchmarkApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="RedHatX.AspNetCore.Server.Kestrel.Transport.Linux" Version="2.1.1-*" />
<PackageReference Include="RedHat.AspNetCore.Server.Kestrel.Transport.Linux" Version="2.1.0-*" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="$(AspNetCoreVersion)" />
Expand Down
2 changes: 1 addition & 1 deletion samples/BenchmarkApp/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
using Microsoft.Extensions.Logging.Console;
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal;
using Benchmarks.Middleware;
using RedHatX.AspNetCore.Server.Kestrel.Transport.Linux;
using RedHat.AspNetCore.Server.Kestrel.Transport.Linux;
using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal;
using System.Linq;

Expand Down
2 changes: 1 addition & 1 deletion samples/BenchmarkApp/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Logging": {
"LogLevel": {
"Default": "Warning",
"RedHatX": "Information"
"RedHat": "Information"
}
}
}
2 changes: 1 addition & 1 deletion samples/KestrelSample/KestrelSample.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="../../src/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux/RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.csproj" />
<ProjectReference Include="../../src/RedHat.AspNetCore.Server.Kestrel.Transport.Linux/RedHat.AspNetCore.Server.Kestrel.Transport.Linux.csproj" />
<PackageReference Include="Microsoft.AspNetCore.Server.Kestrel" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="$(AspNetCoreVersion)" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="$(AspNetCoreVersion)" />
Expand Down
2 changes: 1 addition & 1 deletion samples/KestrelSample/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
using Microsoft.Extensions.Logging.Console;
using Microsoft.AspNetCore.Server.Kestrel.Core.Internal;
using Benchmarks.Middleware;
using RedHatX.AspNetCore.Server.Kestrel.Transport.Linux;
using RedHat.AspNetCore.Server.Kestrel.Transport.Linux;

namespace SampleApp
{
Expand Down
2 changes: 1 addition & 1 deletion samples/KestrelSample/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Logging": {
"LogLevel": {
"Default": "Warning",
"RedHatX": "Debug"
"RedHat": "Debug"
}
}
}
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -226,4 +226,4 @@ endfunction()

include(configure.cmake)

add_subdirectory(RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.Native)
add_subdirectory(RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Native)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
project(RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Native)

set(SOURCES
pipeend.cpp
epoll.cpp
socket.cpp
scheduler.cpp
io.cpp
error.cpp
aio.cpp
)

add_library(RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Native
SHARED
${SOURCES}
)

install_library_and_symbols (RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Native)
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using System.Threading.Tasks;
using System.Threading;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
sealed class AcceptThread : ITransportActionHandler
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
enum AioOpCode : ushort
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
using System.Runtime.CompilerServices;

[assembly: InternalsVisibleTo("RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Test")]
[assembly: InternalsVisibleTo("RedHat.AspNetCore.Server.Kestrel.Transport.Linux.TestApp")]
[assembly: InternalsVisibleTo("KestrelSample")]
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.Runtime.InteropServices;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
internal class CloseSafeHandle : SafeHandle
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System.Collections.Generic;
using System.IO;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
class CpuInfo
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.ComponentModel;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
[TypeConverter(typeof(CpuSetTypeConverter))]
internal struct CpuSet
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.ComponentModel;
using System.Globalization;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
internal class CpuSetTypeConverter : TypeConverter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Runtime.InteropServices;
using System.Threading;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
static class EPollInterop
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
[StructLayout(LayoutKind.Explicit, Size = 8)]
struct EPollData
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
[Flags]
enum EPollEvents : int
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
enum EPollOperation : int
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.Runtime.InteropServices;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
static class ErrorInterop
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.Runtime.InteropServices;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
static class IOInterop
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Net;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
internal struct IPEndPointStruct
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Threading.Tasks;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
interface ITransportActionHandler
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
static class Interop
{
public const string Library = "RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Native";
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
struct PipeEndPair
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

using System.Collections.Generic;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
internal partial struct PosixResult
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System;
using System.IO;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
internal partial struct PosixResult
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
<Import Project="../../dependencies.props" />

<PropertyGroup>
<VersionPrefix>2.1.1</VersionPrefix>
<VersionPrefix>2.1.0</VersionPrefix>
<TargetFramework>netcoreapp2.1</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<DebugType>portable</DebugType>
<LangVersion>7.2</LangVersion>
</PropertyGroup>

<ItemGroup>
<None Include="..\..\bin\Linux.x64.Release\Native\RedHatX.AspNetCore.Server.Kestrel.Transport.Linux.Native.so" PackagePath="runtimes/linux-x64/native" Pack="true" CopyToOutputDirectory="Always"/>
<None Include="..\..\bin\Linux.x64.Release\Native\RedHat.AspNetCore.Server.Kestrel.Transport.Linux.Native.so" PackagePath="runtimes/linux-x64/native" Pack="true" CopyToOutputDirectory="Always"/>
</ItemGroup>

<Target Name="PrecompileScript" BeforeTargets="BeforeBuild">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Net;
using System.Text;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
unsafe struct IPSocketAddress
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
enum AddressFamily : int
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Net;
using System.Runtime.InteropServices;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
unsafe struct IOVector
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System.Runtime.InteropServices;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
class SchedulerInterop
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal;
using Microsoft.Extensions.Logging;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
internal class Transport : ITransport
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using System;
using System.Net;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
static class TransportConstants
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
public class LinuxTransportFactory : ITransportFactory
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
public class LinuxTransportOptions
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using Microsoft.AspNetCore.Connections;
using Microsoft.AspNetCore.Server.Kestrel.Transport.Abstractions.Internal;

namespace RedHatX.AspNetCore.Server.Kestrel.Transport.Linux
namespace RedHat.AspNetCore.Server.Kestrel.Transport.Linux
{
sealed partial class TransportThread
{
Expand Down
Loading

0 comments on commit be5b5d9

Please sign in to comment.