/// <summary>Constructor</summary> /// <param name="encodingJobs">EncodingJobs handle.</param> public AFWorkerThreadBase(string threadName, AFServerMainThread mainThread, AFServerConfig serverConfig, EncodingJobs encodingJobs) { ThreadName = threadName; MainThread = mainThread; Config = serverConfig; EncodingJobs = encodingJobs; }
public EncodingThread(AFServerMainThread mainThread, AFServerConfig serverConfig, EncodingJobs encodingJobs) : base("EncodingThread", mainThread, serverConfig, encodingJobs) { }
/// <summary>Constructor</summary> /// <param name="mainThread">AFServerMainThread</param> /// <param name="serverConfig">AFServerConfig</param> /// <param name="encodingJobs">EncodingJobs</param> public EncodingJobFinderThread(AFServerMainThread mainThread, AFServerConfig serverConfig, EncodingJobs encodingJobs) : base("EncodingJobFinderThread", mainThread, serverConfig, encodingJobs) { _searchDirectories = Config.Directories.ToDictionary(x => x.Key, x => (SearchDirectory)x.Value.Clone()); }
/// <summary> Constructor </summary> /// <param name="IP">IP Address of the Server</param> /// <param name="port">Port to bind to.</param> public AFServerSocket(AFServerMainThread thread, string IP, int port) { _mainThreadHandle = thread; _serverIP = IPAddress.Parse(IP); _endPoint = new IPEndPoint(_serverIP, port); }