Git Product home page Git Product logo

postsharp / postsharp.samples Goto Github PK

View Code? Open in Web Editor NEW
117.0 11.0 58.0 5.05 MB

PostSharp Samples

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

License: The Unlicense

C# 71.52% CSS 1.58% HTML 8.46% Dockerfile 0.15% Shell 0.10% Go 0.05% TSQL 0.16% ASP.NET 0.14% JavaScript 17.83%
postsharp aop-aspects aop aop-architecture aop-framework aspect-oriented-programming aspect-oriented-framework aspects dotnet diagnostics

postsharp.samples's People

Contributors

addabis avatar aleksd avatar balasd avatar dependabot[bot] avatar gfraiteur avatar kendallmiller avatar nmandica avatar prochan2 avatar silversharp avatar soothsilver avatar thexenocide avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

postsharp.samples's Issues

PostSharp No Longer Works with Blazor Web Assembly in .NET 8

Hi there

You've got a sample project at, "Blazor/PostSharp.Samples.Blazor.AutoRetry/PostSharp.Samples.Blazor.AutoRetry.csproj".

This project was originally running .NET 6 and was working with no issues - I could see the output of the Aspect in the browser developer tool console window.

I then updated the .NET version to 8.0, the "Microsoft.AspNetCore.Components.WebAssembly" and "Microsoft.AspNetCore.Components.WebAssembly.DevServer" NuGet package refs to version 8.0.2 the PostSharp package ref version to 2024.0.5. After the upgrades, PostSharp no longer seems to inject the aspect behaviour - I see no Aspect output in the console window anymore.

I want to use PostSharp in my Web Assembly project but I have no intention of rolling back to a previous version of .NET just to support your (commercial) product.

Am I missing something in the upgrade? Everything else within the Blazor app seems to be working as expected.

Missing Advanced Code Samples For Dependency Injection

The code samples for explaining, "Consuming Dependencies from an Aspect", are all missing from the "PostSharp.Samples" solution. All of these are great examples to follow in real practical projects for something as simple as creating a detailed physical log file within PostSharp Aspects.

This section presents several ways to consume dependencies from an aspect:

  • Using a Global Composition Container
  • Using a Global Service Locator
  • Using Dynamic Dependency Resolution
  • Using Contextual Dependency Resolution
  • Importing Dependencies from the Target Object

Missing postsharp developer license

The documentation on this subject is incomplete, and while looking for a solution or hint in this sample, one can discover that it does not compile for the same reason:

Severity Code Description Project File Line Suppression State
Error License error. No valid license key has been installed. To register a license key, see https://doc.postsharp.net/deploying-keys. PostSharp.Samples.Authorization

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.