Using PerlNET Components in ASP.NET
We saw the power of ASP.NET in conjunction with PerlASPX when authoring Web Forms and providing the server code in Perl for these forms. However, the ability of using existing PerlNET components as back-end in ASP.NET makes this platform perfect for authoring robust Web applications by putting the business logic in separate, independent .NET assemblies.
We demonstrate this concept using the Roulette component we presented in Chapter 12. We altered its functionality to be suitable for more general use. The full code resides in the RouletteBackend folder under this chapter's samples. Here we present the fragments with major changes.
# # Roulette.pm - ASP.NET Back-end # package OI::Samples::Roulette; ...