diff --git a/src/Cap.Consistency/BuilderExtensions.cs b/src/Cap.Consistency/BuilderExtensions.cs
index 58b8d57..f1167d7 100644
--- a/src/Cap.Consistency/BuilderExtensions.cs
+++ b/src/Cap.Consistency/BuilderExtensions.cs
@@ -2,6 +2,7 @@
using Microsoft.Extensions.DependencyInjection;
using System;
+// ReSharper disable once CheckNamespace
namespace Microsoft.AspNetCore.Builder
{
///
diff --git a/src/Cap.Consistency/ConsistenceBuilder.cs b/src/Cap.Consistency/ConsistenceBuilder.cs
index b998808..48dbe31 100644
--- a/src/Cap.Consistency/ConsistenceBuilder.cs
+++ b/src/Cap.Consistency/ConsistenceBuilder.cs
@@ -3,13 +3,14 @@ using System;
namespace Cap.Consistency
{
- ///
- /// Creates a new instance of .
- ///
- /// The to use for the message.
- /// The to attach to.
+
public class ConsistenceBuilder
{
+ ///
+ /// Creates a new instance of .
+ ///
+ /// The to use for the message.
+ /// The to attach to.
public ConsistenceBuilder(Type message, IServiceCollection service) {
MessageType = message;
Services = service;
@@ -32,10 +33,10 @@ namespace Cap.Consistency
public Type MessageType { get; private set; }
///
- /// Adds a for the .
+ /// Adds a for the .
///
/// The role type held in the store.
- /// The current instance.
+ /// The current instance.
public virtual ConsistenceBuilder AddMessageStore() where T : class {
return AddScoped(typeof(IConsistentMessageStore<>).MakeGenericType(MessageType), typeof(T));
}
diff --git a/src/Cap.Consistency/ConsistentMessageManager.cs b/src/Cap.Consistency/ConsistentMessageManager.cs
index 55faadb..9a33365 100644
--- a/src/Cap.Consistency/ConsistentMessageManager.cs
+++ b/src/Cap.Consistency/ConsistentMessageManager.cs
@@ -103,7 +103,7 @@ namespace Cap.Consistency
///
/// Finds and returns a message, if any, who has the specified .
///
- /// The message ID to search for.
+ /// The message ID to search for.
///
/// The that represents the asynchronous operation, containing the user matching the specified if it exists.
///
@@ -113,9 +113,9 @@ namespace Cap.Consistency
}
///
- /// Gets the message identifier for the specified .
+ /// Gets the message identifier for the specified .
///
- /// The message whose identifier should be retrieved.
+ /// The message whose identifier should be retrieved.
/// The that represents the asynchronous operation, containing the identifier for the specified .
public virtual async Task GetMessageIdAsync(TMessage message) {
ThrowIfDisposed();
diff --git a/src/Cap.Consistency/IConsistentMessageStore.cs b/src/Cap.Consistency/IConsistentMessageStore.cs
index 4dad19c..cb490ad 100644
--- a/src/Cap.Consistency/IConsistentMessageStore.cs
+++ b/src/Cap.Consistency/IConsistentMessageStore.cs
@@ -25,7 +25,7 @@ namespace Cap.Consistency
///
/// The message to create in the store.
/// The used to propagate notifications that the operation should be canceled.
- /// A that represents the of the asynchronous query.
+ /// A that represents the of the asynchronous query.
Task CreateAsync(TMessage message, CancellationToken cancellationToken);
///
@@ -33,7 +33,7 @@ namespace Cap.Consistency
///
/// The message to update in the store.
/// The used to propagate notifications that the operation should be canceled.
- /// A that represents the of the asynchronous query.
+ /// A that represents the of the asynchronous query.
Task UpdateAsync(TMessage message, CancellationToken cancellationToken);
///
@@ -41,7 +41,7 @@ namespace Cap.Consistency
///
/// The message to delete in the store.
/// The used to propagate notifications that the operation should be canceled.
- /// A that represents the of the asynchronous query.
+ /// A that represents the of the asynchronous query.
Task DeleteAsync(TMessage message, CancellationToken cancellationToken);
///
diff --git a/src/Cap.Consistency/OperateResult.cs b/src/Cap.Consistency/OperateResult.cs
index bacccf2..c91ca4e 100644
--- a/src/Cap.Consistency/OperateResult.cs
+++ b/src/Cap.Consistency/OperateResult.cs
@@ -8,7 +8,10 @@ namespace Cap.Consistency
///
public class OperateResult
{
+ // ReSharper disable once InconsistentNaming
private static readonly OperateResult _success = new OperateResult { Succeeded = true };
+
+ // ReSharper disable once FieldCanBeMadeReadOnly.Local
private List _errors = new List();
///
@@ -24,16 +27,16 @@ namespace Cap.Consistency
public IEnumerable Errors => _errors;
///
- /// Returns an indicating a successful identity operation.
+ /// Returns an indicating a successful identity operation.
///
- /// An indicating a successful operation.
+ /// An indicating a successful operation.
public static OperateResult Success => _success;
///
- /// Creates an indicating a failed operation, with a list of if applicable.
+ /// Creates an indicating a failed operation, with a list of if applicable.
///
- /// An optional array of s which caused the operation to fail.
- /// An indicating a failed operation, with a list of if applicable.
+ /// An optional array of s which caused the operation to fail.
+ /// An indicating a failed operation, with a list of if applicable.
public static OperateResult Failed(params OperateError[] errors) {
var result = new OperateResult { Succeeded = false };
if (errors != null) {
@@ -43,9 +46,9 @@ namespace Cap.Consistency
}
///
- /// Converts the value of the current object to its equivalent string representation.
+ /// Converts the value of the current object to its equivalent string representation.
///
- /// A string representation of the current object.
+ /// A string representation of the current object.
///
/// If the operation was successful the ToString() will return "Succeeded" otherwise it returned
/// "Failed : " followed by a comma delimited list of error codes from its collection, if any.
diff --git a/src/Cap.Consistency/ServiceCollectionExtensions.cs b/src/Cap.Consistency/ServiceCollectionExtensions.cs
index 7280635..9f11aaa 100644
--- a/src/Cap.Consistency/ServiceCollectionExtensions.cs
+++ b/src/Cap.Consistency/ServiceCollectionExtensions.cs
@@ -1,6 +1,7 @@
using Cap.Consistency;
using Microsoft.Extensions.DependencyInjection.Extensions;
+// ReSharper disable once CheckNamespace
namespace Microsoft.Extensions.DependencyInjection
{
///
diff --git a/src/Cap.Consistency/project.json b/src/Cap.Consistency/project.json
index af5b733..536dfac 100644
--- a/src/Cap.Consistency/project.json
+++ b/src/Cap.Consistency/project.json
@@ -1,16 +1,14 @@
-{
+{
"version": "1.0.0-*",
-
"dependencies": {
"Microsoft.AspNetCore.Http.Abstractions": "1.1.0-*",
"Microsoft.Extensions.DependencyInjection.Abstractions": "1.1.0",
"Microsoft.Extensions.Logging.Abstractions": "1.1.0-*",
"NETStandard.Library": "1.6.1"
},
-
"frameworks": {
"netstandard1.6": {
"imports": "dnxcore50"
}
}
-}
+}
\ No newline at end of file