API Diff between 2.2.15-beta and 2.1.201-beta
270 Additions
11 Removals
GSF.Web
GSF.Web.Embedded
GSF.Web.Hosting
-
public interface IHostedHttpHandler
-
public class WebPageController : ApiController
- public AdoDataConnection Database { get; set; }
- public string DefaultWebPage { get; set; }
- public object Model { get; set; }
- public Type ModelType { get; set; }
- public WebServer WebServer { get; }
- public WebPageController()
- public WebPageController(WebServer webServer)
- public static IDependencyResolver GetDependencyResolver(WebServer webServer, string defaultWebPage = null, object model = null, Type modelType = null, AdoDataConnection connection = null)
- public Task<HttpResponseMessage> GetPage(CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string folder1, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string folder1, string folder2, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string folder1, string folder2, string folder3, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string folder1, string folder2, string folder3, string folder4, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string folder1, string folder2, string folder3, string folder4, string folder5, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string folder1, string folder2, string folder3, string folder4, string folder5, string folder6, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string folder1, string folder2, string folder3, string folder4, string folder5, string folder6, string folder7, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string folder1, string folder2, string folder3, string folder4, string folder5, string folder6, string folder7, string folder8, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string folder1, string folder2, string folder3, string folder4, string folder5, string folder6, string folder7, string folder8, string folder9, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> GetPage(string folder1, string folder2, string folder3, string folder4, string folder5, string folder6, string folder7, string folder8, string folder9, string folder10, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string folder1, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string folder1, string folder2, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string folder1, string folder2, string folder3, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string folder1, string folder2, string folder3, string folder4, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string folder1, string folder2, string folder3, string folder4, string folder5, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string folder1, string folder2, string folder3, string folder4, string folder5, string folder6, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string folder1, string folder2, string folder3, string folder4, string folder5, string folder6, string folder7, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string folder1, string folder2, string folder3, string folder4, string folder5, string folder6, string folder7, string folder8, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string folder1, string folder2, string folder3, string folder4, string folder5, string folder6, string folder7, string folder8, string folder9, string pageName, CancellationToken cancellationToken)
- public Task<HttpResponseMessage> PostPage(string folder1, string folder2, string folder3, string folder4, string folder5, string folder6, string folder7, string folder8, string folder9, string folder10, string pageName, CancellationToken cancellationToken)
-
public class WebServer
- public static WebServer Default { get; }
- public bool ClientCacheEnabled { get; set; }
- public bool MinifyJavascript { get; set; }
- public bool MinifyStyleSheets { get; set; }
- public ConcurrentDictionary<string, Tuple<Type, Type>> PagedViewModelTypes { get; }
- public IRazorEngine RazorEngineCS { get; }
- public IRazorEngine RazorEngineVB { get; }
- public bool UseMinifyInDebug { get; set; }
- public string WebRootPath { get; }
- public event EventHandler<EventArgs<Exception>> ExecutionException
- public event EventHandler<EventArgs<string>> StatusMessage
- public WebServer(string webRootPath = null, IRazorEngine razorEngineCS = null, IRazorEngine razorEngineVB = null)
- public static WebServer GetConfiguredServer(string settingsCategory = null, IRazorEngine razorEngineCS = null, IRazorEngine razorEngineVB = null)
- public void Dispose()
- protected virtual void Dispose(bool disposing)
- public Task<HttpResponseMessage> RenderResponse(HttpRequestMessage request, string pageName, bool isPost, CancellationToken cancellationToken, object model = null, Type modelType = null, AdoDataConnection database = null)
GSF.Web.Hubs
GSF.Web.Model
-
public class DataContext : IDisposable
- public DataContext(AdoDataConnection connection = null, bool disposeConnection = false, Action<Exception> exceptionHandler = null)
- public DataContext(string settingsCategory, Action<Exception> exceptionHandler = null)
- public const string UrlValidation = "^(?:(?:[a-zA-Z][a-zA-Z0-9.+-]*:\\/\\/)?[a-zA-Z0-9][a-zA-Z0-9.-]*(?::[0-9]+)?(?:\\/[^ \"]*)?|mailto:[a-zA-Z0-9!#$%&'*+-\\/=?^_`{|}~][a-zA-Z0-9!#$%&'*+-\\/=?^_`{|}~.]*@[a-zA-Z0-9][a-zA-Z0-9.-]*)$"
- public string AddCheckBoxFieldTemplate { get; set; }
- public string AddDateFieldTemplate { get; set; }
- public string AddInputFieldTemplate { get; set; }
- public string AddSelectFieldTemplate { get; set; }
- public string AddTextAreaFieldTemplate { get; set; }
- public AdoDataConnection Connection { get; }
- public Dictionary<Type, KeyValuePair<string, string>[]> CustomTableOperationTokens { get; }
- public List<string> DefinedDateFields { get; }
- public Dictionary<string, Tuple<string, string>> FieldValidationParameters { get; }
- public List<Tuple<string, string>> FieldValueInitializers { get; }
- public string InitialFocusField { get; }
- public IRazorEngine RazorEngine { get; }
- public List<Tuple<string, string, string, bool>> ReadonlyHotLinkFields { get; }
- public AdoSecurityProvider SecurityProvider { get; }
- public DataContext(AdoDataConnection connection = null, bool disposeConnection = false, IRazorEngine razorEngine = null, Action<Exception> exceptionHandler = null)
- public DataContext(string settingsCategory, IRazorEngine razorEngine = null, Action<Exception> exceptionHandler = null)
- public string AddCheckBoxField<TModel>(string fieldName, string fieldLabel = null, string fieldID = null, string groupDataBinding = null, string labelDataBinding = null, string customDataBinding = null, string dependencyFieldName = null, string toolTip = null, bool initialFocus = false)
- public string AddCheckBoxField(string fieldName, string fieldLabel = null, string fieldID = null, string groupDataBinding = null, string labelDataBinding = null, string customDataBinding = null, string dependencyFieldName = null, string toolTip = null, bool initialFocus = false)
- public string AddDateField<TModel>(string fieldName, string inputType = null, string fieldLabel = null, string fieldID = null, string groupDataBinding = null, string labelDataBinding = null, string requiredDataBinding = null, string customDataBinding = null, string dependencyFieldName = null, string toolTip = null, bool initialFocus = false)
- public string AddDateField(string fieldName, bool required, int maxLength = 0, string inputType = null, string fieldLabel = null, string fieldID = null, string groupDataBinding = null, string labelDataBinding = null, string requiredDataBinding = null, string customDataBinding = null, string dependencyFieldName = null, string toolTip = null, bool initialFocus = false)
- public void AddFieldValidation(string observableFieldReference, string validationPattern, string errorMessage = null)
- public void AddFieldValueInitializer(string fieldName, string initialValue = null)
- public void AddFieldValueInitializer<TModel>(string fieldName)
- public string AddInputField<TModel>(string fieldName, string inputType = null, string fieldLabel = null, string fieldID = null, string groupDataBinding = null, string labelDataBinding = null, string requiredDataBinding = null, string customDataBinding = null, string dependencyFieldName = null, string toolTip = null, bool initialFocus = false, bool enableHotLinks = true)
- public string AddInputField(string fieldName, bool required, int maxLength = 0, string inputType = null, string fieldLabel = null, string fieldID = null, string groupDataBinding = null, string labelDataBinding = null, string requiredDataBinding = null, string customDataBinding = null, string dependencyFieldName = null, string toolTip = null, bool initialFocus = false, bool enableHotLinks = true)
- public void AddPageDefinedFieldInitialization(string fieldName, string initialValue, string validationPattern = null, string errorMessage = null)
- public void AddReadOnlyHotLinkField(string fieldID, string readOnlyDivID, string fieldName, bool isTextArea)
- public string AddSelectField<TModel, TOption>(string fieldName, string optionValueFieldName, string optionLabelFieldName = null, string optionSortFieldName = null, string fieldLabel = null, string fieldID = null, string groupDataBinding = null, string labelDataBinding = null, string requiredDataBinding = null, string customDataBinding = null, string dependencyFieldName = null, string optionDataBinding = null, string toolTip = null, bool initialFocus = false, RecordRestriction restriction = null, bool allowUnset = false, string unsetCaption = "Select value...", bool addEmptyRow = false, string emptyRowValue = "", bool showNoRecordOption = false, string noRecordValue = "-1", string noRecordText = "No records")
- public string AddSelectField<TOption>(string fieldName, bool required, string optionValueFieldName, string optionLabelFieldName = null, string optionSortFieldName = null, string fieldLabel = null, string fieldID = null, string groupDataBinding = null, string labelDataBinding = null, string requiredDataBinding = null, string customDataBinding = null, string dependencyFieldName = null, string optionDataBinding = null, string toolTip = null, bool initialFocus = false, RecordRestriction restriction = null, bool allowUnset = false, string unsetCaption = "Select value...", bool addEmptyRow = false, string emptyRowValue = "", bool showNoRecordOption = false, string noRecordValue = "-1", string noRecordText = "No records")
- public string AddTextAreaField<TModel>(string fieldName, int rows = 2, string fieldLabel = null, string fieldID = null, string groupDataBinding = null, string labelDataBinding = null, string requiredDataBinding = null, string customDataBinding = null, string dependencyFieldName = null, string toolTip = null, bool initialFocus = false, bool enableHotLinks = true)
- public string AddTextAreaField(string fieldName, bool required, int maxLength = 0, int rows = 2, string fieldLabel = null, string fieldID = null, string groupDataBinding = null, string labelDataBinding = null, string requiredDataBinding = null, string customDataBinding = null, string dependencyFieldName = null, string toolTip = null, bool initialFocus = false, bool enableHotLinks = true)
- public void ConfigureView(HttpRequestMessage request, object viewBag)
- public void ConfigureView<TModel, THub>(HttpRequestMessage request, object viewBag) where THub : IRecordOperationsHub
- public void ConfigureView(Type model, Type hub, HttpRequestMessage request, object viewBag)
- public void ConfigureView(RequestContext requestContext, object viewBag)
- public void ConfigureView<TModel, THub>(RequestContext requestContext, object viewBag) where THub : IRecordOperationsHub
- public void ConfigureView(Type model, Type hub, RequestContext requestContext, object viewBag)
- public void ConfigureView(string routeID, object viewBag)
- public void ConfigureView<TModel, THub>(string routeID, object viewBag) where THub : IRecordOperationsHub
- public void ConfigureView(Type model, Type hub, string routeID, object viewBag)
- public void Dispose()
- protected virtual void Dispose(bool disposing)
- public void EstablishUserRolesForPage<TModel, THub>(object viewBag) where THub : IRecordOperationsHub
- public void EstablishUserRolesForPage(Type model, Type hub, object viewBag)
- public void EstablishUserRolesForPage<TModel>(RecordOperationsCache cache, object viewBag)
- public void EstablishUserRolesForPage(Type model, RecordOperationsCache cache, object viewBag)
- public string GetIsDeletedFlag<TModel>()
- public string GetIsDeletedFlag(Type model)
- public string GetPrimaryLabelField<TModel>()
- public string GetPrimaryLabelField(Type model)
- public string RenderLookupFunction<TModel>(string valueFieldName, string keyFieldName = "ID", string lookupFunctionName = null, string arrayName = null)
- public string RenderViewModelConfiguration<TModel, THub>(object viewBag, string defaultSortField = null, string hubScriptName = null, object[] parentKeys) where THub : IRecordOperationsHub
- public string RenderViewModelConfiguration<TModel>(RecordOperationsCache cache, object viewBag, string defaultSortField = null, string hubClassName = "GSF.Web.Security.SecurityHub", string hubScriptName = "securityHub", object[] parentKeys)
- public TableOperations<TModel> Table<TModel>()
- public ITableOperations Table(Type model)
- public bool UserIsInGroup(string group)
- public bool UserIsInGroup(string[] groups)
- public bool UserIsInRole(string role)
- public bool UserIsInRole(string[] roles)
-
public class DataContext<TLanguage> : IDisposable where TLanguage : LanguageConstraint
-
public interface IRecordOperationsHub : IDisposable
-
public abstract class ExtendedTemplateBase : TemplateBase
-
public abstract class ExtendedTemplateBase<T> : TemplateBase<T>
-
public class HtmlHelper
-
public class IDLabel
-
public interface IRazorEngine : IRazorEngineService, IDisposable
-
public class Label
-
public class RazorView<TLanguage> where TLanguage : LanguageConstraint
-
public class RazorEngine<TLanguage> : IRazorEngine, IRazorEngineService, IDisposable where TLanguage : LanguageConstraint
- public static RazorEngine<TLanguage> Default { get; }
- public IRazorEngineService EngineService { get; }
- public string TemplatePath { get; }
- public RazorEngine(string templatePath)
- public static RazorEngine<TLanguage> GetConfiguredEngine(string settingsCategory = null)
- public void AddTemplate(ITemplateKey key, ITemplateSource templateSource)
- public void Compile(ITemplateKey key, Type modelType = null)
- public void Dispose()
- protected virtual void Dispose(bool disposing)
- public ITemplateKey GetKey(string name, ResolveType resolveType = 0, ITemplateKey context = null)
- public bool IsTemplateCached(ITemplateKey key, Type modelType)
- public Task PreCompile(Action<Exception> exceptionHandler = null)
- public void Run(ITemplateKey key, TextWriter writer, Type modelType = null, object model = null, DynamicViewBag viewBag = null)
- public void RunCompile(ITemplateKey key, TextWriter writer, Type modelType = null, object model = null, DynamicViewBag viewBag = null)
-
public class RazorView
- public AdoDataConnection Database { get; set; }
- public IRazorEngine DataContextEngine { get; set; }
- public Action<Exception> ExceptionHandler { get; set; }
- public string this[string key] { get; }
- public object Model { get; set; }
- public Type ModelType { get; set; }
- public Type PagedViewModelDataType { get; set; }
- public Type PagedViewModelHubType { get; set; }
- public Dictionary<string, string> Parameters { get; }
- public IRazorEngine RazorEngine { get; }
- public string TemplateName { get; set; }
- public object ViewBag { get; }
- public RazorView(IRazorEngine razorEngine, string templateName, Action<Exception> exceptionHandler = null)
- public RazorView(IRazorEngine razorEngine, string templateName, object model = null, Type modelType = null, Type pagedViewModelDataType = null, Type pagedViewModelHubType = null, AdoDataConnection database = null, Action<Exception> exceptionHandler = null)
- public string Execute()
- public string Execute(HttpRequestMessage request, bool isPost)
- public Task<string> ExecuteAsync(HttpRequestMessage request, bool isPost, CancellationToken cancellationToken)
-
public class RecordOperationsCache
-
public class UrlHelper
- public string Content(string contentPath)
- public string Encode(string url)
GSF.Web.Model.Handlers
GSF.Web.Model.HubOperations
GSF.Web.Security
-
public class SecurityHub : RecordOperationsHub<SecurityHub>
- public RecordOperationsCache RecordOperationsCache { get; }
- public SecurityHub(Action<string, UpdateType> logStatusMessageFunction, Action<Exception> logExceptionFunction)
- public SecurityHub(DataContext dataContext, Action<string, UpdateType> logStatusMessageFunction, Action<Exception> logExceptionFunction)
- public int QuerySecurityGroupCount()
- public IEnumerable<SecurityGroup> QuerySecurityGroups(string sortField, bool ascending, int page, int pageSize)
- public SecurityGroup QuerySecurityGroup(Guid id)
- public SecurityGroup QuerySecurityGroupByName(string accountName)
- public int QuerySecurityGroupCount(string filterText)
- public IEnumerable<SecurityGroup> QuerySecurityGroups(string sortField, bool ascending, int page, int pageSize, string filterText)
- public int QueryUserAccountCount()
- public IEnumerable<UserAccount> QueryUserAccounts(string sortField, bool ascending, int page, int pageSize)
- public UserAccount QueryUserAccountByName(string accountName)
- public int QueryUserAccountCount(string filterText)
- public IEnumerable<UserAccount> QueryUserAccounts(string sortField, bool ascending, int page, int pageSize, string filterText)
- public IEnumerable<Label> SearchSecurityGroups(string searchText)
- public IEnumerable<IDLabel> SearchUserAccounts(string searchText)
- public IEnumerable<IDLabel> SearchUserAccounts(string searchText, int limit)