public SqlToGraphiteConfig(IAssemblyResolver assemblyResolver, ILog log)
        {
            this.log = log;
            var job = new JobImpl();
            jobTypes = assemblyResolver.ResolveTypes(job);
            //JobTypes = GetJobTypes().ToArray();
            clientTypes = GetClientTypes().ToArray();

            this.Jobs = new List<Job>();
            this.Clients = new ListOfUniqueType<Client>();
            this.Hosts = new List<Host>();
            this.Templates = new List<Template>();
            this.genericSerializer = new GenericSerializer(Global.GetNameSpace());
        }
        public SqlToGraphiteConfig()
        {
            var job = new JobImpl();
            this.WireUpLog4Net();
            var assemblyResolver = new AssemblyResolver(new DirectoryImpl(), log);
            jobTypes = assemblyResolver.ResolveTypes(job);
            alljobtypes = assemblyResolver.ResolveAllTypes(job);
            //JobTypes = GetJobTypes().ToArray();
            clientTypes = GetClientTypes().ToArray();

            this.Jobs = new List<Job>();
            this.Clients = new ListOfUniqueType<Client>();
            this.Hosts = new List<Host>();
            this.Templates = new List<Template>();
            this.genericSerializer = new GenericSerializer(Global.GetNameSpace());
        }
 public Type[] ResolveTypes(JobImpl job)
 {
     return this.types.Select(type => type.Value).ToArray();
 }
 public IEnumerable<Type> ResolveAllTypes(JobImpl job)
 {
     return this.types.Select(type => type.Value);
 }