WebExtensions Class
.NET Standard 2.x
Provides extended features for developing RESTFul Web services based on the ASP.NET Web APIs and integrating with the SnapObjects runtime features.
Namespace: SnapObjects.Data.AspNetCore
Assembly: SnapObjects.Data.AspNetCore.dll
Syntax
public static class WebExtensions
Methods
Name | Return Type | Description |
---|---|---|
AddGzipCompression(AddGzipCompression(this IServiceCollection services, CompressionLevel compressionLevel) | IServiceCollection | Adds the GZIP response compression service and specifies the compression level. |
UseCoreIntegrated(this MvcOptions options) | MvcOptions | Enables the actions in the controller to support the parameters of the type IDataUnpacker , IModelEntry<T> . |
UseTransaction(this MvcOptions options, double scopeTimeout = 0, IsolationLevel isolationLevel = IsolationLevel.Serializable, TransactionScopeAsyncFlowOption asyncFlowOption = TransactionScopeAsyncFlowOption.Enabled, CommitPolicy commitPolicy = CommitPolicy.OnActionExecuted) | MvcOptions | Uses the TransactionScope instance to automatically manage transactions for all actions in all controllers. |