Corrects spelling of localStorateDir to localStorageDir

This commit is contained in:
Sebastiaan Janssen
2016-01-06 12:17:48 +01:00
parent b882806847
commit 43e983e27a
2 changed files with 8 additions and 8 deletions

View File

@@ -44,7 +44,7 @@ namespace UmbracoExamine.LocalStorage
public void Initialize(NameValueCollection config, string configuredPath, FSDirectory baseLuceneDirectory, Analyzer analyzer, LocalStorageType localStorageType)
{
//this is the default
ILocalStorageDirectory localStorateDir = new CodeGenLocalStorageDirectory();
ILocalStorageDirectory localStorageDir = new CodeGenLocalStorageDirectory();
if (config["tempStorageDirectory"] != null)
{
//try to get the type
@@ -53,7 +53,7 @@ namespace UmbracoExamine.LocalStorage
{
try
{
localStorateDir = (ILocalStorageDirectory)Activator.CreateInstance(dirType);
localStorageDir = (ILocalStorageDirectory)Activator.CreateInstance(dirType);
}
catch (Exception ex)
{
@@ -64,8 +64,8 @@ namespace UmbracoExamine.LocalStorage
}
}
var tempPath = localStorateDir.GetLocalStorageDirectory(config, configuredPath);
if (tempPath == null) throw new InvalidOperationException("Could not resolve a temp location from the " + localStorateDir.GetType() + " specified");
var tempPath = localStorageDir.GetLocalStorageDirectory(config, configuredPath);
if (tempPath == null) throw new InvalidOperationException("Could not resolve a temp location from the " + localStorageDir.GetType() + " specified");
TempPath = tempPath.FullName;
switch (localStorageType)

View File

@@ -81,7 +81,7 @@ namespace UmbracoExamine
if (attemptUseTempStorage)
{
//this is the default
ILocalStorageDirectory localStorateDir = new CodeGenLocalStorageDirectory();
ILocalStorageDirectory localStorageDir = new CodeGenLocalStorageDirectory();
if (config["tempStorageDirectory"] != null)
{
//try to get the type
@@ -90,7 +90,7 @@ namespace UmbracoExamine
{
try
{
localStorateDir = (ILocalStorageDirectory)Activator.CreateInstance(dirType);
localStorageDir = (ILocalStorageDirectory)Activator.CreateInstance(dirType);
}
catch (Exception ex)
{
@@ -102,8 +102,8 @@ namespace UmbracoExamine
}
var indexSet = IndexSets.Instance.Sets[IndexSetName];
var configuredPath = indexSet.IndexPath;
var tempPath = localStorateDir.GetLocalStorageDirectory(config, configuredPath);
if (tempPath == null) throw new InvalidOperationException("Could not resolve a temp location from the " + localStorateDir.GetType() + " specified");
var tempPath = localStorageDir.GetLocalStorageDirectory(config, configuredPath);
if (tempPath == null) throw new InvalidOperationException("Could not resolve a temp location from the " + localStorageDir.GetType() + " specified");
_localTempPath = tempPath.FullName;
_localStorageType = attemptUseTempStorage.Result;
}