Browse Source

additional typo fixes.

pull/6365/head
Ilkay Ilknur 5 years ago
parent
commit
117fb8cd4e
  1. 2
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundleTypeDefinition.cs
  2. 12
      framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs

2
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundleTypeDefinition.cs

@ -6,6 +6,6 @@ namespace Volo.Abp.Cli.Bundling
{
public int Level { get; set; }
public Type BundleContributerType { get; set; }
public Type BundleContributorType { get; set; }
}
}

12
framework/src/Volo.Abp.Cli.Core/Volo/Abp/Cli/Bundling/BundlingService.cs

@ -89,7 +89,7 @@ namespace Volo.Abp.Cli.Bundling
foreach (var bundleDefinition in bundleDefinitions)
{
var contributor = CreateContributerInstance(bundleDefinition.BundleContributerType);
var contributor = CreateContributorInstance(bundleDefinition.BundleContributorType);
contributor.AddScripts(scriptContext);
}
@ -103,7 +103,7 @@ namespace Volo.Abp.Cli.Bundling
foreach (var bundleDefinition in bundleDefinitions)
{
var contributor = CreateContributerInstance(bundleDefinition.BundleContributerType);
var contributor = CreateContributorInstance(bundleDefinition.BundleContributorType);
contributor.AddStyles(styleContext);
}
@ -185,9 +185,9 @@ namespace Volo.Abp.Cli.Bundling
return builder.ToString();
}
private IBundleContributor CreateContributerInstance(Type bundleContributerType)
private IBundleContributor CreateContributorInstance(Type bundleContributorType)
{
return (IBundleContributor)Activator.CreateInstance(bundleContributerType);
return (IBundleContributor)Activator.CreateInstance(bundleContributorType);
}
private void FindBundleContributorsRecursively(
@ -208,7 +208,7 @@ namespace Volo.Abp.Cli.Bundling
if (bundleContributors.Any())
{
var bundleContributor = bundleContributors[0];
var definition = bundleDefinitions.SingleOrDefault(t => t.BundleContributerType == bundleContributor);
var definition = bundleDefinitions.SingleOrDefault(t => t.BundleContributorType == bundleContributor);
if (definition != null)
{
if (definition.Level < level)
@ -221,7 +221,7 @@ namespace Volo.Abp.Cli.Bundling
bundleDefinitions.Add(new BundleTypeDefinition
{
Level = level,
BundleContributerType = bundleContributor
BundleContributorType = bundleContributor
});
}
}

Loading…
Cancel
Save