public SocketConnectionFactory(ILoggerFactory loggerFactory, SocketSchedulers schedulers, SharedMemoryPool memoryPool) { var logger = loggerFactory.CreateLogger("Orleans.Sockets"); this.trace = new SocketsTrace(logger); this.schedulers = schedulers; this.memoryPool = memoryPool.Pool; }
public SocketConnectionListenerFactory( ILoggerFactory loggerFactory, IOptions <SocketConnectionOptions> socketConnectionOptions, SocketSchedulers schedulers) { if (loggerFactory == null) { throw new ArgumentNullException(nameof(loggerFactory)); } this.socketConnectionOptions = socketConnectionOptions.Value; var logger = loggerFactory.CreateLogger("Orleans.Sockets"); this.trace = new SocketsTrace(logger); this.schedulers = schedulers; }
internal SocketConnectionListener( EndPoint endpoint, SocketConnectionOptions options, ISocketsTrace trace, SocketSchedulers schedulers) { Debug.Assert(endpoint != null); Debug.Assert(endpoint is IPEndPoint); Debug.Assert(trace != null); EndPoint = endpoint; _trace = trace; _schedulers = schedulers; _options = options; _memoryPool = options.MemoryPoolFactory(); }