Giter VIP home page Giter VIP logo

aspectf's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

aspectf's Issues

Howlong() duration

I've been using the library and notice the duration wasn't captured correctly.

I make the change the method HowLong() of DataTime start to use UniversalTime 
so I could capture the correct duration.



Original issue reported on code.google.com by [email protected] on 28 Jun 2012 at 1:23

Static property Us on class Let causes multiple anonymous methods to be registered

What steps will reproduce the problem?
1. If using Let.Us and calling multiple aspects such as TrapLog or calling the 
same method again.
2. See the stack trace of method calls. There are numerous anonymous method 
called
3. The reason maybe that there is a combine defined. But there is no way to 
clear the combined Actions when new call is made.

What is the expected output? What do you see instead?
The stack trace should have as many anonymous methods as the number of chain 
calls.

What version of the product are you using? On what operating system?
Latest checkin as on 3/2/2011

Please provide any additional information below.


Original issue reported on code.google.com by [email protected] on 3 Feb 2011 at 7:55

Attachments:

HowLong little error

What steps will reproduce the problem?
1. AspectF.define.HowLong(Logger, "Start", "Stop {3}{2}{1}{0}).Do
(()=>Thread.Sleep(2000);))};

What is the expected output? What do you see instead?
Expected Stop 00:00:05.6088365
Instead: Stop -00:59:57.2658875

What version of the product are you using? On what operating system?
1.3

Please provide any additional information below.
Correct
DateTime start = DateTime.Now();
to
DateTime start = DateTime.Now.ToUniversalTime();
?

Original issue reported on code.google.com by [email protected] on 11 Jan 2010 at 12:05

Refctor simple

Break out Test class from Aspect core class so its reusable.




Original issue reported on code.google.com by [email protected] on 5 Nov 2009 at 11:41

Until still broken

The Until extension method in 1.3 hasn't been updated like the While extension 
method has. The While extension method does what it says it does which is 
execute the Do while the condition is true, but the Until method loops while 
the condition is not true (not executing the code) and then then executes the 
Do code once.

The Until extension method needs to be brought into line like the While 
extension method was.



        [DebuggerStepThrough]
        public static AspectF Until(this AspectF aspect, Func<bool> test)
        {
            return aspect.Combine((work) =>
            {
                do
                {
                    work();
                } 
                while (!test());
            });
        }

Original issue reported on code.google.com by [email protected] on 23 Jun 2010 at 9:50

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.