Move namespace

This commit is contained in:
bao-qian 2015-11-09 01:32:33 +00:00
parent 60f06f97fa
commit da5a930e89
21 changed files with 30 additions and 33 deletions

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Wox.Core.Exception;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
namespace Wox.Plugin.Program.ProgramSources

View file

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Wox.Core.Exception;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
using Wox.Plugin;

View file

@ -5,7 +5,7 @@ using System.Reflection;
using System.Threading;
using System.Windows.Forms;
using Newtonsoft.Json;
using Wox.Core.Exception;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
using Wox.Plugin;

View file

@ -2,8 +2,8 @@
using System.IO;
using System.Linq;
using Newtonsoft.Json;
using Wox.Core.Exception;
using Wox.Core.UserSettings;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
using Wox.Plugin;

View file

@ -4,10 +4,10 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Threading;
using Wox.Core.Exception;
using Wox.Core.i18n;
using Wox.Core.UI;
using Wox.Core.UserSettings;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
using Wox.Plugin;
using Stopwatch = Wox.Infrastructure.Stopwatch;
@ -30,7 +30,7 @@ namespace Wox.Core.Plugin
public static IEnumerable<PluginPair> AllPlugins { get; private set; }
public static List<PluginPair> GlobalPlugins { get; } = new List<PluginPair>();
public static Dictionary<string, PluginPair> NonGlobalPlugins { get; } = new Dictionary<string, PluginPair>();
public static Dictionary<string, PluginPair> NonGlobalPlugins { get; set; } = new Dictionary<string, PluginPair>();
private static IEnumerable<PluginPair> InstantQueryPlugins { get; set; }
public static IPublicAPI API { private set; get; }

View file

@ -1,5 +1,5 @@
using System;
using Wox.Core.Exception;
using Wox.Infrastructure.Exception;
namespace Wox.Core.Updater
{

View file

@ -4,9 +4,9 @@ using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows;
using Wox.Core.Exception;
using Wox.Core.UI;
using Wox.Core.UserSettings;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
using Wox.Plugin;

View file

@ -5,7 +5,7 @@ using System.Text;
using System.Xml;
using Microsoft.Win32;
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
public class ExceptionFormatter
{

View file

@ -1,4 +1,4 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
/// <summary>
/// Base Wox Exceptions

View file

@ -1,4 +1,4 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
/// <summary>
/// Represent exceptions that wox can't handle and MUST close running Wox.

View file

@ -1,4 +1,4 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
public class WoxHttpException :WoxException
{

View file

@ -1,6 +1,6 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
public class WoxI18nException:WoxException
public class WoxI18nException : WoxException
{
public WoxI18nException(string msg) : base(msg)
{

View file

@ -1,4 +1,4 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
public class WoxJsonRPCException : WoxException
{

View file

@ -1,4 +1,4 @@
namespace Wox.Core.Exception
namespace Wox.Infrastructure.Exception
{
public class WoxPluginException : WoxException
{

View file

@ -1,5 +1,4 @@
using System;
using System.IO;
using System.IO;
using System.Net;
using System.Text;
using Wox.Plugin;
@ -55,7 +54,7 @@ namespace Wox.Infrastructure.Http
}
}
}
catch (Exception e)
catch (System.Exception e)
{
Logger.Log.Error(e);
return string.Empty;
@ -108,7 +107,7 @@ namespace Wox.Infrastructure.Http
}
}
}
catch (Exception e)
catch (System.Exception e)
{
Logger.Log.Error(e);
return string.Empty;

View file

@ -1,6 +1,4 @@
using System;
using NLog;
using Wox.Core.Exception;
using NLog;
namespace Wox.Infrastructure.Logger
{
@ -8,7 +6,7 @@ namespace Wox.Infrastructure.Logger
{
private static NLog.Logger logger = LogManager.GetCurrentClassLogger();
public static void Error(Exception e)
public static void Error(System.Exception e)
{
#if DEBUG
throw e;
@ -35,7 +33,7 @@ namespace Wox.Infrastructure.Logger
logger.Warn(msg);
}
public static void Fatal(Exception e)
public static void Fatal(System.Exception e)
{
#if DEBUG
throw e;

View file

@ -42,7 +42,7 @@ namespace Wox.Infrastructure.Storage
serializedObject = LoadDefault();
#if (DEBUG)
{
throw new Exception("deserialize failed");
throw new System.Exception("deserialize failed");
}
#endif
}
@ -53,7 +53,7 @@ namespace Wox.Infrastructure.Storage
}
}
}
catch (Exception e)
catch (System.Exception e)
{
Log.Error(e);
serializedObject = LoadDefault();
@ -101,7 +101,7 @@ namespace Wox.Infrastructure.Storage
binaryFormatter.Serialize(fileStream, serializedObject);
fileStream.Close();
}
catch (Exception e)
catch (System.Exception e)
{
Log.Error(e);
#if (DEBUG)

View file

@ -25,7 +25,7 @@ namespace Wox.Infrastructure.Storage
{
serializedObject = JsonConvert.DeserializeObject<T>(json);
}
catch (Exception)
catch (System.Exception)
{
serializedObject = LoadDefault();
}

View file

@ -115,7 +115,7 @@ namespace Wox.Infrastructure
needsCommandLine = peHeaderReader.OptionalHeader64.Subsystem == 3;
}
catch (Exception)
catch (System.Exception)
{
// Error reading the headers. We will try to run the command the standard way.
needsCommandLine = false;
@ -149,7 +149,7 @@ namespace Wox.Infrastructure
{
global::System.Diagnostics.Process.Start(startInfo);
}
catch (Exception e)
catch (System.Exception e)
{
if (!startInfo.ErrorDialog)
throw e;

View file

@ -1,6 +1,6 @@
using NUnit.Framework;
using Wox.Core.Exception;
using Wox.Core.Plugin;
using Wox.Infrastructure.Exception;
namespace Wox.Test.Plugins
{

View file

@ -1,6 +1,6 @@
using System;
using System.Windows.Threading;
using Wox.Core.Exception;
using Wox.Infrastructure.Exception;
using Wox.Infrastructure.Logger;
namespace Wox.Helper