public ChannelConfiguration( [NotNull] TypeConfiguration <T1, TId> type1Configuration, [NotNull] TypeConfiguration <T2, TId> type2Configuration) { if (type1Configuration == null) { throw new ArgumentNullException(nameof(type1Configuration)); } if (type2Configuration == null) { throw new ArgumentNullException(nameof(type2Configuration)); } Type1Configuration = type1Configuration; Type2Configuration = type2Configuration; }
public ChannelConfiguration( [NotNull] Func <T1, TId> type1IdExtractor, [NotNull] Func <T2, TId> type2IdExtractor) { if (type1IdExtractor == null) { throw new ArgumentNullException(nameof(type1IdExtractor)); } if (type2IdExtractor == null) { throw new ArgumentNullException(nameof(type2IdExtractor)); } Type1Configuration = new TypeConfiguration <T1, TId>(type1IdExtractor); Type2Configuration = new TypeConfiguration <T2, TId>(type2IdExtractor); }
public EndpointConfiguration( [NotNull] TypeConfiguration <T, TId> typeConfig, [NotNull] ICrudEndpoint <T, TId> endpoint) { if (typeConfig == null) { throw new ArgumentNullException(nameof(typeConfig)); } if (endpoint == null) { throw new ArgumentNullException(nameof(endpoint)); } TypeConfig = typeConfig; Endpoint = endpoint; EndpointType = typeof(T); }
public EndpointConfiguration(TypeConfiguration <T, TId> typeConfig, ICrudEndpoint <T, TId> endpoint) { TypeConfig = typeConfig; Endpoint = endpoint; }