Ejemplo n.º 1
0
        public OmnibusContext(OmnibusParameters parameters, OmnibusDependencies dependencies, OmnibusConfiguration configuration, OmnibusHooks hooks)
        {
            this.parameters    = parameters;
            this.dependencies  = dependencies;
            this.hooks         = hooks;
            this.configuration = configuration;

            reservations = new OmnibusReservationCollection(configuration.LeaseDuration);
            queue        = new LeakQueue <OmnibusContext>(this);
            states       = new OmnibusStateCollection();
            bitfields    = new OmnibusBitfieldCollection();
        }
Ejemplo n.º 2
0
 public OmnibusService(OmnibusParameters parameters, OmnibusDependencies dependencies, OmnibusConfiguration configuration, OmnibusHooks hooks)
 {
     context = new OmnibusContext(parameters, dependencies, configuration, hooks);
 }
Ejemplo n.º 3
0
 public OmnibusBuilder()
 {
     parameters    = new OmnibusParameters();
     dependencies  = new OmnibusDependencies();
     configuration = new OmnibusConfiguration();
 }