예제 #1
0
 public ActivationContexts(IMemberAccessors accessors, ImmutableArray <IMember> members,
                           Func <Func <string, object>, IActivator> activator)
 {
     _accessors = accessors;
     _members   = members;
     _activator = activator;
 }
 public MarkupExtensionPartsEvaluator(IParser <MemberInfo> parser, IEvaluator evaluator, ITypeMembers members,
                                      IMemberAccessors accessors, IConstructors constructors,
                                      System.IServiceProvider provider, params object[] services)
     : this(parser, evaluator, members, accessors, constructors, provider, TypePartsFormatter.Default,
            services)
 {
 }
예제 #3
0
 public ParameterizedMemberAccessors(IAllowedMemberValues allow, IMemberAccessors accessors,
                                     IGetterFactory getter)
 {
     _allow     = allow;
     _accessors = accessors;
     _getter    = getter;
 }
 public ObjectTypeWalker(IVariableTypeMemberSpecifications specifications, IMemberAccessors accessors,
                         ITypeMembers members, IEnumeratorStore enumerators, object root)
     : base(members, enumerators, root)
 {
     _specifications = specifications;
     _accessors      = accessors;
 }
예제 #5
0
 // ReSharper disable once TooManyDependencies
 public ReferenceWalker(IReferencesPolicy policy, ITypeMembers members, IEnumeratorStore enumerators,
                        IMemberAccessors accessors, object root)
     : base(members, enumerators, root)
 {
     _policy    = policy;
     _accessors = accessors;
 }
 // ReSharper disable once TooManyDependencies
 public AllMembersParameterizedActivators(IActivators activators, IQueriedConstructors constructors,
                                          IConstructorMembers members, IMemberAccessors accessors,
                                          ITypeMembers typeMembers)
     : this(activators, constructors, members, accessors, typeMembers,
            new ParameterizedAwareTypeDefaults(TypeDefaults.Defaults.Get(activators), constructors))
 {
 }
 public ApplyMemberValuesCommand(IMemberAccessors accessors, ImmutableArray <IMember> members,
                                 ITableSource <string, object> values)
 {
     _accessors = accessors;
     _members   = members;
     _values    = values;
 }
 public ParameterizedActivators(IActivators activators, IQueriedConstructors constructors,
                                IConstructorMembers members, IMemberAccessors accessors)
 {
     _activators   = activators;
     _constructors = constructors;
     _members      = members;
     _accessors    = accessors;
 }
예제 #9
0
 public MemberSerializers(IMemberSerializers members, IMemberAccessors accessors,
                          IElementMemberContents contents, IElementMember member)
 {
     _members   = members;
     _accessors = accessors;
     _contents  = contents;
     _member    = member;
 }
 public ActivationContexts(IMemberAccessors accessors, ImmutableArray <IMember> members,
                           Func <Func <string, object>, IActivator> activator)
     : this(accessors, members,
            new TableSource <string, IMember>(members.ToDictionary(x => x.Name,
                                                                   StringComparer.InvariantCultureIgnoreCase)),
            activator)
 {
 }
예제 #11
0
 ObjectIdentifiers(ITypeMembers members, IEnumeratorStore enumerators, IMemberAccessors accessors,
                   Func <TypeInfo, string> names)
 {
     _members     = members;
     _enumerators = enumerators;
     _accessors   = accessors;
     _names       = names;
 }
예제 #12
0
 public References(IReferencesPolicy policy, ITypeMembers members, IEnumeratorStore enumerators,
                   IMemberAccessors accessors)
 {
     _policy      = policy;
     _members     = members;
     _enumerators = enumerators;
     _accessors   = accessors;
 }
예제 #13
0
 public MemberSerializers(IAttributeSpecifications runtime, IMemberAccessors accessors,
                          IMemberConverters converters, IMemberContents content)
 {
     _runtime    = runtime;
     _accessors  = accessors;
     _converters = converters;
     _content    = content;
 }
예제 #14
0
 // ReSharper disable once TooManyDependencies
 public References(ISpecification <TypeInfo> allow, IReferencesPolicy policy, ITypeMembers members,
                   IEnumeratorStore enumerators, IMemberAccessors accessors)
 {
     _allow       = allow;
     _policy      = policy;
     _members     = members;
     _enumerators = enumerators;
     _accessors   = accessors;
 }
예제 #15
0
 public ValidMemberSpecification(IMemberAccessors accessors) : base(
         new DelegatedSpecification <IMember>(x =>
                                              !x.Metadata
                                              .DeclaringType
                                              .GetTypeInfo()
                                              .IsGenericTypeDefinition),
         accessors.IfAssigned())
 {
 }
예제 #16
0
 // ReSharper disable once TooManyDependencies
 public ActivationContexts(IMemberAccessors accessors, MemberContext members,
                           Func <Func <string, object>, IActivator> activator, ITypeDefaults defaults)
     : this(accessors, members,
            new TableSource <string, IMember>(members.Members
                                              .ToDictionary(x => x.Name,
                                                            StringComparer.InvariantCultureIgnoreCase)),
            activator, defaults)
 {
 }
예제 #17
0
 // ReSharper disable once TooManyDependencies
 public ReferenceWalker(ISpecification <TypeInfo> @default, IReferencesPolicy policy, ITypeMembers members,
                        IEnumeratorStore enumerators,
                        IMemberAccessors accessors, object root)
     : base(members, enumerators, root)
 {
     _default   = @default;
     _policy    = policy;
     _accessors = accessors;
 }
 // ReSharper disable once TooManyDependencies
 public MarkupExtensions(IEvaluator evaluator, ITypeMembers members, IMemberAccessors accessors,
                         IConstructors constructors, System.IServiceProvider provider)
 {
     _evaluator    = evaluator;
     _members      = members;
     _accessors    = accessors;
     _constructors = constructors;
     _provider     = provider;
 }
예제 #19
0
 public ReferenceWalker(IReferencesPolicy policy, IVariableTypeMemberSpecifications specifications,
                        ITypeMembers members,
                        IEnumeratorStore enumerators, IMemberAccessors accessors, object root)
     : base(members, enumerators, root)
 {
     _policy         = policy;
     _specifications = specifications;
     _accessors      = accessors;
 }
 // ReSharper disable once TooManyDependencies
 public AllMembersParameterizedActivators(IActivators activators, IQueriedConstructors constructors,
                                          IConstructorMembers members, IMemberAccessors accessors,
                                          ITypeMembers typeMembers, ITypeDefaults defaults)
 {
     _activators   = activators;
     _constructors = constructors;
     _members      = members;
     _accessors    = accessors;
     _typeMembers  = typeMembers;
     _defaults     = defaults;
 }
예제 #21
0
 // ReSharper disable once TooManyDependencies
 public ActivationContexts(IMemberAccessors accessors, MemberContext members,
                           ITableSource <string, IMember> table,
                           Func <Func <string, object>, IActivator> activator,
                           ITypeDefaults defaults
                           )
 {
     _accessors = accessors;
     _members   = members;
     _table     = table;
     _activator = activator;
     _defaults  = defaults;
 }
예제 #22
0
 // ReSharper disable once TooManyDependencies
 public MemberSerializers(IAttributeSpecifications runtime, IMemberAccessors accessors,
                          IMemberConverters converters, IMemberContents content, IIdentityStore identities,
                          ITypes types, IIdentifiers identifiers)
 {
     _runtime     = runtime;
     _accessors   = accessors;
     _converters  = converters;
     _content     = content;
     _identities  = identities;
     _types       = types;
     _identifiers = identifiers;
 }
 public MarkupExtensionPartsEvaluator(IParser <MemberInfo> parser, IEvaluator evaluator, ITypeMembers members,
                                      IMemberAccessors accessors, IConstructors constructors,
                                      System.IServiceProvider provider, IFormatter <TypeParts> formatter,
                                      params object[] services)
 {
     _parser       = parser;
     _evaluator    = evaluator;
     _members      = members;
     _accessors    = accessors;
     _constructors = constructors;
     _provider     = provider;
     _formatter    = formatter;
     _services     = services;
 }
예제 #24
0
 // ReSharper disable once TooManyDependencies
 public ActivationContexts(IMemberAccessors accessors, MemberContext members, IActivator activator,
                           ITypeDefaults defaults)
     : this(accessors, members, activator.Accept, defaults)
 {
 }
 public ObjectTypeWalker(ITypeMembers members, IEnumeratorStore enumerators, IMemberAccessors accessors,
                         object root)
     : this(Specifications, accessors, members, enumerators, root)
 {
 }
예제 #26
0
 public ObjectIdentifiers(IIdentifiers identifiers, ITypeMembers members, IEnumeratorStore enumerators,
                          IMemberAccessors accessors)
     : this(members, enumerators, accessors, identifiers.Get)
 {
 }
예제 #27
0
 public ReferenceWalker(IReferencesPolicy policy, ITypeMembers members, IEnumeratorStore enumerators,
                        IMemberAccessors accessors, object root)
     : this(policy, Specifications, members, enumerators, accessors, root)
 {
 }
예제 #28
0
 // ReSharper disable once TooManyDependencies
 public References(IContainsCustomSerialization custom, IReferencesPolicy policy, ITypeMembers members,
                   IEnumeratorStore enumerators, IMemberAccessors accessors)
     : this(AssignedSpecification <TypeInfo> .Default.And(custom.Inverse()), policy, members, enumerators,
            accessors)
 {
 }
예제 #29
0
 public ActivationContexts(IMemberAccessors accessors, ImmutableArray <IMember> members, IActivator activator)
     : this(accessors, members, activator.Accept)
 {
 }
예제 #30
0
 public ParameterizedMemberAccessors(IAllowedMemberValues allow, IMemberAccessors accessors)
     : this(allow, accessors, GetterFactory.Default)
 {
 }