Exemplo n.º 1
0
        public RemoteWorkController(RemoteWorkService remoteWorkService, KatzeRepository katze, IConfiguration Configuration)

        {
            _remoteWorkService = remoteWorkService;
            _katze             = katze;
            _configuration     = Configuration;
        }
Exemplo n.º 2
0
        public RemoteWorkService(IIntenseISDatabaseSettings settings, KatzeRepository katze)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _remoteWork = database.GetCollection <RemoteWork>(settings.CollectionName);
            _user       = database.GetCollection <User>("user");
            _katze      = katze;
        }
Exemplo n.º 3
0
        public SyncRemoteWorkService(IntensisRepository intensis, KatzeRepository katze, ILogger <SyncRemoteWorkService> logger, IConfiguration Configuration)
        {
            _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
            _intensis      = intensis;
            _katze         = katze;
            _configuration = Configuration;


            XmlDocument log4netConfig = new XmlDocument();

            log4netConfig.Load(File.OpenRead("log4net.config"));
            var repo = log4net.LogManager.CreateRepository(Assembly.GetEntryAssembly(),
                                                           typeof(log4net.Repository.Hierarchy.Hierarchy));

            log4net.Config.XmlConfigurator.Configure(repo, log4netConfig["log4net"]);
        }
Exemplo n.º 4
0
 public EmployeeReportController(KatzeRepository kr, IConfiguration c)
 {
     _katze         = kr;
     _configuration = c;
 }