[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;
|
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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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);
|
||||||
|
@ -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; }
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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>
|
||||||
|
@ -1,6 +1,4 @@
|
|||||||
using RabbitMQ.Client;
|
// ReSharper disable UnusedMember.Global
|
||||||
|
|
||||||
// ReSharper disable UnusedMember.Global
|
|
||||||
|
|
||||||
namespace Tapeti.Config
|
namespace Tapeti.Config
|
||||||
{
|
{
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
// ReSharper disable UnusedMember.Global
|
||||||
|
|
||||||
namespace Tapeti.Config
|
namespace Tapeti.Config
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <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
|
private abstract class CustomBindingTarget : IBindingTarget
|
||||||
{
|
{
|
||||||
protected readonly Func<ITapetiClient> ClientFactory;
|
protected readonly Func<ITapetiClient> ClientFactory;
|
||||||
|
@ -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;
|
||||||
|
@ -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)
|
||||||
});
|
});
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user