Permalink
Browse files

re-add typos + fixes

  • Loading branch information...
1 parent 82d1d05 commit c422967571b5666d2a7fadba2db3f631306b2449 @mythz mythz committed Nov 12, 2012
View
85 NuGet/ServiceStack.Host.Mvc/content/README.txt
@@ -1,43 +1,44 @@
-You *MUST* register ServiceStacks '/api' path by adding the line below to MvcApplication.RegisterRoutes(RouteCollection) in the Global.asax:
-
- routes.IgnoreRoute("api/{*pathInfo}");
- routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); //Prevent exceptions for favicon
-
-
-To enable the Mini Profiler add the following lines in to MvcApplication in Global.asax.cs:
-
-
- protected void Application_BeginRequest(object src, EventArgs e)
- {
- if (Request.IsLocal)
- ServiceStack.MiniProfiler.Profiler.Start();
- }
-
- protected void Application_EndRequest(object src, EventArgs e)
- {
- ServiceStack.MiniProfiler.Profiler.Stop();
- }
-
-
-For more info on the MiniProfiler see v3.09 of the https://github.com/ServiceStack/ServiceStack/wiki/Release-Notes
-
-
-The Urls for metadata page and included Services:
-
- * /api/metadata - Auto generated metadata pages
- * /api/hello - Simple Hello World Service see: http://www.servicestack.net/ServiceStack.Hello/
- * /api/todos - Simple REST Service see: http://www.servicestack.net/Backbone.Todos/
-
- * /default.htm - Backbone.js TODO application talking to the TODO REST service at /api/todos
-
-
-
-For more info about ServiceStack please visit: http://www.servicestack.net
-
-Feel free to ask questions about ServiceStack on:
-http://stackoverflow.com/
-
-or on the mailing Group at:
-http://groups.google.com/group/servicestack
-
+You *MUST* register ServiceStacks '/api' path by adding the lines below to MvcApplication.RegisterRoutes(RouteCollection) in the Global.asax:
+
+ routes.IgnoreRoute("api/{*pathInfo}");
+ routes.IgnoreRoute("{*favicon}", new { favicon = @"(.*/)?favicon.ico(/.*)?" }); //Prevent exceptions for favicon
+
+Place them before the current entries the method.
+
+To enable the Mini Profiler add the following lines in to MvcApplication in Global.asax.cs:
+
+
+ protected void Application_BeginRequest(object src, EventArgs e)
+ {
+ if (Request.IsLocal)
+ ServiceStack.MiniProfiler.Profiler.Start();
+ }
+
+ protected void Application_EndRequest(object src, EventArgs e)
+ {
+ ServiceStack.MiniProfiler.Profiler.Stop();
+ }
+
+
+For more info on the MiniProfiler see v3.09 of the https://github.com/ServiceStack/ServiceStack/wiki/Release-Notes
+
+
+The Urls for metadata page and included Services:
+
+ * /api/metadata - Auto generated metadata pages
+ * /api/hello - Simple Hello World Service see: http://www.servicestack.net/ServiceStack.Hello/
+ * /api/todos - Simple REST Service see: http://www.servicestack.net/Backbone.Todos/
+
+ * /default.htm - Backbone.js TODO application talking to the TODO REST service at /api/todos
+
+
+
+For more info about ServiceStack please visit: http://www.servicestack.net
+
+Feel free to ask questions about ServiceStack on:
+http://stackoverflow.com/
+
+or on the mailing Group at:
+http://groups.google.com/group/servicestack
+
Enjoy!
View
2 src/ServiceStack.Common/ServiceModel/Validation/ValidationError.cs
@@ -6,7 +6,7 @@
namespace ServiceStack.Validation
{
/// <summary>
- /// The exception which is thrown when a validation error occured.
+ /// The exception which is thrown when a validation error occurred.
/// This validation is serialized in a extra clean and human-readable way by ServiceStack.
/// </summary>
public class ValidationError : ArgumentException
View
4 src/ServiceStack.ServiceInterface/ServiceBase.cs
@@ -124,7 +124,7 @@ protected object AfterEachRequest(TRequest requestDto, object response)
}
}
- return response.IsErrorResponse() ? response : OnAfterExecute(response); //only call OnAfterExecute if no exception occured
+ return response.IsErrorResponse() ? response : OnAfterExecute(response); //only call OnAfterExecute if no exception occurred
}
/// <summary>
@@ -199,7 +199,7 @@ public T TryResolve<T>()
/// <summary>
/// Called after the request is Executed. Override to decorate the response dto.
- /// This method is only called if no exception occured while executing the service.
+ /// This method is only called if no exception occurred while executing the service.
/// </summary>
/// <param name="response"></param>
/// <returns></returns>
View
6 src/ServiceStack/ServiceHost/MqHttpRequest.cs
@@ -58,7 +58,11 @@ public string ResponseContentType
set { requestContext.ResponseContentType = value; }
}
- public Dictionary<string, object> Items { get; set; }
+ private Dictionary<string, object> items;
+ public Dictionary<string, object> Items
+ {
+ get { return items ?? (items = new Dictionary<string, object>()); }
+ }
private NameValueCollection headers;
public NameValueCollection Headers
View
2 src/ServiceStack/ServiceHost/ServiceManager.cs
@@ -26,8 +26,6 @@ public ServiceManager(params Assembly[] assembliesWithServices)
+ "To register your services, please provide the assemblies where your web services are defined.");
this.Container = new Container();
- // this.ServiceController = new ServiceController(
- // () => assembliesWithServices.ToList().SelectMany(x => x.GetTypes()));
this.ServiceController = new ServiceController(() => GetAssemblyTypes(assembliesWithServices));
}

0 comments on commit c422967

Please sign in to comment.