GithubHelp home page GithubHelp logo

fodydemo's Introduction

.NET

FodyDemo

Playing with fody weaving library

In this demo, i m playing with Fody weaving library.

The solution consists of multiple apps using some of fody plugins :

1️⃣ ToString.Fody.App : in this app, i m using ToString in order to generate ToString implementation for decorated classes. Only public properties will be handled. The attribute IgnoreDuringToString can be used to exclude unwanted public properties.

2️⃣ PropertyChanged.Fody.App : in this app, i m using PropertyChanged in order to raise property changed event in properties setters for classes implementing interface INotifyPropertyChanged.

3️⃣ MethodTimer.Fody.App : in this app, i m using MethodTimer in order to measure methods execution time. The attribute Time is used to mark methods to be measured. The static class MethodTimeLogger is used to customize measure logs.

4️⃣ MethodBoundaryAspect.Fody.App : in this app, i m using MethodBoundaryAspect in order to implement aspects. The sample class use a logging aspect in order to log information before/after methods calling or when an exception is thrown.

Tools : vs22, net 6.0, fody

fodydemo's People

Contributors

aimenux avatar

Watchers

 avatar  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.