mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-04-22 18:22:49 +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
|
namespace Ocelot.Requester
|
||||||
{
|
{
|
||||||
public interface ITracingHandler
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public class OcelotHttpTracingHandler : DelegatingHandler, ITracingHandler
|
public class OcelotHttpTracingHandler : DelegatingHandler, ITracingHandler
|
||||||
{
|
{
|
||||||
private readonly IServiceTracer _tracer;
|
private readonly IServiceTracer _tracer;
|
||||||
|
@ -3,7 +3,9 @@ using Ocelot.Errors;
|
|||||||
|
|
||||||
namespace Ocelot.Responses
|
namespace Ocelot.Responses
|
||||||
{
|
{
|
||||||
|
#pragma warning disable SA1649 // File name must match first type name
|
||||||
public class ErrorResponse<T> : Response<T>
|
public class ErrorResponse<T> : Response<T>
|
||||||
|
#pragma warning restore SA1649 // File name must match first type name
|
||||||
{
|
{
|
||||||
public ErrorResponse(Error error)
|
public ErrorResponse(Error error)
|
||||||
: base(new List<Error> {error})
|
: base(new List<Error> {error})
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
namespace Ocelot.Responses
|
namespace Ocelot.Responses
|
||||||
{
|
{
|
||||||
|
#pragma warning disable SA1649 // File name must match first type name
|
||||||
public class OkResponse<T> : Response<T>
|
public class OkResponse<T> : Response<T>
|
||||||
|
#pragma warning restore SA1649 // File name must match first type name
|
||||||
{
|
{
|
||||||
public OkResponse(T data) : base(data)
|
public OkResponse(T data) : base(data)
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,9 @@ using Ocelot.Errors;
|
|||||||
|
|
||||||
namespace Ocelot.Responses
|
namespace Ocelot.Responses
|
||||||
{
|
{
|
||||||
|
#pragma warning disable SA1649 // File name must match first type name
|
||||||
public abstract class Response<T> : Response
|
public abstract class Response<T> : Response
|
||||||
|
#pragma warning restore SA1649 // File name must match first type name
|
||||||
{
|
{
|
||||||
protected Response(T data)
|
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
|
namespace Ocelot.UnitTests
|
||||||
{
|
{
|
||||||
public class Wait
|
|
||||||
{
|
|
||||||
public static Waiter WaitFor(int milliSeconds)
|
|
||||||
{
|
|
||||||
return new Waiter(milliSeconds);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public class Waiter
|
public class Waiter
|
||||||
{
|
{
|
||||||
private readonly int _milliSeconds;
|
private readonly int _milliSeconds;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user