![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Flatwhite
文章平均质量分 82
Flatwhite is an AOP library with MVC ActionFilter style using .NET Core dispatch _proxy_
m0_74456535
这个作者很懒,什么都没留下…
展开
-
TestFilterOnProxyWithoutTarget
目录usingusingusingusingMoq;usingSystem;usingusingXunit;namespacepublicclass{[Fact]publicasyncvarnewvarvarvar$"ex =await$"}[Fact]publicasyncvarnewvarvarawait。原创 2023-08-04 12:00:00 · 83 阅读 · 0 评论 -
TestAttributeFilters
目录usingusingSystem;usingnamespace///</summary>publicinterfacevoidDelete(intid);intid);void}usingSystem;usingusingusingusingusingMoq;usingXunit;namespacepublicclass{[Fact]publicasyncvarnewvarvarvar。原创 2023-08-04 17:15:00 · 101 阅读 · 0 评论 -
Order
目录usingusingSystem;usingnamespacepublicclassOrderpubliclongId {get;set;publicdecimalget;set;interfaceintid);voidDelete(intid);intid);intid);publicclasstypeofintid)if(id <= 0)thrownewreturnnewtypeof。原创 2023-08-03 16:30:00 · 200 阅读 · 0 评论 -
HandleAllMethodExceptions
目录usingSystem;usingnamespacepublicclass{publicoverridevoidtrue;$"}publicoverridetrue;$"return。原创 2023-08-03 19:45:00 · 126 阅读 · 0 评论 -
FilterAttributeOnInterfaceMethod
目录usingSystem;usingnamespacepublicclasspublicoverridevoid$"}publicoverride$"return}publicoverridevoid$"}publicoverride$"return。原创 2023-08-02 14:45:00 · 77 阅读 · 0 评论 -
FilterAttributeOnClassMethod
目录usingSystem;usingnamespacepublicclasspublicoverridevoidthrownewException($"publicoverridethrownewException($"publicoverridevoidthrownewException($"publicoverridethrownewException($"}usingSystem;using。原创 2023-08-02 11:45:00 · 89 阅读 · 0 评论 -
ServiceCollectionExtensions
目录///</summary>///T///TImpl///services"></param>///"></param>///lifetime"></param>publicstaticvoidTTImpl>(thiswhereTImpl :class, TwhereT :classvarnewtypeof///</summary>///T///services"></param>///原创 2023-08-01 07:30:00 · 64 阅读 · 0 评论 -
ServiceCollectionExtensions
目录///</summary>///services"></param>///"></param>///"></param>publicstaticthisnullnull?new?newreturnservices;///</summary>///T///TImpl///services"></param>///lifetime"></param>publicstaticvoidTTImpl>(原创 2023-08-01 11:45:00 · 75 阅读 · 0 评论 -
TypeFilterAttribute
//////</summary>truetrue)])]publicclass///<summary>///</summary>publicintOrder {get;set;private///<summary>///"/>instance.///原创 2023-07-31 16:28:32 · 162 阅读 · 0 评论 -
MethodInvocationContext
//////</summary>publicget;internalset;///<summary>//////</summary>publicstringobjectget;internalset;///<summary>//////原创 2023-07-31 16:25:07 · 93 阅读 · 0 评论 -
MethodInterceptor
目录 /// </summary>tryif (!throw;tryif (!throw;tryif (!throw;tryif (!throw;原创 2023-07-30 15:15:00 · 102 阅读 · 0 评论 -
MethodInterceptor
目录 private void HandleSync(IReadOnlyList<MethodFilterAttribute> filterAttributes, IReadOnlyList<ExceptionFilterAttribute> exceptionFilterAttributes, MethodExecutingContext methodExecutingContext)tryif (!throw;tryif (!throw;tryif (!原创 2023-07-30 10:30:00 · 89 阅读 · 0 评论 -
MethodInterceptor
目录 private void SetParameters(T decorated, IContextProvider contextProvider, IAttributeProvider attributeProvider)??= null?= null?= null)else= null)else= null)原创 2023-07-28 07:00:00 · 185 阅读 · 0 评论 -
MethodInterceptor
目录using System;原创 2023-07-28 10:00:00 · 179 阅读 · 0 评论 -
MethodInfoCache
///原创 2023-07-29 14:15:00 · 130 阅读 · 0 评论 -
MethodExceptionContext
///</summary>true)]publicabstractclass///<summary>//////</summary>publicintOrder {get;set;///<summary>//////原创 2023-07-27 08:45:00 · 56 阅读 · 0 评论 -
MethodExceptionContext
" />//////exception">///context">publicnewstringobject/////////原创 2023-07-29 10:45:00 · 106 阅读 · 0 评论 -
IFilterFactory
//////</summary>publicstaticclassGlobal///<summary>//////原创 2023-07-27 08:45:00 · 169 阅读 · 0 评论 -
IFilterFactory
///"/>filter.///</summary>///">"/></param>///<returns></returns>}usingSystem;usingnamespace///<summary>///原创 2023-07-26 15:07:27 · 81 阅读 · 0 评论 -
ExceptionFilterAttribute
//////</summary>///"></param>publicvirtualvoid///<summary>//////原创 2023-07-26 15:05:21 · 142 阅读 · 0 评论 -
DynamicAttributeProvider
///</summary>publicinterface///<summary>///</summary>///methodInfo"></param>///"></param>///stringobject}usingnamespace///<summary>///原创 2023-07-20 15:18:34 · 40 阅读 · 0 评论 -
DynamicAttributeProvider
///</summary>publicclassprivatereadonlyprivatereadonly///<summary>///</summary>///original"></param>///"></param>public///<summary>///原创 2023-07-20 15:16:40 · 40 阅读 · 0 评论 -
DefaultAttributeProvider
///"/>///</summary>///"></param>public///<summary>//////原创 2023-07-19 10:00:00 · 247 阅读 · 0 评论 -
For additional logic before/after calling methods
目录For additional logic before/after calling methodsFor error handlingWhat's else?and。原创 2023-07-19 08:15:00 · 177 阅读 · 0 评论 -
How to use Flatwhite?
目录How to use Flatwhite?builder.AsSelf();...Duration:2MaxAge:3or。原创 2023-07-18 08:15:00 · 65 阅读 · 0 评论 -
Flatwhite
目录How to use Flatwhite?// ...builder[NoCache]allmethods})原创 2023-07-18 07:30:00 · 174 阅读 · 0 评论 -
Flatwhite
目录FlatwhiteWhat is Flatwhite?virtualandnot final。原创 2023-07-17 18:11:29 · 98 阅读 · 0 评论