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(); }
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; }