Skip to content

Commit e59712f

Browse files
committed
bump to YAF 3.2.8
1 parent 795cadf commit e59712f

364 files changed

Lines changed: 7340 additions & 7326 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
YAF.SampleWebApplication
22
========================
33

4-
This Application is a Standard Visual Studio Sample ASP.NET Application (.NET Framework 4.8.1), including YAF.NET v3.2.2 integrated as Control on a Page.
4+
This Application is a Standard Visual Studio Sample ASP.NET Application (.NET Framework 4.8.1), including YAF.NET v3.2.8 integrated as Control on a Page.

YAF.SampleWebApplication/About.aspx.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* Yet Another Forum.NET
22
* Copyright (C) 2003-2005 Bjørnar Henden
33
* Copyright (C) 2006-2013 Jaben Cargman
4-
* Copyright (C) 2014-2023 Ingo Herbote
4+
* Copyright (C) 2014-2025 Ingo Herbote
55
* https://www.yetanotherforum.net/
6-
*
6+
*
77
* Licensed to the Apache Software Foundation (ASF) under one
88
* or more contributor license agreements. See the NOTICE file
99
* distributed with this work for additional information
@@ -22,11 +22,10 @@
2222
* under the License.
2323
*/
2424

25-
namespace YAF.SampleWebApplication
26-
{
27-
using System.Web.UI;
25+
namespace YAF.SampleWebApplication;
26+
27+
using System.Web.UI;
2828

29-
public partial class About : Page
30-
{
31-
}
29+
public partial class About : Page
30+
{
3231
}

YAF.SampleWebApplication/AjaxDemo.aspx.cs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* Yet Another Forum.NET
22
* Copyright (C) 2003-2005 Bjørnar Henden
33
* Copyright (C) 2006-2013 Jaben Cargman
4-
* Copyright (C) 2014-2023 Ingo Herbote
4+
* Copyright (C) 2014-2025 Ingo Herbote
55
* https://www.yetanotherforum.net/
6-
*
6+
*
77
* Licensed to the Apache Software Foundation (ASF) under one
88
* or more contributor license agreements. See the NOTICE file
99
* distributed with this work for additional information
@@ -22,12 +22,11 @@
2222
* under the License.
2323
*/
2424

25-
namespace YAF.SampleWebApplication
25+
namespace YAF.SampleWebApplication;
26+
27+
/// <summary>
28+
/// The ajax demo.
29+
/// </summary>
30+
public partial class AjaxDemo : System.Web.UI.Page
2631
{
27-
/// <summary>
28-
/// The ajax demo.
29-
/// </summary>
30-
public partial class AjaxDemo : System.Web.UI.Page
31-
{
32-
}
3332
}
Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* Yet Another Forum.NET
22
* Copyright (C) 2003-2005 Bjørnar Henden
33
* Copyright (C) 2006-2013 Jaben Cargman
4-
* Copyright (C) 2014-2023 Ingo Herbote
4+
* Copyright (C) 2014-2025 Ingo Herbote
55
* https://www.yetanotherforum.net/
6-
*
6+
*
77
* Licensed to the Apache Software Foundation (ASF) under one
88
* or more contributor license agreements. See the NOTICE file
99
* distributed with this work for additional information
@@ -22,16 +22,15 @@
2222
* under the License.
2323
*/
2424

25-
namespace YAF.SampleWebApplication
26-
{
27-
using System.Web.UI;
25+
namespace YAF.SampleWebApplication;
26+
27+
using System.Web.UI;
2828

29-
/// <summary>
30-
/// Class Contact.
31-
/// Implements the <see cref="System.Web.UI.Page" />
32-
/// </summary>
33-
/// <seealso cref="System.Web.UI.Page" />
34-
public partial class Contact : Page
35-
{
36-
}
29+
/// <summary>
30+
/// Class Contact.
31+
/// Implements the <see cref="System.Web.UI.Page" />
32+
/// </summary>
33+
/// <seealso cref="System.Web.UI.Page" />
34+
public partial class Contact : Page
35+
{
3736
}
Lines changed: 52 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/* Yet Another Forum.NET
22
* Copyright (C) 2003-2005 Bjørnar Henden
33
* Copyright (C) 2006-2013 Jaben Cargman
4-
* Copyright (C) 2014-2023 Ingo Herbote
4+
* Copyright (C) 2014-2025 Ingo Herbote
55
* https://www.yetanotherforum.net/
6-
*
6+
*
77
* Licensed to the Apache Software Foundation (ASF) under one
88
* or more contributor license agreements. See the NOTICE file
99
* distributed with this work for additional information
@@ -22,66 +22,65 @@
2222
* under the License.
2323
*/
2424

25-
namespace YAF.SampleWebApplication.Controllers.BaseClass
26-
{
27-
using System;
28-
using System.Web.Mvc;
25+
namespace YAF.SampleWebApplication.Controllers.BaseClass;
26+
27+
using System;
28+
using System.Web.Mvc;
2929

30+
/// <summary>
31+
/// The razor controller.
32+
/// </summary>
33+
public class RazorController : Controller
34+
{
3035
/// <summary>
31-
/// The razor controller.
36+
/// The razor view.
3237
/// </summary>
33-
public class RazorController : Controller
38+
/// <param name="viewName">
39+
/// The view name.
40+
/// </param>
41+
/// <param name="model">
42+
/// The model.
43+
/// </param>
44+
/// <returns>
45+
/// The <see cref="ActionResult"/>.
46+
/// </returns>
47+
public ActionResult RazorView(string viewName, object model)
3448
{
35-
/// <summary>
36-
/// The razor view.
37-
/// </summary>
38-
/// <param name="viewName">
39-
/// The view name.
40-
/// </param>
41-
/// <param name="model">
42-
/// The model.
43-
/// </param>
44-
/// <returns>
45-
/// The <see cref="ActionResult"/>.
46-
/// </returns>
47-
public ActionResult RazorView(string viewName, object model)
48-
{
49-
// pass the viewname to RazorView.aspx
50-
// the view will be rendered as partial view
51-
this.ViewBag.ViewName = viewName;
49+
// pass the viewname to RazorView.aspx
50+
// the view will be rendered as partial view
51+
this.ViewBag.ViewName = viewName;
5252

53-
return this.View("RazorView", model);
54-
}
53+
return this.View("RazorView", model);
54+
}
5555

56-
/// <summary>
57-
/// The razor view.
58-
/// </summary>
59-
/// <param name="model">
60-
/// The model.
61-
/// </param>
62-
/// <returns>
63-
/// The <see cref="ActionResult"/>.
64-
/// </returns>
65-
public ActionResult RazorView(object model)
66-
{
67-
return this.RazorView(this.GetCurrentViewName(), model);
68-
}
56+
/// <summary>
57+
/// The razor view.
58+
/// </summary>
59+
/// <param name="model">
60+
/// The model.
61+
/// </param>
62+
/// <returns>
63+
/// The <see cref="ActionResult"/>.
64+
/// </returns>
65+
public ActionResult RazorView(object model)
66+
{
67+
return this.RazorView(this.GetCurrentViewName(), model);
68+
}
6969

70-
public ActionResult RazorView(string viewName)
71-
{
72-
return this.RazorView(viewName, null);
73-
}
70+
public ActionResult RazorView(string viewName)
71+
{
72+
return this.RazorView(viewName, null);
73+
}
7474

75-
public ActionResult RazorView()
76-
{
77-
return this.RazorView(this.GetCurrentViewName(), null);
78-
}
75+
public ActionResult RazorView()
76+
{
77+
return this.RazorView(this.GetCurrentViewName(), null);
78+
}
7979

80-
private String GetCurrentViewName()
81-
{
82-
var result = $"{this.Url.RequestContext.RouteData.Values["action"]}";
80+
private String GetCurrentViewName()
81+
{
82+
var result = $"{this.Url.RequestContext.RouteData.Values["action"]}";
8383

84-
return result;
85-
}
84+
return result;
8685
}
8786
}
Lines changed: 56 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/* Yet Another Forum.NET
22
* Copyright (C) 2003-2005 Bjørnar Henden
33
* Copyright (C) 2006-2013 Jaben Cargman
4-
* Copyright (C) 2014-2023 Ingo Herbote
4+
* Copyright (C) 2014-2025 Ingo Herbote
55
* https://www.yetanotherforum.net/
66
*
77
* Licensed to the Apache Software Foundation (ASF) under one
@@ -22,71 +22,70 @@
2222
* under the License.
2323
*/
2424

25-
namespace YAF.SampleWebApplication.Controllers
26-
{
27-
using System.Web.Mvc;
25+
namespace YAF.SampleWebApplication.Controllers;
26+
27+
using System.Web.Mvc;
2828

29-
using YAF.SampleWebApplication.Controllers.BaseClass;
30-
using YAF.SampleWebApplication.Models;
29+
using YAF.SampleWebApplication.Controllers.BaseClass;
30+
using YAF.SampleWebApplication.Models;
3131

32+
/// <summary>
33+
/// The razor demo controller.
34+
/// </summary>
35+
public class RazorDemoController : RazorController
36+
{
3237
/// <summary>
33-
/// The razor demo controller.
38+
/// The index.
3439
/// </summary>
35-
public class RazorDemoController : RazorController
40+
/// <returns>
41+
/// The <see cref="ActionResult"/>.
42+
/// </returns>
43+
public ActionResult Index()
3644
{
37-
/// <summary>
38-
/// The index.
39-
/// </summary>
40-
/// <returns>
41-
/// The <see cref="ActionResult"/>.
42-
/// </returns>
43-
public ActionResult Index()
44-
{
45-
return this.RazorView();
46-
}
45+
return this.RazorView();
46+
}
4747

48-
/// <summary>
49-
/// Example render some other view
50-
/// </summary>
51-
/// <returns>
52-
/// The <see cref="ActionResult"/>.
53-
/// </returns>
54-
public ActionResult RenderOtherView()
55-
{
56-
return this.RazorView("Hello");
57-
}
48+
/// <summary>
49+
/// Example render some other view
50+
/// </summary>
51+
/// <returns>
52+
/// The <see cref="ActionResult"/>.
53+
/// </returns>
54+
public ActionResult RenderOtherView()
55+
{
56+
return this.RazorView("Hello");
57+
}
5858

59-
/// <summary>
60-
/// Example Render view with Model
61-
/// </summary>
62-
/// <param name="id">
63-
/// The id.
64-
/// </param>
65-
/// <returns>
66-
/// The <see cref="ActionResult"/>.
67-
/// </returns>
68-
public ActionResult Users(int id)
69-
{
70-
var model = new Users { UserId = id, UserName = "Testuser" };
59+
/// <summary>
60+
/// Example Render view with Model
61+
/// </summary>
62+
/// <param name="id">
63+
/// The id.
64+
/// </param>
65+
/// <returns>
66+
/// The <see cref="ActionResult"/>.
67+
/// </returns>
68+
public ActionResult Users(int id)
69+
{
70+
var model = new Users { UserId = id, UserName = "Testuser" };
7171

72-
return this.RazorView(model);
73-
}
72+
return this.RazorView(model);
73+
}
7474

75-
/// <summary>
76-
/// The some ajax call.
77-
/// </summary>
78-
/// <param name="id">
79-
/// The id.
80-
/// </param>
81-
/// <returns>
82-
/// The <see cref="ActionResult"/>.
83-
/// </returns>
84-
[HttpGet]
85-
public ActionResult SomeAjaxCall(int id)
86-
{
87-
var model = new Users { UserId = id, UserName = "Testuser" };
75+
/// <summary>
76+
/// The some ajax call.
77+
/// </summary>
78+
/// <param name="id">
79+
/// The id.
80+
/// </param>
81+
/// <returns>
82+
/// The <see cref="ActionResult"/>.
83+
/// </returns>
84+
[HttpGet]
85+
public ActionResult SomeAjaxCall(int id)
86+
{
87+
var model = new Users { UserId = id, UserName = "Testuser" };
8888

89-
return this.View("Users", model);
90-
}
89+
return this.View("Users", model);
9190
}
9291
}

0 commit comments

Comments
 (0)