Giter Site home page Giter Site logo

dynamo.ioc's People

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynamo.ioc's Issues

Nuget packages

Hello Martin,

When do you expect to release the new version of Dynamo IoC on NuGet?

If you want I can submit a pull- request for the package descriptor and a small build process.

Let met know..

Regards,
Bert

Potential memory leak

If container is initialized with CompileMode.Dynamic the used memory is continuously growing.
With CompileMode.Delegate this does not happen.

You should be able to reproduce with this sample code:

class Program
{
    static void Main(string[] args)
    {
        while (true)
        {
            var container = new IocContainer(defaultCompileMode: CompileMode.Dynamic);
            container.Register<ITransient, Transient>();
            container.Compile();
            container.Dispose();
        }
    }
}

public interface ITransient
{
    void DoSomething();
}

public class Transient : ITransient
{
    public void DoSomething()
    {
        Console.WriteLine("Hello");
    }
}

.NET v4.0 compatibility

Hello Martin,

In version 3 of Dynamo you switched from .NET v4.0 to v4.5 as your target framework. My current codebase is running on v4.0.

When I upgraded to 3.0.0.1 I got the following error:
Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.

This error is caused by the fact that the ExtensionAttribute is moved from the System.Core to mscorlib assembly. See http://stackoverflow.com/a/11265032.

I have forked this project and changed the target framework back to v4.0, compiled it and include that assembly in my project, which fixed the problem for me.

So I was wondering if you plan to use v4.5 specific APIs? If not, we could add new projects targeting the v4.0 specifically. Via NuGet we can distribute runtime specific versions, see http://docs.nuget.org/docs/creating-packages/creating-and-publishing-a-package#Framework_Names.

Regards,
Bert

Source Code

Not sure if it was an accident, but the source has not been pushed.

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.