Ejemplo n.º 1
0
                public override T Resolve(DictionaryContainer container)
                {
                    lock (this)
                    {
                        if (this.SingletonHasNotBeenCreated)
                        {
                            var instance = this.resolveFunction(container);
                            this.resolver.state = new ResolvedState(instance);
                            this.SignalThatSingletonHasBeenCreated();
                        }

                        return(this.resolver.Resolve(container));
                    }
                }
Ejemplo n.º 2
0
 public abstract T Resolve(DictionaryContainer container);
Ejemplo n.º 3
0
 public override T Resolve(DictionaryContainer container)
 {
     return(this.instance);
 }
Ejemplo n.º 4
0
 public T Resolve(DictionaryContainer container)
 {
     return(this.state.Resolve(container));
 }