Initialize client with autofac and moved KeyProvider