();
- foreach(var n in Enum.GetNames(typeof(DumpType)))
+ foreach (var n in Enum.GetNames(typeof(DumpType)))
{
_dumptypes.Add(CreateSelectItem(n));
}
}
- return _dumptypes;
+ return _dumptypes;
}
- private static SelectListItem CreateSelectItem(String dumpType)
+
+ private static SelectListItem CreateSelectItem(string dumpType)
{
- SelectListItem sel = new SelectListItem();
- sel.Text = dumpType;
- sel.Value = dumpType;
+ var sel = new SelectListItem
+ {
+ Text = dumpType,
+ Value = dumpType
+ };
+
return sel;
}
}
-
-
}
diff --git a/DeveloperTools/Models/RemoteEventModel.cs b/DeveloperTools/Models/RemoteEventModel.cs
index 1b054ca..b05908f 100644
--- a/DeveloperTools/Models/RemoteEventModel.cs
+++ b/DeveloperTools/Models/RemoteEventModel.cs
@@ -1,10 +1,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
-using System.Text;
-using System.Reflection;
-using System.Collections;
-using EPiServer.Events.Clients;
+using EPiServer.Events.Clients.Internal;
namespace DeveloperTools.Models
{
@@ -31,8 +28,8 @@ public RemoteEventsModel()
[Serializable]
public class RemoteEventModel
{
- public String Name { get; set; }
- public String Guid { get; set; }
+ public string Name { get; set; }
+ public string Guid { get; set; }
public long NumberOfSent { get; set; }
public long NumberOfReceived { get; set; }
}
@@ -44,6 +41,5 @@ public class SendRemoteEventModel
public string Param { get; set; }
public int NumberOfevents { get; set; }
public int NumberOfeventsSent { get; set; }
-
}
}
diff --git a/DeveloperTools/Models/RouteModel.cs b/DeveloperTools/Models/RouteModel.cs
index 3d1546a..45a255b 100644
--- a/DeveloperTools/Models/RouteModel.cs
+++ b/DeveloperTools/Models/RouteModel.cs
@@ -1,9 +1,4 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Reflection;
-using System.Web.Routing;
+using System.Web.Routing;
namespace DeveloperTools.Models
{
@@ -16,11 +11,10 @@ public class RouteModel
public string Defaults { get; set; }
public string RouteHandler { get; set; }
public string DataTokens { get; set; }
- public string Values{ get; set; }
+ public string Values { get; set; }
public string Constraints { get; set; }
public string RouteExistingFiles { get; set; }
- public bool IsSelected{ get; set; }
+ public bool IsSelected { get; set; }
public RouteBase Route { get; set; }
}
-
}
diff --git a/DeveloperTools/Properties/AssemblyInfo.cs b/DeveloperTools/Properties/AssemblyInfo.cs
index 96dbcb5..d7d9966 100644
--- a/DeveloperTools/Properties/AssemblyInfo.cs
+++ b/DeveloperTools/Properties/AssemblyInfo.cs
@@ -1,35 +1,16 @@
using System.Reflection;
-using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
-// General Information about an assembly is controlled through the following
-// set of attributes. Change these attribute values to modify the information
-// associated with an assembly.
[assembly: AssemblyTitle("DeveloperTools")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("")]
+[assembly: AssemblyCompany("EPiServer")]
[assembly: AssemblyProduct("DeveloperTools")]
-[assembly: AssemblyCopyright("Copyright © 2012")]
+[assembly: AssemblyCopyright("Copyright © 2012-2016")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
-// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
-
-// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("15a30f61-0a54-4a91-b98f-5b30eb22b6f5")]
-
-// Version information for an assembly consists of the following four values:
-//
-// Major Version
-// Minor Version
-// Build Number
-// Revision
-//
-// You can specify all the values or you can default the Revision and Build Numbers
-// by using the '*' as shown below:
-[assembly: AssemblyVersion("1.0.1.0")]
-[assembly: AssemblyFileVersion("1.0.1.0")]
+[assembly: AssemblyVersion("2.0.0.0")]
+[assembly: AssemblyFileVersion("2.0.0.0")]
+[assembly: AssemblyInformationalVersion("2.0.0")]
diff --git a/DeveloperTools/Views/ContentTypeAnalyzer/Index.aspx b/DeveloperTools/Views/ContentTypeAnalyzer/Index.aspx
index df89c05..d25dd91 100644
--- a/DeveloperTools/Views/ContentTypeAnalyzer/Index.aspx
+++ b/DeveloperTools/Views/ContentTypeAnalyzer/Index.aspx
@@ -11,17 +11,17 @@
Show content type Synchronization status during initialization (if the content type be changed from admin you need to start the site to see changes)
-
-
+
+
| Type |
DisplayName |
- Name |
- SynchronizationStatus |
- Description |
+ Name |
+ SynchronizationStatus |
+ Description |
-
-
-
+
+
+
<% foreach (var m in Model){%>
| Content Type Model |
diff --git a/DeveloperTools/Views/IOC/Index.aspx b/DeveloperTools/Views/IOC/Index.aspx
index 3edbc0f..b43afac 100644
--- a/DeveloperTools/Views/IOC/Index.aspx
+++ b/DeveloperTools/Views/IOC/Index.aspx
@@ -16,15 +16,15 @@
-
-
+
+
| PluginType |
- ConcreteType |
- Scope |
- Is Default |
-
-
-
+ ConcreteType |
+ Scope |
+ Is Default |
+
+
+
<% foreach (IOCEntry entry in Model.IOCEntries)
{ %>
diff --git a/DeveloperTools/Views/LoadedAssemblies/Index.aspx b/DeveloperTools/Views/LoadedAssemblies/Index.aspx
index cefe948..b53fe5f 100644
--- a/DeveloperTools/Views/LoadedAssemblies/Index.aspx
+++ b/DeveloperTools/Views/LoadedAssemblies/Index.aspx
@@ -15,15 +15,15 @@
Dumps all loaded assemblies in the current AppDomain
-
-
+
+
| Name |
- AssemblyVersion |
- FileVersion |
- Location |
-
-
-
+ AssemblyVersion |
+ FileVersion |
+ Location |
+
+
+
<% foreach (AssemblyInfo entry in Model.Assemblies)
{ %>
diff --git a/DeveloperTools/Views/LogViewer/Show.aspx b/DeveloperTools/Views/LogViewer/Show.aspx
index 403867c..e05ca17 100644
--- a/DeveloperTools/Views/LogViewer/Show.aspx
+++ b/DeveloperTools/Views/LogViewer/Show.aspx
@@ -34,16 +34,16 @@ Start/stop in-memory appender: <%= !Model.IsStarted ? Html.ActionLink("
-
-
+
+
| Date |
- Message |
- LoggerName |
+ Message |
+ LoggerName |
Level |
- ThreadName |
-
-
-
+ ThreadName |
+
+
+
<% foreach (log4net.Core.LoggingEvent logevent in Model.LoggingEvents){%>
<%if (logevent.Level == Level.Error)%>
<%Response.Write("");%>
@@ -58,7 +58,7 @@ Start/stop in-memory appender: <%= !Model.IsStarted ? Html.ActionLink("
| <%=logevent.ThreadName.ToString()%> |
<%} %>
-
+