コード例 #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();
        }
コード例 #2
0
 public OmnibusService(OmnibusParameters parameters, OmnibusDependencies dependencies, OmnibusConfiguration configuration, OmnibusHooks hooks)
 {
     context = new OmnibusContext(parameters, dependencies, configuration, hooks);
 }
コード例 #3
0
 public OmnibusBuilder()
 {
     parameters    = new OmnibusParameters();
     dependencies  = new OmnibusDependencies();
     configuration = new OmnibusConfiguration();
 }