1
0
mirror of synced 2024-06-26 14:27:38 +00: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; TargetFlags = targetFlags;
} }
public ImplicitUseKindFlags UseKindFlags { get; private set; } public ImplicitUseKindFlags UseKindFlags { get; }
public ImplicitUseTargetFlags TargetFlags { get; private set; } public ImplicitUseTargetFlags TargetFlags { get; }
} }
/// <summary> /// <summary>
@ -174,6 +174,6 @@ namespace JetBrains.Annotations
Comment = comment; 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) public FlowStateLock(FlowStore owner, Guid flowID, IDisposable flowLock)
{ {
this.owner = owner; this.owner = owner;
this.FlowID = flowID; FlowID = flowID;
this.flowLock = flowLock; this.flowLock = flowLock;
owner.flowStates.TryGetValue(flowID, out flowState); owner.flowStates.TryGetValue(flowID, out flowState);

View File

@ -96,9 +96,9 @@ namespace JetBrains.Annotations
TargetFlags = targetFlags; TargetFlags = targetFlags;
} }
public ImplicitUseKindFlags UseKindFlags { get; private set; } public ImplicitUseKindFlags UseKindFlags { get; }
public ImplicitUseTargetFlags TargetFlags { get; private set; } public ImplicitUseTargetFlags TargetFlags { get; }
} }
/// <summary> /// <summary>
@ -174,6 +174,6 @@ namespace JetBrains.Annotations
Comment = comment; 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.Reflection;
using System.Threading.Tasks; using System.Threading.Tasks;
// ReSharper disable UnusedMember.Global
namespace Tapeti.Config namespace Tapeti.Config
{ {
/// <summary> /// <summary>

View File

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

View File

@ -1,5 +1,7 @@
using System; using System;
// ReSharper disable UnusedMember.Global
namespace Tapeti.Config namespace Tapeti.Config
{ {
/// <summary> /// <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 private abstract class CustomBindingTarget : IBindingTarget
{ {
protected readonly Func<ITapetiClient> ClientFactory; protected readonly Func<ITapetiClient> ClientFactory;

View File

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

View File

@ -27,7 +27,7 @@ namespace Tapeti
/// </remarks> /// </remarks>
public TapetiConnectionParams Params { get; set; } public TapetiConnectionParams Params { get; set; }
private readonly Lazy<TapetiClient> client; private readonly Lazy<ITapetiClient> client;
private TapetiSubscriber subscriber; private TapetiSubscriber subscriber;
/// <summary> /// <summary>
@ -40,7 +40,7 @@ namespace Tapeti
this.config = config; this.config = config;
(config.DependencyResolver as IDependencyContainer)?.RegisterDefault(GetPublisher); (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) ConnectionEventListener = new ConnectionEventListener(this)
}); });

View File

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