示例#1
0
 public NetworkPoolListener(Dictionary <long, NetworkPoolEntry> items, NetworkPoolQueue queue, NetworkPoolHooks hooks, NetworkPoolConfiguration configuration, NetworkPoolDependencies dependencies)
 {
     this.items         = items;
     this.queue         = queue;
     this.hooks         = hooks;
     this.configuration = configuration;
     this.dependencies  = dependencies;
 }
示例#2
0
        public NetworkPoolInstance(NetworkPoolDependencies dependencies, NetworkPoolConfiguration configuration, NetworkPoolHooks hooks)
        {
            this.hooks         = hooks;
            this.dependencies  = dependencies;
            this.configuration = configuration;

            factory = new SocketFactory(dependencies.Completion);

            items = new Dictionary <long, NetworkPoolEntry>();
            queue = new NetworkPoolQueue(this);
        }
示例#3
0
 public NetworkPoolBuilder()
 {
     configuration = new NetworkPoolConfiguration();
     dependencies  = new NetworkPoolDependencies();
 }