Merge pull request #1068 from acjh/patch-2

Fix spelling mistakes
pull/1078/head
Halil İbrahim Kalkan 7 years ago committed by GitHub
commit 884e9ea77b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -29,7 +29,7 @@ Error Message is an instance of the `RemoteServiceErrorResponse` class. The simp
}
````
There are **optional fields** those can be filled based upon the exception that has occured.
There are **optional fields** those can be filled based upon the exception that has occurred.
##### Error Code
@ -70,7 +70,7 @@ Error **details** in an optional field of the JSON error message. Thrown `Except
"code": "App:010046",
"message": "Your request is not valid, please correct and try again!",
"validationErrors": [{
"message": "Username should be minimum lenght of 3.",
"message": "Username should be minimum length of 3.",
"members": ["userName"]
},
{

@ -19,7 +19,7 @@ One of the major goals of the ABP framework is to provide a convenient infrastru
## Microservice for New Applications
One common advise to start a new solution is **always to start with a monolith**, keep it modular and split into microservices once the monolith becomes a problem. This makes your progress fast in the beginning especially if your team is small and you don't want to deal with challanges of the microservice architecture.
One common advise to start a new solution is **always to start with a monolith**, keep it modular and split into microservices once the monolith becomes a problem. This makes your progress fast in the beginning especially if your team is small and you don't want to deal with challenges of the microservice architecture.
However, developing such a well-modular application can be a problem since it is **hard to keep modules isolated** from each other as you would do it for microservices (see [Stefan Tilkov's article](https://martinfowler.com/articles/dont-start-monolith.html) about that). Microservice architecture naturally forces you to develop well isolated services, but in a modular monolithic application it's easy to tight couple modules to each other and design **weak module boundaries** and API contracts.

@ -151,7 +151,7 @@ namespace Acme.BookStore
* **DTO** classes are used to **transfer data** between the *presentation layer* and the *application layer*. See the [Data Transfer Objects document](../../Data-Transfer-Objects.md) for more details.
* `BookDto` is used to transfer book data to the presentation layer in order to show the book information on the UI.
* `BookDto` is derived from the `AuditedEntityDto<Guid>` which has audit properties just like the `Book` class defined above.
* `[AutoMapFrom(typeof(Book))]` is used to create AutoMapper mapping from the `Book` class to the `BookDto` class. In this way, you get automatic convertion of `Book` objects to `BookDto` objects (instead of manually copy all properties).
* `[AutoMapFrom(typeof(Book))]` is used to create AutoMapper mapping from the `Book` class to the `BookDto` class. In this way, you get automatic conversion of `Book` objects to `BookDto` objects (instead of manually copy all properties).
#### CreateUpdateBookDto
@ -425,7 +425,7 @@ $(function () {
````
* `abp.libs.datatables.createAjax` is a helper function to adapt ABP's dynamic JavaScript API proxies to Datatable's format.
* `abp.libs.datatables.normalizeConfiguration` is another helper function. There's no requirment to use it, but it simplifies the datatables configuration by providing conventional values for missing options.
* `abp.libs.datatables.normalizeConfiguration` is another helper function. There's no requirement to use it, but it simplifies the datatables configuration by providing conventional values for missing options.
* `acme.bookStore.book.getList` is the function to get list of books (you have seen it before).
* See [Datatable's documentation](https://datatables.net/manual/) for more configuration options.

@ -70,7 +70,7 @@ ABP提供了用于处理Web应用程序异常的标准模型.
"code": "App:010046",
"message": "Your request is not valid, please correct and try again!",
"validationErrors": [{
"message": "Username should be minimum lenght of 3.",
"message": "Username should be minimum length of 3.",
"members": ["userName"]
},
{

@ -35,10 +35,10 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
TagHelper.AspFor.Name,
SurroundInnerHtmlAndGet(context, output, innerHtml, isCheckbox),
order,
out var surpress
out var suppress
);
if (surpress)
if (suppress)
{
output.SuppressOutput();
}
@ -389,10 +389,10 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
return idAttr != null ? "for=\"" + idAttr.Value + "\"" : "";
}
protected virtual void AddGroupToFormGroupContents(TagHelperContext context, string propertyName, string html, int order, out bool surpress)
protected virtual void AddGroupToFormGroupContents(TagHelperContext context, string propertyName, string html, int order, out bool suppress)
{
var list = context.GetValue<List<FormGroupItem>>(FormGroupContents) ?? new List<FormGroupItem>();
surpress = list == null;
suppress = list == null;
if (list != null && !list.Any(igc => igc.HtmlContent.Contains("id=\"" + propertyName.Replace('.', '_') + "\"")))
{

@ -29,9 +29,9 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
var html = GetHtml(context, output, selectItems);
AddGroupToFormGroupContents(context, TagHelper.AspFor.Name, html, order, out var surpress);
AddGroupToFormGroupContents(context, TagHelper.AspFor.Name, html, order, out var suppress);
if (surpress)
if (suppress)
{
output.SuppressOutput();
}
@ -157,10 +157,10 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
return TagHelper.AspFor.ModelExplorer.Model?.ToString();
}
protected virtual void AddGroupToFormGroupContents(TagHelperContext context, string propertyName, string html, int order, out bool surpress)
protected virtual void AddGroupToFormGroupContents(TagHelperContext context, string propertyName, string html, int order, out bool suppress)
{
var list = context.GetValue<List<FormGroupItem>>(FormGroupContents) ?? new List<FormGroupItem>();
surpress = list == null;
suppress = list == null;
if (list != null && !list.Any(igc => igc.HtmlContent.Contains("id=\"" + propertyName.Replace('.', '_') + "\"")))
{

@ -33,9 +33,9 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
var order = TagHelper.AspFor.ModelExplorer.GetDisplayOrder();
AddGroupToFormGroupContents(context, TagHelper.AspFor.Name, SurroundInnerHtmlAndGet(context, output, innerHtml), order, out var surpress);
AddGroupToFormGroupContents(context, TagHelper.AspFor.Name, SurroundInnerHtmlAndGet(context, output, innerHtml), order, out var suppress);
if (surpress)
if (suppress)
{
output.SuppressOutput();
}
@ -304,10 +304,10 @@ namespace Volo.Abp.AspNetCore.Mvc.UI.Bootstrap.TagHelpers.Form
return idAttr != null ? "for=\"" + idAttr.Value + "\"" : "";
}
protected virtual void AddGroupToFormGroupContents(TagHelperContext context, string propertyName, string html, int order, out bool surpress)
protected virtual void AddGroupToFormGroupContents(TagHelperContext context, string propertyName, string html, int order, out bool suppress)
{
var list = context.GetValue<List<FormGroupItem>>(FormGroupContents) ?? new List<FormGroupItem>();
surpress = list == null;
suppress = list == null;
if (list != null && !list.Any(igc => igc.HtmlContent.Contains("id=\"" + propertyName.Replace('.', '_') + "\"")))
{

@ -36,7 +36,7 @@ namespace Volo.Abp.AspNetCore.Mvc.ExceptionHandling
// We can't do anything if the response has already started, just abort.
if (httpContext.Response.HasStarted)
{
_logger.LogWarning("An exception occured, but response has already started!");
_logger.LogWarning("An exception occurred, but response has already started!");
throw;
}

@ -38,7 +38,7 @@ namespace Autofac.Extensions.DependencyInjection
/// <summary>
/// Initializes a new instance of the <see cref="AutofacServiceProviderFactory"/> class.
/// </summary>
/// <param name="configurationAction">Action on a <see cref="ContainerBuilder"/> that adds component registrations to the conatiner.</param>
/// <param name="configurationAction">Action on a <see cref="ContainerBuilder"/> that adds component registrations to the container.</param>
public AutofacServiceProviderFactory(Action<ContainerBuilder> configurationAction = null)
{
_configurationAction = configurationAction ?? (builder => { });

@ -37,7 +37,7 @@ namespace Autofac.Extensions.DependencyInjection
/// Adds the <see cref="AutofacServiceProviderFactory"/> to the service collection.
/// </summary>
/// <param name="services">The service collection to add the factory to.</param>
/// <param name="configurationAction">Action on a <see cref="ContainerBuilder"/> that adds component registrations to the conatiner.</param>
/// <param name="configurationAction">Action on a <see cref="ContainerBuilder"/> that adds component registrations to the container.</param>
/// <returns>The service collection.</returns>
public static IServiceCollection AddAutofac(this IServiceCollection services, Action<ContainerBuilder> configurationAction = null)
{

@ -42,7 +42,7 @@ namespace Volo.Abp.BackgroundJobs
public virtual DateTime? LastTryTime { get; set; }
/// <summary>
/// This is true if this job is continously failed and will not be executed again.
/// This is true if this job is continuously failed and will not be executed again.
/// </summary>
public virtual bool IsAbandoned { get; set; }

@ -84,11 +84,11 @@ namespace System
}
/// <summary>
/// Gets index of nth occurence of a char in a string.
/// Gets index of nth occurrence of a char in a string.
/// </summary>
/// <param name="str">source string to be searched</param>
/// <param name="c">Char to search in <see cref="str"/></param>
/// <param name="n">Count of the occurence</param>
/// <param name="n">Count of the occurrence</param>
public static int NthIndexOf(this string str, char c, int n)
{
Check.NotNull(str, nameof(str));

@ -39,7 +39,7 @@ namespace Volo.Abp.Domain.Entities.Events.Distributed
return new EntityEto(keys);
}
//TODO: Also add KeysAsString property to resulting json for compability with the EntityEto!
//TODO: Also add KeysAsString property to resulting json for compatibility with the EntityEto!
return ObjectMapper.Map(entityType, etoType, entityObj);
}
}

@ -15,7 +15,7 @@ namespace Volo.Abp.Security.Encryption
/// <summary>
/// Default password to encrypt/decrypt texts.
/// It's recommented to set to another value for security.
/// It's recommended to set to another value for security.
/// Default value: "gsKnGZ041HLL4IM8"
/// </summary>
public string DefaultPassPhrase { get; set; }

@ -9,7 +9,7 @@ namespace Volo.Abp.Uow
public class UnitOfWorkFailedEventArgs : UnitOfWorkEventArgs
{
/// <summary>
/// Exception that caused failure. This is set only if an error occured during <see cref="IUnitOfWork.Complete"/>.
/// Exception that caused failure. This is set only if an error occurred during <see cref="IUnitOfWork.Complete"/>.
/// Can be null if there is no exception, but <see cref="IUnitOfWork.Complete"/> is not called.
/// Can be null if another exception occurred during the UOW.
/// </summary>

@ -27,7 +27,7 @@ namespace Volo.Abp.AspNetCore.Mvc.Versioning
opts.ApiVersions.Add(new ApiVersion(2, 0));
});
//1.0 Compatability version
//1.0 Compatibility version
options.ConventionalControllers.Create(typeof(AbpAspNetCoreMvcVersioningTestModule).Assembly, opts =>
{
opts.TypePredicate = t => t.Namespace == typeof(Volo.Abp.AspNetCore.Mvc.Versioning.App.Compat.TodoAppService).Namespace;

@ -37,7 +37,7 @@ namespace Volo.Abp.Auditing
using (var scope = _auditingManager.BeginScope())
{
await myAuditedObject1.DoItAsync(new InputObject { Value1 = "fourty-two", Value2 = 42 });
await myAuditedObject1.DoItAsync(new InputObject { Value1 = "forty-two", Value2 = 42 });
await scope.SaveAsync();
}

@ -85,7 +85,7 @@ namespace Microsoft.Extensions.DependencyInjection
//Assert
//Check descriptons in service collection
//Check descriptions in service collection
var descriptions = _services.Where(s => s.ServiceType == typeof(IMyService)).ToList();
descriptions.Count.ShouldBe(2);
descriptions[0].ImplementationType.ShouldBe(typeof(FirstImplOfMyService));
@ -113,7 +113,7 @@ namespace Microsoft.Extensions.DependencyInjection
//Assert
//Check descriptons in service collection
//Check descriptions in service collection
var descriptions = _services.Where(s => s.ServiceType == typeof(IMyService)).ToList();
descriptions.Count.ShouldBe(1);
descriptions[0].ImplementationType.ShouldBe(typeof(FirstImplOfMyService));
@ -139,7 +139,7 @@ namespace Microsoft.Extensions.DependencyInjection
//Assert
//Check descriptons in service collection
//Check descriptions in service collection
var descriptions = _services.Where(s => s.ServiceType == typeof(IMyService)).ToList();
descriptions.Count.ShouldBe(1);
descriptions[0].ImplementationType.ShouldBe(typeof(MyServiceReplacesIMyService));

@ -39,7 +39,7 @@ namespace Volo.Abp.BackgroundJobs
public virtual DateTime? LastTryTime { get; set; }
/// <summary>
/// This is true if this job is continously failed and will not be executed again.
/// This is true if this job is continuously failed and will not be executed again.
/// </summary>
public virtual bool IsAbandoned { get; set; }

Loading…
Cancel
Save