예제 #1
0
 public RouteBuilder(
     IConfiguration configuration,
     IDependencyGraphFactory dependencyGraphFactory)
 {
     _configuration          = configuration;
     _dependencyGraphFactory = dependencyGraphFactory;
 }
예제 #2
0
        /// <summary>
        /// Constructs a new router
        /// </summary>
        /// <param name="dependencyGraphFactory"></param>
        public Router(IDependencyGraphFactory dependencyGraphFactory)
        {
            _dependencyGraphFactory = dependencyGraphFactory;

            _owinContextKey = "R:" + Guid.NewGuid().ToShortString(false);
            _dependencies   = new List <IDependency>();
            _segments       = new List <IRoutingSegment>();
        }
예제 #3
0
 /// <summary>
 /// Constructs a new OWIN pipeline builder
 /// </summary>
 public Builder(
     IDependencyGraphFactory dependencyGraphFactory,
     ISegmenterFactory segmenterFactory)
 {
     _dependencyGraphFactory = dependencyGraphFactory;
     _segmenterFactory       = segmenterFactory;
     _components             = new List <Component>();
 }
예제 #4
0
        /// <summary>
        /// Constructs a new router
        /// </summary>
        public Router(
            IConfiguration configuration,
            IDependencyGraphFactory dependencyGraphFactory)
        {
            _dependencyGraphFactory = dependencyGraphFactory;
            _traceFilter            = new TraceFilter(configuration, this);

            _owinContextKey = "R:" + Guid.NewGuid().ToShortString(false);
            _dependencies   = new List <IDependency>();
            _segments       = new List <IRoutingSegment>();
        }
예제 #5
0
 /// <summary>
 /// Constructs a new OWIN pipeline builder
 /// </summary>
 public Builder(
     IDependencyGraphFactory dependencyGraphFactory,
     ISegmenterFactory segmenterFactory,
     IConfiguration configuration)
 {
     _dependencyGraphFactory = dependencyGraphFactory;
     _segmenterFactory       = segmenterFactory;
     _configuration          = configuration;
     _components             = new List <Component>();
     Trace       = (c, f) => { };
     TraceOutput = (c, t) => System.Diagnostics.Trace.WriteLine(t);
 }
예제 #6
0
 public RoutingSegment(IDependencyGraphFactory dependencyGraphFactory)
 {
     _dependencyGraphFactory = dependencyGraphFactory;
     _components             = new List <Component>();
 }
예제 #7
0
 /// <summary>
 /// Consuructs a SegmenterFactory
 /// </summary>
 public SegmenterFactory(IDependencyGraphFactory dependencyGraphFactory)
 {
     _dependencyGraphFactory = dependencyGraphFactory;
 }
예제 #8
0
 public Segmenter(IDependencyGraphFactory dependencyGraphFactory)
 {
     _dependencyGraphFactory = dependencyGraphFactory;
     Clear();
 }
예제 #9
0
 public RouteBuilder(IDependencyGraphFactory dependencyGraphFactory)
 {
     _dependencyGraphFactory = dependencyGraphFactory;
 }