Skip to content

Commit e158240

Browse files
Update StaticObject.cs
1 parent a6d9ef0 commit e158240

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

class/StaticObject.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,16 @@ internal static class StaticObject
99
internal static string ViewPlace { get; private set; }
1010
internal static bool UseDefaultController { get; private set; } = false;
1111
internal static string DefaultController { get; private set; }
12-
internal static bool UseSectionInDefaultController { get; private set; } = false;
12+
internal static bool UseSegmentInDefaultController { get; private set; } = false;
1313
internal static bool SetBreakForDefaultController { get; private set; } = false;
1414
internal static char OsDirectorySplitter = OperatingSystem.IsWindows() ? '\\' : '/';
1515
internal static string ErrorPagePathBeforeValue { get; private set; }
1616
internal static string ErrorPagePathAfterValue { get; private set; }
1717
internal static int MaxWebSocketConnectionsPerClient { get; private set; }
1818
internal static int WebSocketBufferSize { get; private set; }
19-
internal static bool SendViewOnlyInGetMethod { get; private set; } = false;
19+
internal static int SseInterval { get; private set; }
20+
internal static int MaxSSEConnectionsPerClient { get; private set; }
21+
internal static bool UseCommentModeForWebFormsCombinate { get; private set; } = false;
2022

2123
internal static void SetValue()
2224
{
@@ -43,8 +45,8 @@ internal static void SetValue()
4345
ViewPath = options.ViewPath;
4446
DefaultRole = options.DefaultRole;
4547
ViewPlace = options.WebFormsViewPlace;
46-
UseDefaultController = options.UseDefaultController;
47-
UseSectionInDefaultController = options.UseSectionInDefaultController;
48+
UseDefaultController = options.UseDefaultController;
49+
UseSegmentInDefaultController = options.UseSegmentInDefaultController;
4850
SetBreakForDefaultController = options.SetBreakForDefaultController;
4951

5052
ErrorPagePathBeforeValue = options.ErrorPagePath.GetTextBeforeValue("{value}");
@@ -53,7 +55,9 @@ internal static void SetValue()
5355
MaxWebSocketConnectionsPerClient = options.MaxWebSocketConnectionsPerClient;
5456
WebSocketBufferSize = options.WebSocketBufferSize;
5557

56-
SendViewOnlyInGetMethod = options.SendViewOnlyInGetMethod;
58+
SseInterval = options.SseInterval;
59+
MaxSSEConnectionsPerClient = options.MaxSSEConnectionsPerClient;
60+
UseCommentModeForWebFormsCombinate = options.UseCommentModeForWebFormsCombinate;
5761

5862
StaticObjectHasInitialization = true;
5963
}

0 commit comments

Comments
 (0)