private IImmutableDictionary <string, GanymedeRequestResource> BuildResourceDictionary( GanymedeRequestSpecification requestSpecification) { if (requestSpecification == null) { throw new GanymedeException($"The request specification for {nameof(TClientImplementation)} is null."); } return(requestSpecification.Resources.ToImmutableDictionary(pair => pair.Name, pair => pair)); }
public GanymedeRequest(GanymedeRequestSpecification requestSpecification) { RequestSpecification = requestSpecification; _resources = BuildResourceDictionary(RequestSpecification); }