[ci skip] Fixed ReSharper code issues (ironically, in JetBrains.Annotations as well)
This commit is contained in:
parent
fed377992b
commit
d211d33108
@ -96,9 +96,9 @@ namespace JetBrains.Annotations
|
||||
TargetFlags = targetFlags;
|
||||
}
|
||||
|
||||
public ImplicitUseKindFlags UseKindFlags { get; private set; }
|
||||
public ImplicitUseKindFlags UseKindFlags { get; }
|
||||
|
||||
public ImplicitUseTargetFlags TargetFlags { get; private set; }
|
||||
public ImplicitUseTargetFlags TargetFlags { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -174,6 +174,6 @@ namespace JetBrains.Annotations
|
||||
Comment = comment;
|
||||
}
|
||||
|
||||
[CanBeNull] public string Comment { get; private set; }
|
||||
[CanBeNull] public string Comment { get; }
|
||||
}
|
||||
}
|
@ -88,7 +88,7 @@ namespace Tapeti.Flow.Default
|
||||
public FlowStateLock(FlowStore owner, Guid flowID, IDisposable flowLock)
|
||||
{
|
||||
this.owner = owner;
|
||||
this.FlowID = flowID;
|
||||
FlowID = flowID;
|
||||
this.flowLock = flowLock;
|
||||
|
||||
owner.flowStates.TryGetValue(flowID, out flowState);
|
||||
|
@ -96,9 +96,9 @@ namespace JetBrains.Annotations
|
||||
TargetFlags = targetFlags;
|
||||
}
|
||||
|
||||
public ImplicitUseKindFlags UseKindFlags { get; private set; }
|
||||
public ImplicitUseKindFlags UseKindFlags { get; }
|
||||
|
||||
public ImplicitUseTargetFlags TargetFlags { get; private set; }
|
||||
public ImplicitUseTargetFlags TargetFlags { get; }
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -174,6 +174,6 @@ namespace JetBrains.Annotations
|
||||
Comment = comment;
|
||||
}
|
||||
|
||||
[CanBeNull] public string Comment { get; private set; }
|
||||
[CanBeNull] public string Comment { get; }
|
||||
}
|
||||
}
|
@ -3,6 +3,8 @@ using System.Collections.Generic;
|
||||
using System.Reflection;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
namespace Tapeti.Config
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -1,6 +1,4 @@
|
||||
using RabbitMQ.Client;
|
||||
|
||||
// ReSharper disable UnusedMember.Global
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
namespace Tapeti.Config
|
||||
{
|
||||
|
@ -1,5 +1,7 @@
|
||||
using System;
|
||||
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
namespace Tapeti.Config
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -60,12 +60,6 @@ namespace Tapeti.Connection
|
||||
}
|
||||
|
||||
|
||||
private async Task ApplyBinding(IBinding binding, IBindingTarget bindingTarget)
|
||||
{
|
||||
await binding.Apply(bindingTarget);
|
||||
}
|
||||
|
||||
|
||||
private abstract class CustomBindingTarget : IBindingTarget
|
||||
{
|
||||
protected readonly Func<ITapetiClient> ClientFactory;
|
||||
|
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Tapeti.Annotations;
|
||||
|
@ -27,7 +27,7 @@ namespace Tapeti
|
||||
/// </remarks>
|
||||
public TapetiConnectionParams Params { get; set; }
|
||||
|
||||
private readonly Lazy<TapetiClient> client;
|
||||
private readonly Lazy<ITapetiClient> client;
|
||||
private TapetiSubscriber subscriber;
|
||||
|
||||
/// <summary>
|
||||
@ -40,7 +40,7 @@ namespace Tapeti
|
||||
this.config = config;
|
||||
(config.DependencyResolver as IDependencyContainer)?.RegisterDefault(GetPublisher);
|
||||
|
||||
client = new Lazy<TapetiClient>(() => new TapetiClient(config, Params ?? new TapetiConnectionParams())
|
||||
client = new Lazy<ITapetiClient>(() => new TapetiClient(config, Params ?? new TapetiConnectionParams())
|
||||
{
|
||||
ConnectionEventListener = new ConnectionEventListener(this)
|
||||
});
|
||||
|
@ -1,5 +1,7 @@
|
||||
using System.Threading.Tasks;
|
||||
|
||||
// ReSharper disable UnusedMember.Global
|
||||
|
||||
namespace Test
|
||||
{
|
||||
public class MarcoEmitter
|
||||
|
Loading…
Reference in New Issue
Block a user