// This method gets called by the runtime. Use this method to add services to the container.
 public void ConfigureServices(IServiceCollection services)
 {
     services.AddSingleton <IRouteProcessor>(new RouteProcessor(RouteInitializer.Init()));
     services.AddMvc();
 }
Beispiel #2
0
 internal Route(IChannelOwner parent, string guid, RouteInitializer initializer) : base(parent, guid)
 {
     _channel     = new(guid, parent.Connection, this);
     _initializer = initializer;
 }
Beispiel #3
0
 public Route(ConnectionScope scope, string guid, RouteInitializer initializer)
 {
     _scope   = scope;
     _channel = new RouteChannel(guid, scope, this);
 }