Example #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="extractor">Extractor instance</param>
 /// <param name="discoverer">Discoverer instance</param>
 /// <param name="authorization">Authorization instance</param>
 /// <param name="route">Route selector instance</param>
 /// <param name="parser">Parser instance</param>
 /// <param name="serializer">Serializer instance</param>
 /// <param name="settings">Settings instance</param>
 public Orchestrator(IExtractor extractor = null, IDiscoverer discoverer = null, IAuthorization authorization = null, IRouteSelector route = null, IParser parser = null, ISerializer serializer = null, ISettings settings = null)
 {
     Settings      = settings ?? new Settings();
     Extractor     = extractor ?? new Extractor();
     Discoverer    = discoverer ?? new Discoverer(Extractor, Settings);
     Authorization = authorization;
     RouteSelector = route;
     Parser        = parser ?? new Parser(Authorization, RouteSelector);
     Serializer    = serializer ?? new JsonOutputSerializer(Settings);
 }
 public FilterRouteSelector(IRouteSelector routeSelector)
 {
     ParentRouteSelector = routeSelector;
 }
Example #3
0
 public Parser(IAuthorization auth, IRouteSelector selector)
 {
     Authorization = auth;
     RouteSelector = selector;
 }