예제 #1
0
        public PeerConnectorContext(PeerConnectorDependencies dependencies, PeerConnectorHooks hooks, PeerConnectorConfiguration configuration)
        {
            this.dependencies  = dependencies;
            this.hooks         = hooks;
            this.configuration = configuration;

            queue = new LeakQueue <PeerConnectorContext>(this);
        }
예제 #2
0
        public MetafileContext(MetafileParameters parameters, MetafileDependencies dependencies, MetafileHooks hooks)
        {
            this.parameters   = parameters;
            this.dependencies = dependencies;
            this.hooks        = hooks;

            queue       = new LeakQueue <MetafileContext>(this);
            destination = new MetafileDestination(this);
        }
예제 #3
0
        public DataGetContext(DataGetParameters parameters, DataGetDependencies dependencies, DataGetConfiguration configuration, DataGetHooks hooks)
        {
            this.parameters = parameters;
            this.dependencies = dependencies;
            this.configuration = configuration;
            this.hooks = hooks;

            queue = new LeakQueue<DataGetContext>(this);
        }
예제 #4
0
        public MetagetContext(MetagetParameters parameters, MetagetDependencies dependencies, MetagetHooks hooks, MetagetConfiguration configuration)
        {
            this.parameters    = parameters;
            this.dependencies  = dependencies;
            this.hooks         = hooks;
            this.configuration = configuration;

            queue = new LeakQueue <MetagetContext>(this);
        }
예제 #5
0
        public MetashareContext(MetashareParameters parameters, MetashareDependencies dependencies, MetashareConfiguration configuration, MetashareHooks hooks)
        {
            this.parameters    = parameters;
            this.dependencies  = dependencies;
            this.configuration = configuration;
            this.hooks         = hooks;

            collection = new MetashareCollection();
            queue      = new LeakQueue <MetashareContext>(this);
        }
예제 #6
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();
        }
예제 #7
0
        public TrackerGetContext(TrackerGetParameters parameters, TrackerGetDependencies dependencies, TrackerGetConfiguration configuration, TrackerGetHooks hooks)
        {
            this.parameters    = parameters;
            this.dependencies  = dependencies;
            this.configuration = configuration;
            this.hooks         = hooks;

            this.udp  = new TrackerGetUdpService(this);
            this.http = new TrackerGetHttpService(this);

            this.collection = new TrackerGetCollection();
            this.queue      = new LeakQueue <TrackerGetContext>(this);
        }