Beispiel #1
0
 public MemberSerializers(IAttributeSpecifications runtime, IMemberAccessors accessors,
                          IMemberConverters converters, IMemberContents content)
 {
     _runtime    = runtime;
     _accessors  = accessors;
     _converters = converters;
     _content    = content;
 }
 // ReSharper disable once TooManyDependencies
 public AlteredMemberConverters(ISpecification <MemberInfo> specification, ISpecification <IConverter> assigned,
                                IAlteration <IConverter> alteration,
                                IMemberConverters converters)
 {
     _specification = specification;
     _assigned      = assigned;
     _alteration    = alteration;
     _converters    = converters;
 }
Beispiel #3
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;
 }
Beispiel #4
0
 public Entities(IEntityMembers registered, IMemberConverters converters, IMemberSerializations members)
 {
     _registered = registered;
     _converters = converters;
     _members    = members;
 }
Beispiel #5
0
 public static IConverter Get(this IMemberConverters @this, IMember descriptor)
 => @this.Get(descriptor.Metadata) ?? @this.Get(descriptor.MemberType);
Beispiel #6
0
 IMemberConverters Register(IServiceProvider services, IMemberConverters converters)
 => new AlteredMemberConverters(_specification, _alteration, converters);
 public AlteredMemberConverters(ISpecification <MemberInfo> specification, IAlteration <IConverter> alteration,
                                IMemberConverters converters)
     : this(specification, AssignedSpecification, alteration, converters)
 {
 }