/// <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;
 }
示例#2
0
 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());
 }
示例#4
0
 /// <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);
 }