Coder Social home page Coder Social logo

akashkallatti / postsharp.samples Goto Github PK

View Code? Open in Web Editor NEW

This project forked from postsharp/postsharp.samples

0.0 0.0 0.0 4.54 MB

PostSharp Samples

Home Page: https://samples.postsharp.net/

License: The Unlicense

C# 87.22% CSS 1.55% HTML 10.37% Dockerfile 0.18% Shell 0.13% Go 0.07% TSQL 0.20% ASP.NET 0.18% JavaScript 0.10%

postsharp.samples's Introduction

PostSharp.Samples

Welcome to this collection of PostSharp example projects.

You can browse these samples online and navigate the code just by clicking on code references, or you can download them on GitHub.

Project Description
Aspect Framework
PostSharp.Samples.CustomLogging Logs method calls including parameter values.
PostSharp.Samples.CustomCaching Caches the results of methods calls
PostSharp.Samples.ExceptionHandling Add parameter values to call stack in exception details. Report and then swallow exceptions in entry points.
PostSharp.Samples.AutoRetry Automatically retries a method call when it fails.
PostSharp.Samples.WeakEvent Prevents memory leaks due to events.
PostSharp.Samples.ValidateResourceString Prints a build-time warning when incorrect resource string name is passed to parameter.
PostSharp.Samples.SessionState Stores a field or property in the session state or page view state.
PostSharp.Samples.Transactions Automatically executes a method inside a transaction.
PostSharp.Samples.Profiling Measure different execution times of methods, including async methods.
PostSharp.Samples.Encryption Automatically encrypts and decrypts parameter and fields/properties
PostSharp.Samples.MiniProfiler Measures method execution time with MiniProfiler of StackExchange.
PostSharp.Samples.Persistence Persists fields or properties into the Windows registry or app.config.
PostSharp.Samples.AutoDataContract Automatically adds [DataContract] and [DataMember] attributes to derived classes and all properties
PostSharp.Samples.Authorization Requires permissions before getting or setting fields or executing methods.
PostSharp.Samples.NormalizeString Trims and lowercases strings before they are assigned to a field or property.
PostSharp.Samples.StoredProcedure Implements something like P-Invoke, but for database stored procedures.
Diagnostics
PostSharp.Samples.Logging.Console Demonstrates how to configure PostSharp Logging so that it directs its output to the system console.
PostSharp.Samples.Logging.PerRequest Shows how to have different verbosity for each request,
PostSharp.Samples.Logging.Customization Shows how to customize PostSharp Logging.
PostSharp.Samples.Logging.Etw Demonstrates how to configure PostSharp Logging so that it directs its output to ETW.
PostSharp.Samples.Logging.Etw.CustomSource Demonstrates how use PostSharp Logging with a custom ETW source (instead of the predefined one).
PostSharp.Samples.Logging.Log4Net Demonstrates how to configure PostSharp Logging so that it directs its output to log4net.
PostSharp.Samples.Logging.NLog Demonstrates how to configure PostSharp Logging so that it directs its output to NLog.
PostSharp.Samples.Logging.Serilog Demonstrates how to configure PostSharp Logging so that it directs its output to Serilog.
PostSharp.Samples.Logging.Loupe Demonstrates how to configure PostSharp Logging so that it directs its output to Loupe.
PostSharp.Samples.Logging.CommonLogging Demonstrates how to configure PostSharp Logging so that it directs its output to Common.Logging.
PostSharp.Samples.Logging.CustomBackend.ServiceStack Demonstrates how to implement a PostSharp Logging adapter for your custom logging framework.
PostSharp.Samples.Logging.Audit Shows how to append an audit record to a database when a method is invoked.
Distributed Diagnostics with Elastic Search
PostSharp.Samples.Logging.ElasticStack/MicroserviceExample The server-side service demonstrating correlation of logs of a distributed application with Elastic Search.
PostSharp.Samples.Logging.ElasticStack/ClientExample The server-side service demonstrating correlation of logs of a distributed application with Elastic Search.
XAML
PostSharp.Samples.Xaml Demonstrates a few ready-made aspects that are useful for XAML
Caching
PostSharp.Samples.Caching Caching method results with Redis and different ways to remove things from the cache.
Threading
PostSharp.Samples.Threading.PingPong The classic educational ping-pong example.
PostSharp.Samples.Threading.ThreadDispatching A simple WPF progress bar updated from a background thread.
Platform Support
PostSharp.Samples.Blazor.AutoRetry Demonstrates a custom aspect used in a Blazor application.

postsharp.samples's People

Contributors

gfraiteur avatar prochan2 avatar silversharp avatar addabis avatar balasd avatar aleksd avatar thexenocide avatar kendallmiller avatar soothsilver avatar nmandica avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.