mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-23 00:32:50 +08:00
Fix file names to match class names
SA1649
This commit is contained in:
parent
c7dbfc044f
commit
a64e263a26
6
src/Ocelot/Requester/ITracingHandler.cs
Normal file
6
src/Ocelot/Requester/ITracingHandler.cs
Normal file
@ -0,0 +1,6 @@
|
||||
namespace Ocelot.Requester
|
||||
{
|
||||
public interface ITracingHandler
|
||||
{
|
||||
}
|
||||
}
|
@ -8,10 +8,6 @@ using Butterfly.OpenTracing;
|
||||
|
||||
namespace Ocelot.Requester
|
||||
{
|
||||
public interface ITracingHandler
|
||||
{
|
||||
}
|
||||
|
||||
public class OcelotHttpTracingHandler : DelegatingHandler, ITracingHandler
|
||||
{
|
||||
private readonly IServiceTracer _tracer;
|
||||
|
@ -3,7 +3,9 @@ using Ocelot.Errors;
|
||||
|
||||
namespace Ocelot.Responses
|
||||
{
|
||||
#pragma warning disable SA1649 // File name must match first type name
|
||||
public class ErrorResponse<T> : Response<T>
|
||||
#pragma warning restore SA1649 // File name must match first type name
|
||||
{
|
||||
public ErrorResponse(Error error)
|
||||
: base(new List<Error> {error})
|
||||
|
@ -1,6 +1,8 @@
|
||||
namespace Ocelot.Responses
|
||||
{
|
||||
#pragma warning disable SA1649 // File name must match first type name
|
||||
public class OkResponse<T> : Response<T>
|
||||
#pragma warning restore SA1649 // File name must match first type name
|
||||
{
|
||||
public OkResponse(T data) : base(data)
|
||||
{
|
||||
|
@ -3,7 +3,9 @@ using Ocelot.Errors;
|
||||
|
||||
namespace Ocelot.Responses
|
||||
{
|
||||
#pragma warning disable SA1649 // File name must match first type name
|
||||
public abstract class Response<T> : Response
|
||||
#pragma warning restore SA1649 // File name must match first type name
|
||||
{
|
||||
protected Response(T data)
|
||||
{
|
||||
|
10
test/Ocelot.UnitTests/Wait.cs
Normal file
10
test/Ocelot.UnitTests/Wait.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace Ocelot.UnitTests
|
||||
{
|
||||
public class Wait
|
||||
{
|
||||
public static Waiter WaitFor(int milliSeconds)
|
||||
{
|
||||
return new Waiter(milliSeconds);
|
||||
}
|
||||
}
|
||||
}
|
@ -3,14 +3,6 @@ using System.Diagnostics;
|
||||
|
||||
namespace Ocelot.UnitTests
|
||||
{
|
||||
public class Wait
|
||||
{
|
||||
public static Waiter WaitFor(int milliSeconds)
|
||||
{
|
||||
return new Waiter(milliSeconds);
|
||||
}
|
||||
}
|
||||
|
||||
public class Waiter
|
||||
{
|
||||
private readonly int _milliSeconds;
|
||||
|
Loading…
x
Reference in New Issue
Block a user