Found 32 packages
Flatwhite is an AOP library with MVC and WebAPI ActionFilter style using Castle dynamic proxy. You can create MethodFilterAttribute to add custom logic to any methods as soon as it is interceptable by Castle Dynamic Proxy. Flatwhite has 1 built-in OutputCacheFilter to cache method result which can auto refresh stale content. You can use Flatwhite simply for caching or extending behavior of your methods such as profiling, logging by implement MethodFilterAttribute similar to MVC's ActionFilterAttribute. Flatwhite.Autofac is a Autofac support package for Flatwhite core
Flatwhite is an AOP library with MVC and WebAPI ActionFilter style using Castle dynamic proxy. You can create MethodFilterAttribute to add custom logic to any methods as soon as it is interceptable by Castle Dynamic Proxy. Flatwhite has 1 built-in OutputCacheFilter to cache method result which can auto refresh stale content. You can use Flatwhite simply for caching or extending behavior of your methods such as profiling, logging by implement MethodFilterAttribute similar to MVC's ActionFilterAttribute
Flatwhite is an AOP library for .NET Core. It's ported from old Flatwhite package (.NET 4.5) to support only .NET CORE 2.1+ and doesn't require any extra packages
MethodFilter
C# code to calculate the coefficients of a FIR filter with Hamming window and to filter the data This code calculates the coefficients of the Band-pass, Band-stop, Low-pass and High-pass FIR filters. It also filters the data, but no zero-phase delay is applied. The namespace is FIR_HAMM. Each filter function will return a 2 rows x N coefficients 2D vector, where Row 1 = Numerator and Row 2 = Denumerator. Band-pass: the function is "double[][] Fir_LP (int filt_order, double sf, double f1, double f2)". The first argument if the order of the filter, the second one if the sampling frequency, while the last two arguments are the two cut-off frequencies f1 and f2; Band-stop: the function is "double[][] Fir_LP (int filt_order, double sf, double f1, double f2)". The first argument if the order of the filter, the second one if the sampling frequency, while the last two arguments are the two cut-off frequencies f1 and f2. If the order of the filter is odd, it will be increased by 1, as odd order symmetric FIR filters must have a gain of zero at the Nyquist frequency; Low-pass: the function is "double[][] Fir_LP(int filt_order, double sf, double f1)". The first argument if the order of the filter, the second one if the sampling frequency, while the last one is the cut-off frequency f1; High-pass: the function is "double[][] Fir_HP(int filt_order, double sf, double f1)". The first argument if the order of the filter, the second one if the sampling frequency, while the last one is the cut-off frequency f1. If the order of the filter is odd, it will be increased by 1, as odd order symmetric FIR filters must have a gain of zero at the Nyquist frequency; Filter the data: the method is "double[] Filter_Data(double[][] coeff_filt, double[] pre_filt_signal)". The two arguments are the filter coefficients and the signal to be filtered. It returns the filtered signal. If you have any question and/or want to report bugs, please e-mail me (Ale) at: pressalex@hotmail.com
Adds ability to support aliases for model binding. Set action parameter to "product" and place "productid" on querystring. i.e. public ActionResult Index([Alias("pid"]Product product) ... add global filter ... filters.Add(new AliasInitializer());
It enables you to make dynamic filtered, sorted and paged IQueryables easily with .Filter() Extension Method. check out "Project Site" on Github for more details.
C# code to calculate the coefficients of the Elliptic filter and to filter the data. This code calculates the coefficients of the Band-pass, Band-stop, Low-pass and High-pass Elliptic filters. It also filters the data, but no zero-phase delay is applied. The name space is: IIR_Elliptic_Filter. The code follows the same steps as in Matlab. Each filter function will return a 2 rows x N coefficients 2D vector, where Row 1 = Numerator and Row 2 = Denumerator. The method "check_stability_iir" can be used to check the stability of the filter. Band-pass: the function is "double[][] Lp2bp (int, double, double, double, double)". The first three arguments are the order of the filter, the decibels of peak - to - peak passband ripple and the decibels of stopband attenuation down from the peak passband value, respectively. The last two arguments are the two normalized cut-off frequencies (f1/NF, f2/NF), where NF is the Nyquist frequency. This means that the cutoff frequencies must be within the interval of (0,1). Please, keep in mind that if you enter order_filt = 2, the order of the filter will be 2 * order_filt = 4; Band-stop: the function is " double[][] Lp2bs (int, double, double, double, double)". The first three arguments are the order of the filter, the decibels of peak - to - peak passband ripple and the decibels of stopband attenuation down from the peak passband value, respectively. The last two arguments are the two normalized cut-off frequencies (f1/NF, f2/NF), where NF is the Nyquist frequency. This means that the cutoff frequencies must be within the interval of (0,1). Please, keep in mind that if you enter order_filt = 2, the order of the filter will be 2 * order_filt = 4; High-pass: the function is " double[][] Lp2hp (int, double, double, double)". The first three arguments are the order of the filter, the decibels of peak - to - peak passband ripple and the decibels of stopband attenuation down from the peak passband value, respectively. The last argument is the normalized cut-off frequency (f/NF), where NF is the Nyquist frequency. This means that the cutoff frequencies must be within the interval of (0,1); Low-pass: the function is " double[][] Lp2lp (int, double, double, double)". The first three arguments are the order of the filter, the decibels of peak - to - peak passband ripple and the decibels of stopband attenuation down from the peak passband value, respectively. The last argument is the normalized cut-off frequency (f/NF), where NF is the Nyquist frequency. This means that the cutoff frequencies must be within the interval of (0,1); Check the stability of the filter: the method is " bool Check_stability_iir (double[][] coeff_filt)". The argument is the 2D array containing the filter coefficients. It returns "true" if the filter is stable, "false" if it is unstable. Filter the data: the method is "double[] Filter_Data(double[][] coeff_filt, double[] pre_filt_signal)". The two arguments are the filter coefficients and the signal to be filtered. It returns the filtered signal. If you have any question and/or want to report bugs, please e-mail me (Ale) at: pressalex@hotmail.com
Parses OData system query parameters to create a LINQ query that can be used to filter a model set. Also exposes a LINQ provider for web services supporting the OData query parameters. Use extension method Filter (in Linq2Rest namespace) on any IEnumerable source.
Code to calculate the coefficients of a notch, comb or peak filter C# code to calculate the coefficients of a notch, comb or peak filter. The name space is: Notch_Peak_Filter. Each filter function will return a 2 rows x N coefficients 2D vector, where Row 1 = Numerator and Row 2 = Denumerator. Notch Filter: the function is "double[][] IIRcomb_cpp(double order, double BW)". The first argument is the frequency to be notched normalized with respect the Nyquist frequency (0.0 < wo < 1), while the second one is the bandwidth (wo / N) of the filter. The default dB level of the bandwidth is ~3.0103 dB. This function has the overload "double[][] IIRcomb_cpp(double order, double BW, double AB)" allowing the user to choose the dB level of the bandwidth; Comb/Peak Filter: the function is "double[][] iircomb_cpp(double order, double BW, String type_filt)". The first two argument is the ratio (or order) between the frequency to be notched (F0) and the sampling frequency (SF)(F0/SF), the second one is the band width of the filter expressed as: (F0/(SF/2))/Q and the third one is a string that can be either "notch" (for the comb filter) or "peak" (for the peak filter). Please, remember that the ratio (order) needs to be an integer number. If the user inserts a ratio (order) that is not an integer, the code will return an empty matrix of coefficients. Also, if the user insert a string different from "notch" or "peak", the code will return an empty matrix of coefficients. The default dB level of the bandwidth is ~3.0103 dB. This function has the overload "double[][] iircomb_cpp(double order, double BW, double AB, String type_filt)" allowing the user to choose the dB level of the bandwidth; Filter the data: the method is "double[] Filter_Data_NCP(double[][] coeff_filt, double[] pre_filt_signal)". The two arguments are the filter coefficients and the signal to be filtered. It returns the filtered signal. If you have any questions and/or want to report bugs, please e-mail me (Ale) at: pressalex@hotmail.com.
Diagnostic trace logger for .NET Framework and Core. Easy to get started but has advanced features. Sophisticated viewer allows filtering and coloring by thread, method, category, etc. Send output to multiple destinations including file, event log, and console.
Filter for simplifying validation when using .Net Minimal API. Utilizes FluentValidation, IEndpointFilter, and a RouteHandlerBuilder extension method to reduce repetitive validation code on API endpoints.
A standard Action Filter Attribute for .Net web API. It intercepts requests, builds a request scope object and calls enter and leave method delegates before and after endpoint invocations respectfully.
Filter for simplifying id mismatches for PUT operations when using .Net Minimal API. Utilizes IEndpointFilter a RouteHandlerBuilder extension method to reduce boilerplate code and force the id check to occur before any validation.
- LogoutFilter The LogoutFilter class is a filter in an ASP.NET Core application that intercepts requests to the logout endpoint and invalidates the user's token. This filter is useful for implementing logout functionality by invalidating the user's token upon logout. - TokenBlackListMiddleware The TokenBlackListMiddleware class is responsible for checking if a token is blacklisted and preventing access if it is. It also provides a method to blacklist tokens for a specified duration. This middleware is useful for implementing logout functionality by blacklisting tokens upon logout.
- LogoutFilter The LogoutFilter class is a filter in an ASP.NET Core application that intercepts requests to the logout endpoint and invalidates the user's token. This filter is useful for implementing logout functionality by invalidating the user's token upon logout. - TokenBlackListMiddleware The TokenBlackListMiddleware class is responsible for checking if a token is blacklisted and preventing access if it is. It also provides a method to blacklist tokens for a specified duration. This middleware is useful for implementing logout functionality by blacklisting tokens upon logout.
MvvmLib Core Commands: DelegateCommand, AsyncCommand and CompositeCommand Task Extensions: for Async with void method Mvvm: BindableBase, ValidatableBindableBase and ModelWrapper EventAggregator : allows to subscribe, publish and filter messages
This is a small package for easier work in functional style History: 1.0.0.24 - Added Distinct(selector) method, wich is just shortcut for ".Select(selector).Distinct()" 1.0.0.23 - Method "SimpleJoin" became Obsolete, use "Filter" insteadd 1.0.0.22 - Added GetOrDefault method for IReadOnlyDictionary Renamed SetIfEmpty -> DefaultIfEmty Added new method SetIfEmty<> witch returns another collection if the source is empty; Added override of DoIf with Action<> argument instead Func<> Added IfNotNull method, wich executes function only if this object is not null, else returns default value Added DoIf method, which executes action if condition is true, esle returns original object Fixed Left method for string with 0 length Added If method with few overloads and also IfNotNull also Target frameworks(Core2 & NetF) changed to Standard2 Added string extension method "Left" that allows safety get subsrting from 0 char to length. Added SimpleJoin method which allows to filter collection by collection of keys. Added (Single/Where)With(Min/Max) method Added XML annotation for methods; Added TryGetSingle method; Added overloaded method "Do" that takes function as parameter but returns the same original object after function call, not the funcion result. Method Do renamed to Make. Added overloaded method "Do", which can return different types.
Accelerated Mobile Pages Module (AMP Filter) is a custom module for Kentico CMS and EMS. It consists of an Output Filter for transforming regular HTML to AMP HTML format and a macro method that makes it easy to adjust and fine-tune the rendered output.
C# code to calculate the coefficients of the Butterworth filter and to filter the data This code calculates the coefficients of the Band-pass, Band-stop, Low-pass and High-pass Butterworth filters. It also filters the data, but no zero-phase delay is applied. The namespace is IIR_Butterworth_CS_Library. Each filter function will return a 2 rows x N coefficients 2D vector, where Row 1 = Numerator and Row 2 = Denumerator. The method "Check_stability_iir" can be used to check the stability of the filter. Please, keep in mind that if the filter is unstable, numerical instability leading to numerical overflow might happen when the order selected is extremely high. If that situation occurs, the program might assign a default value of 10^10 at the denominator. Band-pass: the function is "double[][] Lp2bp(double W_f1, double W_f2, int order_filt)". The first two arguments are the two normalized cut-off frequencies (f1/NF, f2/NF), where NF is the Nyquist frequency. This means that the cutoff frequencies must be within the interval of (0,1). The last argument is the order. Please, keep in mind that if you enter order_filt = 2, the order of the order will be 2 * order_filt = 4; Band-stop: the function is "double[][] Lp2bs(double W_f1, double W_f2, int order_filt)". The first two arguments are the two normalized cut-off frequencies (f1/NF, f2/NF), where NF is the Nyquist frequency. This means that the cutoff frequencies must be within the interval of (0,1). The last argument is the order. Please, keep in mind that if you enter order_filt = 2, the order of the order will be 2 * order_filt = 4; Low-pass: the function is "double[][] Lp2hp(double W_f1, int order_filt)". The first argument is the normalized cut-off frequency (f/NF), where NF is the Nyquist frequency. This means that the cutoff frequency must be within the interval of (0,1). The last argument is the order; High-pass: the function is "double[][] Lp2lp(double W_f1, int order_filt)". The first argument is the normalized cut-off frequency (f/NF), where NF is the Nyquist frequency. This means that the cutoff frequency must be within the interval of (0,1). The last argument is the order; Check the stability of the filter: the method is "bool Check_stability_iir(double[][] coeff_filt)". The argument is the 2D array containing the filter coefficients. It returns "true" if the filter is stable, "false" if it is unstable. Filter the data: the method is "double[] Filter_Data(double[][] coeff_filt, double[] pre_filt_signal)". The two arguments are the filter coefficients and the signal to be filtered. It returns the filtered signal. This code has been written following the Matlab code, so the arguments of each function reflect the arguments that you should pass to the equivalent functions in Matlab. I tried to be consistent with the names of the functions, in case someone wants to compare this code with Matlab code. The only exception is the function Check_stability_iir, which is not present in Matlab. If you have any question and/or want to report bugs, please e-mail me (Ale) at: pressalex@hotmail.com