Skip to content

Commit 6c213a5

Browse files
committed
Code comments added
1 parent 8c69c08 commit 6c213a5

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

src/JQDT.MVC/JQDataTableAttribute.cs

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,27 +57,27 @@ public override void OnActionExecuted(ActionExecutedContext filterContext)
5757
}
5858

5959
/// <summary>
60-
/// Called after all data processors execute.
60+
/// Called before all data processors execute.
6161
/// </summary>
6262
/// <param name="data">The data.</param>
6363
/// <param name="requestInfoModel">The request information model.</param>
64-
public virtual void OnDataProcessed(ref object data, RequestInfoModel requestInfoModel)
64+
public virtual void OnDataProcessing(ref object data, RequestInfoModel requestInfoModel)
6565
{
6666
// No data processing logic by default;
6767
}
6868

6969
/// <summary>
70-
/// Called before all data processors execute.
70+
/// Called after all data processors execute.
7171
/// </summary>
7272
/// <param name="data">The data.</param>
7373
/// <param name="requestInfoModel">The request information model.</param>
74-
public virtual void OnDataProcessing(ref object data, RequestInfoModel requestInfoModel)
74+
public virtual void OnDataProcessed(ref object data, RequestInfoModel requestInfoModel)
7575
{
7676
// No data processing logic by default;
7777
}
7878

7979
/// <summary>
80-
/// Called when [search data processing].
80+
/// Called before search data processor executes.
8181
/// </summary>
8282
/// <param name="data">The data.</param>
8383
/// <param name="requestInfoModel">The request information model.</param>
@@ -87,7 +87,7 @@ public virtual void OnSearchDataProcessing(ref object data, RequestInfoModel req
8787
}
8888

8989
/// <summary>
90-
/// Called when [search data processed].
90+
/// Called after search data processor executes.
9191
/// </summary>
9292
/// <param name="data">The data.</param>
9393
/// <param name="requestInfoModel">The request information model.</param>
@@ -97,7 +97,7 @@ public virtual void OnSearchDataProcessed(ref object data, RequestInfoModel requ
9797
}
9898

9999
/// <summary>
100-
/// Called when [custom filters data processing].
100+
/// Called before custom filters data processor executes.
101101
/// </summary>
102102
/// <param name="data">The data.</param>
103103
/// <param name="requestInfoModel">The request information model.</param>
@@ -107,7 +107,7 @@ public virtual void OnCustomFiltersDataProcessing(ref object data, RequestInfoMo
107107
}
108108

109109
/// <summary>
110-
/// Called when [custom filters data processed].
110+
/// Called after custom filters data processor executes.
111111
/// </summary>
112112
/// <param name="data">The data.</param>
113113
/// <param name="requestInfoModel">The request information model.</param>
@@ -117,7 +117,7 @@ public virtual void OnCustomFiltersDataProcessed(ref object data, RequestInfoMod
117117
}
118118

119119
/// <summary>
120-
/// Called when [columns filter data processing].
120+
/// Called before columns filters data processor executes.
121121
/// </summary>
122122
/// <param name="data">The data.</param>
123123
/// <param name="requestInfoModel">The request information model.</param>
@@ -127,7 +127,7 @@ public virtual void OnColumnsFilterDataProcessing(ref object data, RequestInfoMo
127127
}
128128

129129
/// <summary>
130-
/// Called when [columns filter data processed].
130+
/// Called after columns filters data processor executes.
131131
/// </summary>
132132
/// <param name="data">The data.</param>
133133
/// <param name="requestInfoModel">The request information model.</param>
@@ -137,7 +137,7 @@ public virtual void OnColumnsFilterDataProcessed(ref object data, RequestInfoMod
137137
}
138138

139139
/// <summary>
140-
/// Called when [sort data processing].
140+
/// Called before sort data processor executes.
141141
/// </summary>
142142
/// <param name="data">The data.</param>
143143
/// <param name="requestInfoModel">The request information model.</param>
@@ -147,7 +147,7 @@ public virtual void OnSortDataProcessing(ref object data, RequestInfoModel reque
147147
}
148148

149149
/// <summary>
150-
/// Called when [sort data processed].
150+
/// Called after sort data processor executes.
151151
/// </summary>
152152
/// <param name="data">The data.</param>
153153
/// <param name="requestInfoModel">The request information model.</param>
@@ -157,7 +157,7 @@ public virtual void OnSortDataProcessed(ref object data, RequestInfoModel reques
157157
}
158158

159159
/// <summary>
160-
/// Called when [paging data processing].
160+
/// Called before paging data processor executes.
161161
/// </summary>
162162
/// <param name="data">The data.</param>
163163
/// <param name="requestInfoModel">The request information model.</param>
@@ -167,7 +167,7 @@ public virtual void OnPagingDataProcessing(ref object data, RequestInfoModel req
167167
}
168168

169169
/// <summary>
170-
/// Called when [paging data processed].
170+
/// Called after paging data processor executes.
171171
/// </summary>
172172
/// <param name="data">The data.</param>
173173
/// <param name="requestInfoModel">The request information model.</param>
@@ -180,8 +180,8 @@ private void PerformOnActionExecuted(ActionExecutedContext filterContext)
180180
{
181181
var dataCollectionType = filterContext.Controller.ViewData.Model.GetType();
182182
var applicationInitizlizationFunction = ExecuteFunctionProvider<ActionExecutedContext>.GetAppInicializationFunc(dataCollectionType, typeof(ApplicationMvc<>));
183-
var formModelBinder = serviceLocator.GetFormModelBinder();
184-
var mvcApplication = applicationInitizlizationFunction(filterContext, serviceLocator, formModelBinder);
183+
var formModelBinder = this.serviceLocator.GetFormModelBinder();
184+
var mvcApplication = applicationInitizlizationFunction(filterContext, this.serviceLocator, formModelBinder);
185185
this.SubscribeToEvents(mvcApplication);
186186
var result = (ResultModel)mvcApplication.Execute();
187187

src/JQDT/Application/ApplicationBase.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,62 +32,62 @@ public ApplicationBase(IServiceLocator serviceLocator, IFormModelBinder modelBin
3232
}
3333

3434
/// <summary>
35-
/// Occurs before the data is processed.
35+
/// Occurs before all data processors execute
3636
/// </summary>
3737
public event DataProcessorEventHandler OnDataProcessingEvent = delegate { };
3838

3939
/// <summary>
40-
/// Occurs when after the data is processed.
40+
/// Occurs after all data processors execute
4141
/// </summary>
4242
public event DataProcessorEventHandler OnDataProcessedEvent = delegate { };
4343

4444
/// <summary>
45-
/// Occurs before search data processing.
45+
/// Occurs before search data processor executes
4646
/// </summary>
4747
public event DataProcessorEventHandler OnSearchDataProcessingEvent = delegate { };
4848

4949
/// <summary>
50-
/// Occurs after search data processing.
50+
/// Occurs after search data processor executes
5151
/// </summary>
5252
public event DataProcessorEventHandler OnSearchDataProcessedEvent = delegate { };
5353

5454
/// <summary>
55-
/// Occurs before custom filters data processing.
55+
/// Occurs before custom filters data processor executes
5656
/// </summary>
5757
public event DataProcessorEventHandler OnCustomFiltersDataProcessingEvent = delegate { };
5858

5959
/// <summary>
60-
/// Occurs after custom filters data processing.
60+
/// Occurs after custom filters data processor executes
6161
/// </summary>
6262
public event DataProcessorEventHandler OnCustomFiltersDataProcessedEvent = delegate { };
6363

6464
/// <summary>
65-
/// Occurs when [on columns filter data processing event].
65+
/// Occurs before column filters data processor executes
6666
/// </summary>
6767
public event DataProcessorEventHandler OnColumnsFilterDataProcessingEvent = delegate { };
6868

6969
/// <summary>
70-
/// Occurs when [on columns filter data processed event].
70+
/// Occurs after column filters data processor executes
7171
/// </summary>
7272
public event DataProcessorEventHandler OnColumnsFilterDataProcessedEvent = delegate { };
7373

7474
/// <summary>
75-
/// Occurs when [on sort data processing event].
75+
/// Occurs before sort data processor executes
7676
/// </summary>
7777
public event DataProcessorEventHandler OnSortDataProcessingEvent = delegate { };
7878

7979
/// <summary>
80-
/// Occurs when [on sort data processed event].
80+
/// Occurs after sort data processor executes
8181
/// </summary>
8282
public event DataProcessorEventHandler OnSortDataProcessedEvent = delegate { };
8383

8484
/// <summary>
85-
/// Occurs when [on paging data processing event].
85+
/// Occurs before paging data processor executes
8686
/// </summary>
8787
public event DataProcessorEventHandler OnPagingDataProcessingEvent = delegate { };
8888

8989
/// <summary>
90-
/// Occurs when [on paging data processed event].
90+
/// Occurs after paging data processor executes
9191
/// </summary>
9292
public event DataProcessorEventHandler OnPagingDataProcessedEvent = delegate { };
9393

src/JQDT/Application/IApplicationBase.cs

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,62 +9,62 @@
99
public interface IApplicationBase
1010
{
1111
/// <summary>
12-
/// Occurs when [on data processing event].
12+
/// Occurs before all data processors execute
1313
/// </summary>
1414
event DataProcessorEventHandler OnDataProcessingEvent;
1515

1616
/// <summary>
17-
/// Occurs when [on data processed].
17+
/// Occurs after all data processors execute
1818
/// </summary>
1919
event DataProcessorEventHandler OnDataProcessedEvent;
2020

2121
/// <summary>
22-
/// Occurs when [on search data processing event].
22+
/// Occurs before search data processor executes
2323
/// </summary>
2424
event DataProcessorEventHandler OnSearchDataProcessingEvent;
2525

2626
/// <summary>
27-
/// Occurs when [on search data processed event].
27+
/// Occurs after search data processor executes
2828
/// </summary>
2929
event DataProcessorEventHandler OnSearchDataProcessedEvent;
3030

3131
/// <summary>
32-
/// Occurs when [on custom filters data processing event].
32+
/// Occurs before custom filters data processor executes
3333
/// </summary>
3434
event DataProcessorEventHandler OnCustomFiltersDataProcessingEvent;
3535

3636
/// <summary>
37-
/// Occurs when [on custom filters data processed event].
37+
/// Occurs after custom filters data processor executes
3838
/// </summary>
3939
event DataProcessorEventHandler OnCustomFiltersDataProcessedEvent;
4040

4141
/// <summary>
42-
/// Occurs when [on columns filter data processing event].
42+
/// Occurs before column filters data processor executes
4343
/// </summary>
4444
event DataProcessorEventHandler OnColumnsFilterDataProcessingEvent;
4545

4646
/// <summary>
47-
/// Occurs when [on columns filter data processed event].
47+
/// Occurs after column filters data processor executes
4848
/// </summary>
4949
event DataProcessorEventHandler OnColumnsFilterDataProcessedEvent;
5050

5151
/// <summary>
52-
/// Occurs when [on sort data processing event].
52+
/// Occurs before sort data processor executes
5353
/// </summary>
5454
event DataProcessorEventHandler OnSortDataProcessingEvent;
5555

5656
/// <summary>
57-
/// Occurs when [on sort data processed event].
57+
/// Occurs after sort data processor executes
5858
/// </summary>
5959
event DataProcessorEventHandler OnSortDataProcessedEvent;
6060

6161
/// <summary>
62-
/// Occurs when [on paging data processing event].
62+
/// Occurs before paging data processor executes
6363
/// </summary>
6464
event DataProcessorEventHandler OnPagingDataProcessingEvent;
6565

6666
/// <summary>
67-
/// Occurs when [on paging data processed event].
67+
/// Occurs after paging data processor executes
6868
/// </summary>
6969
event DataProcessorEventHandler OnPagingDataProcessedEvent;
7070

0 commit comments

Comments
 (0)