1
0
mirror of synced 2024-12-22 09:13:07 +01:00

[ci skip] Fixed ReSharper code issues (ironically, in JetBrains.Annotations as well)

This commit is contained in:
Mark van Renswoude 2019-08-15 11:32:39 +02:00
parent fed377992b
commit d211d33108
10 changed files with 16 additions and 19 deletions

View File

@ -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; }
}
}

View File

@ -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);

View File

@ -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; }
}
}

View File

@ -3,6 +3,8 @@ using System.Collections.Generic;
using System.Reflection;
using System.Threading.Tasks;
// ReSharper disable UnusedMember.Global
namespace Tapeti.Config
{
/// <summary>

View File

@ -1,6 +1,4 @@
using RabbitMQ.Client;
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMember.Global
namespace Tapeti.Config
{

View File

@ -1,5 +1,7 @@
using System;
// ReSharper disable UnusedMember.Global
namespace Tapeti.Config
{
/// <summary>

View File

@ -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;

View File

@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Tapeti.Annotations;

View File

@ -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)
});

View File

@ -1,5 +1,7 @@
using System.Threading.Tasks;
// ReSharper disable UnusedMember.Global
namespace Test
{
public class MarcoEmitter