Dan,
Thanks for the explanation. It definitely helps to start.
As I wanted to give a try I faced incompatibility problem when adding
reference to yadic dll from fsi
Microsoft (R) F# 2.0 Interactive build 2.0.0.0
Copyright (c) Microsoft Corporation. All Rights Reserved.
For help type #help;;
> #r @"C:\Downloads\yadic\yadic-72.dll";;
#r @"C:\Downloads\yadic\yadic-72.dll";;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
stdin(1,1): error FS0231: The F#-compiled DLL 'C:\Downloads\yadic
\yadic-72.dll' needs to be recompiled to be used with this version of
F#
On Jun 13, 5:43 pm, Daniel Worthington-Bodart <
d...@bodar.com> wrote:
> A good place to start is looking at the .NET tests
>
>
http://code.google.com/p/yadic/source/browse/src/Yadic.Tests/SimpleCo...
>
> These are in C# even though the DI tool is written in F# mainly to ensure
> that SimpleContainer can be called from any .NET language.
>
> There are only 3 methods to understand:
>
> - Add (Overloaded to allow you to add a type and an implementation or a
> type and a function / delegate that should create said type)
> - Resolve (Creates the type and any dependencies needed as needed)
> - Decorate ( Allows you to wrap another type enabling composition /
> delegation)
>
> When constructing a SimpleContainer you can pass a reference to another
> container. This allows you to create as many scopes as you like in your
> application.
>
> The last rule is that Yadic will only ever create an instance once and is
> defined by the lifetime of the container.
>
> Play around and see how you get on...
>
> On 13 June 2011 14:09, Misha Gringaouz <
mgringa...@gmail.com> wrote:
>
>
>
> > Hi Dan,
>
> > I'm using F#
>
> > On Jun 13, 3:53 pm, Daniel Worthington-Bodart <
d...@bodar.com> wrote:
> > > Hi Misha,
>
> > > Are you planning to use Java, .NET or Ruby version?
>
> > > Dan
>
> > > On 13 June 2011 13:22, Misha Gringaouz <
mgringa...@gmail.com> wrote:
>
> > > > Hi,
>
> > > > I want to try yadic as I don't have any practice in using IOC's and
> > > > want to acquire some skill, but cant' find any example or guide on how
> > > > to use it.
>
> > > > How to start?
>
> > > > Thanks.- Hide quoted text -
>
> > > - Show quoted text -- Hide quoted text -