Exemplo 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));
                    }
                }
Exemplo n.º 2
0
 public abstract T Resolve(DictionaryContainer container);
Exemplo n.º 3
0
 public override T Resolve(DictionaryContainer container)
 {
     return(this.instance);
 }
Exemplo n.º 4
0
 public T Resolve(DictionaryContainer container)
 {
     return(this.state.Resolve(container));
 }