예제 #1
0
 /// <inheritdoc />
 public object Get(
     Type requestedType,
     CustomScopeObject customScope
     )
 {
     throw new NotImplementedException();
 }
예제 #2
0
        public List <T> GetAll <T>(CustomScopeObject customScope)
        {
            //return ((IResolution<T>)this).GetAll(
            //        new ResolutionRequest<CarcassCluster, T>(
            //            true,
            //            customScope
            //            )
            //    );

            if (this is IResolution <T> r)
            {
                return(r.GetAll(
                           new ResolutionRequest <CarcassCluster, T>(
                               true,
                               customScope
                               )
                           ));
            }
            else
            {
                throw new DpdtException(
                          DpdtExceptionTypeEnum.NoBindingAvailable,
                          $"No bindings available for {typeof(T).FullName}",
                          typeof(T).FullName
                          );
            }
        }
예제 #3
0
 /// <inheritdoc />
 public IEnumerable <object> GetAll(
     Type requestedType,
     CustomScopeObject scope
     )
 {
     throw new NotImplementedException();
 }
예제 #4
0
        public IEnumerable <object> GetAll(Type requestedType, CustomScopeObject scope)
        {
            var result = _typeContainerGetAll.GetGetObject(
                requestedType,
                new ResolutionRequest <CarcassCluster>(
                    true,
                    requestedType,
                    scope
                    )
                );

            return((IEnumerable <object>)result);
        }
예제 #5
0
        public object Get(System.Type requestedType, CustomScopeObject scope)
        {
            var result = _typeContainerGet.GetGetObject(
                requestedType,
                new ResolutionRequest <CarcassCluster>(
                    false,
                    requestedType,
                    scope
                    )
                );

            return(result);
        }
예제 #6
0
        public T Get <T>(CustomScopeObject customScope)
        {
            //return ((IResolution<T>)this).Get(
            //        new ResolutionRequest<CarcassCluster, T>(
            //            false,
            //            customScope
            //            )
            //    );

            if (this is IResolution <T> r)
            {
                return(r.Get(
                           new ResolutionRequest <CarcassCluster, T>(
                               false,
                               customScope
                               )
                           ));
            }
            else
            {
                return(RaiseNoBindingAvailable <T>());
            }
        }
 IEnumerable <object> IResolution.GetAll(Type requestedType, CustomScopeObject customScope)
 {
     throw new NotImplementedException();
 }
 List <T> IResolution.GetAll <T>(CustomScopeObject customScope)
 {
     throw new NotImplementedException();
 }
 object IResolution.Get(Type requestedType, CustomScopeObject customScope)
 {
     throw new NotImplementedException();
 }
예제 #10
0
 public List <T1> GetAll <T1>(CustomScopeObject customScope)
 {
     throw new NotImplementedException();
 }
예제 #11
0
 public T1 Get <T1>(CustomScopeObject customScope)
 {
     throw new NotImplementedException();
 }