Esempio n. 1
0
 public IResolveSingle <T> ResolveSingle <T>(IResolveSingle <T> value)
 => Bind(value);
Esempio n. 2
0
        public static IResolveBuilder <T, ClientObjectResolveContext> ValidateIsClientObjectResolveBuilder <T>(this IResolveSingle <T> resolve)
        {
            if (resolve == null)
            {
                throw Logger.Fatal.ArgumentNull(nameof(resolve));
            }

            var result = (resolve as IResolveBuilder <T, ClientObjectResolveContext>);

            if (result == null)
            {
                throw Logger.Fatal.ArgumentNotAssignableTo(
                          nameof(resolve),
                          resolve,
                          typeof(IResolveBuilder <T, ClientObjectResolveContext>)
                          );
            }

            return(result);
        }
Esempio n. 3
0
 public IResolveSingle <T> ResolveSingle <T>(
     IResolveSingle <T> value,
     params Expression <Func <T, Object> >[] retrievals
     )
     where T : ClientObject
 => Bind(value, retrievals);