dotnetomaniak.pl - Artykuły z tagiem Chain-of-Responsibilitydotnetomaniak.pl - Artykuły z tagiem Chain-of-Responsibility2024-03-28T13:02:48Zhttps://dotnetomaniak.pl/Tags/Chain-of-ResponsibilityCopyright (c) dotnetomaniak.pldotnetomaniak.pl Atom Generatordotnetomaniak.pl webmasteradmin@dotnetomaniak.plhttps://dotnetomaniak.pl/Assets/Images/fav.icohttps://dotnetomaniak.pl/Assets/Images/dotnetomaniak_logo-negatyw_small.png2025https://dotnetomaniak.pl/EN-Chain-of-Responsibility-an-elegant-way-to-handle-complex-validation[EN] Chain of Responsibility – an elegant way to handle complex validation2016-05-18T10:25:45Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_yhQWbfSWi0GR1VGCbM8A6w.png"/></div><div>In this post I will try to introduce the concept of validation using the Chain of Responsibility pattern (CoR), which I use successfull for years</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/EN-Chain-of-Responsibility-an-elegant-way-to-handle-complex-validation"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fblogersii.pl%2f2016%2f05%2f18%2fchain-of-responsibility-an-elegant-way-to-handle-complex-validation%2f" style="border:0px"/></a></div></div>plukszahttps://dotnetomaniak.pl/Users/HPB9dBJm90CAzxvpFATC3w2016-05-27T07:06:17Zhttps://dotnetomaniak.pl/EN-Chain-of-Responsibility-an-elegant-way-to-handle-complex-validation42290In this post I will try to introduce the concept of validation using the Chain of Responsibility pattern (CoR), which I use successfull for yearshttp://blogersii.pl/2016/05/18/chain-of-responsibility-an-elegant-way-to-handle-complex-validation/http://dotnetomaniak.pl/Data/Thumbnails/small_yhQWbfSWi0GR1VGCbM8A6w.pnghttps://dotnetomaniak.pl/Piotrosz-Wzorce-projektowe-%C5%81a%C5%84cuch-odpowiedzialno%C5%9BciPiotrosz | Wzorce projektowe: Łańcuch odpowiedzialności2009-05-07T19:33:41Z<div><div><div style="float:right"><img alt ="" src="http://dotnetomaniak.pl/Data/Thumbnails/small_KuyzAeY_I0imxwaeFLbihg.png"/></div><div>Krótki opis wzorca Łańcuch odpowiedzialności (Chain of responsibility).
Wzorzec Chain of Responsibility pracuje z listą obiektów (Handlerów), które implementują interfes IHandler.
Handlery te uporządkowane są w łańcuch. Każdy Handler przyjmuje komendę (może to być implementacja wzorca projektowego Command) i jeśli potrafi to zrobić - obsługuje ją. Jeśli dany Handler nie może obsłużyć komendy, przekazuje ją następnemu elementowi w łańcuchu.</div></div><div style="padding-top:4px"><a rev="vote-for" href="https://dotnetomaniak.pl/Piotrosz-Wzorce-projektowe-%C5%81a%C5%84cuch-odpowiedzialno%C5%9Bci"><img alt="Podbij ↑" src="https://dotnetomaniak.pl/image.axd?url=http%3a%2f%2fwww.piotr.ludwiczuk.aspnet.pl%2fpost%2fWzorce-projektowe-c581ancuch-odpowiedzialnosci.aspx" style="border:0px"/></a></div></div>mackohttps://dotnetomaniak.pl/Users/n6HrySbCMkGkdWWjKfFEFA2009-05-17T05:34:42Zhttps://dotnetomaniak.pl/Piotrosz-Wzorce-projektowe-%C5%81a%C5%84cuch-odpowiedzialno%C5%9Bci62100Krótki opis wzorca Łańcuch odpowiedzialności (Chain of responsibility).
Wzorzec Chain of Responsibility pracuje z listą obiektów (Handlerów), które implementują interfes IHandler.
Handlery te uporządkowane są w łańcuch. Każdy Handler przyjmuje komendę (może to być implementacja wzorca projektowego Command) i jeśli potrafi to zrobić - obsługuje ją. Jeśli dany Handler nie może obsłużyć komendy, przekazuje ją następnemu elementowi w łańcuchu.http://www.piotr.ludwiczuk.aspnet.pl/post/Wzorce-projektowe-c581ancuch-odpowiedzialnosci.aspxhttp://dotnetomaniak.pl/Data/Thumbnails/small_KuyzAeY_I0imxwaeFLbihg.png