/// <summary>
        /// Main method
        /// </summary>
        /// <param name="args">
        /// Arguments of the application
        /// </param>
        static void Main(string[] args)
        {
            Config config = ReadConfig();

            _context          = new DocumentAnalyzerDBContext(config.SqlConnection);
            _employeeService  = new EmployeeService(_context);
            _mongoFileService = new MongoFileService(config.MongoConnectionString, config.MongoDatabaseName, config.MongoCollectionName);

            ReceiveFromQueue(config.HostName, config.QueueName);
            return;
        }
Beispiel #2
0
 /// <summary>
 /// Constructor of FileService
 /// </summary>
 /// <param name="context">
 /// Database context
 /// </param>
 public FileService(DocumentAnalyzerDBContext context)
 {
     _context = context;
 }
 /// <summary>
 /// Constructor of EmployeeService
 /// </summary>
 /// <param name="context">
 /// Database context
 /// </param>
 public EmployeeService(DocumentAnalyzerDBContext context)
 {
     _context = context;
 }