Skip to content

Commit 67131fd

Browse files
committed
Improve grammar and formatting in docs
1 parent 92d134c commit 67131fd

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

doc/WebSite/Module-System.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ applications. The simplest module definition can be as shown below:
2222
}
2323
}
2424

25-
The Module definition class is responsible for registering it's classes via
25+
The Module definition class is responsible for registering its classes via
2626
[dependency injection](Dependency-Injection.md), if needed (it can be done
2727
conventionally as shown above). It can also configure the application
2828
and other modules, add new features to the application, and so on...
@@ -138,7 +138,7 @@ overriding the **Application\_Start** in the **global.asax** as shown below:
138138
##### Controllers in PlugIns
139139

140140
If your modules include MVC or Web API Controllers,
141-
ASP.NET can not investigate your controllers. To overcome this issue,
141+
ASP.NET cannot investigate your controllers. To overcome this issue,
142142
you can change the global.asax file like below:
143143

144144
using System.Web;

doc/WebSite/Plugin.md

+12-8
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace DatabaseMaintainer
3939
}
4040
```
4141

42-
- Add a background worker
42+
- Add a background worker
4343

4444
````c#
4545
using System;
@@ -82,21 +82,23 @@ namespace DatabaseMaintainer
8282
}
8383
````
8484

85-
Project solution looks like following:
85+
Project solution looks like the following:
8686

8787
<img src="images/plugin-solution.png" alt="plugin-solution" class="img-thumbnail" />
8888

8989
#### Build the Plugin
9090

91-
Build project in release mode. `DatabaseMaintainer.dll` will be created in folder
91+
Build project in release mode. `DatabaseMaintainer.dll` will be created in the folder
9292
`DatabaseMaintainer\DatabaseMaintainer\bin\Release\netcoreapp2.1`.
9393

9494
### Add Plugin to the Application
9595

96-
Following example, it will be loaded from `wwwroot` folder. You can change plugins folder location.
97-
First following line should be added to application `Startup.cs` that you want to add to application (MVC or Host).
96+
In the following example, it will be loaded from the `wwwroot` folder. You can change the plugins folder location.
97+
First, the following line should be added to the `Startup.cs` of the application (MVC or Host) that you want to add the plugin to.
9898

99-
`options.PlugInSources.AddFolder(Path.Combine(_hostingEnvironment.WebRootPath, "Plugins"), SearchOption.AllDirectories);`
99+
```c#
100+
options.PlugInSources.AddFolder(Path.Combine(_hostingEnvironment.WebRootPath, "Plugins"), SearchOption.AllDirectories);
101+
```
100102

101103
Latest Startup.cs
102104

@@ -124,7 +126,9 @@ public class Startup
124126
options.PlugInSources.AddFolder(Path.Combine(_hostingEnvironment.WebRootPath, "Plugins"), SearchOption.AllDirectories);
125127
);
126128
}
127-
...
129+
130+
...
131+
}
128132
```
129133

130134
And copy `DatabaseMaintainer.dll` from plugin to application `.Mvc/wwwroot/Plugins` folder.
@@ -133,6 +137,6 @@ And copy `DatabaseMaintainer.dll` from plugin to application `.Mvc/wwwroot/Plugi
133137

134138
### Run the Application
135139

136-
Run project and see Logs.txt to check if it works.
140+
Run the project and see Logs.txt to check if it works.
137141

138142
<img src="images/plugin-log.png" alt="plugin-log" class="img-thumbnail" />

0 commit comments

Comments
 (0)