public void RegisterWithPhoneService(Type service, string phoneStateKey, Type implementation) {
RegisterHandler(service, null, () => {
var phoneService = (IPhoneService)GetInstance(typeof(IPhoneService), null);
if(phoneService.State.ContainsKey(phoneStateKey ?? service.FullName)) {
return phoneService.State[phoneStateKey ?? service.FullName];
}
return BuildInstance(implementation);
});
}