Ewl » Canonical The canonical version of EWL Read More
Clone URL:  
PreBuiltResponse.aspx.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
using System; using EnterpriseWebLibrary.WebSessionState; namespace EnterpriseWebLibrary.EnterpriseWebFramework.EnterpriseWebLibrary.WebSite { partial class PreBuiltResponse: EwfPage { partial class Info { protected override void init() { if( StandardLibrarySessionState.Instance.ResponseToSend == null ) throw new ApplicationException(); } protected override ConnectionSecurity ConnectionSecurity => ConnectionSecurity.MatchingCurrentRequest; } protected override EwfSafeRequestHandler requestHandler => new EwfSafeResponseWriter( new EwfResponse( StandardLibrarySessionState.Instance.ResponseToSend ) ); } }