/// <summary> /// This override registers the persistence shortcut interface. /// </summary> /// <param name="sharedServices">The shared service collecction.</param> protected override void SharedServicesChange(ISharedService sharedServices) { mSharedServices = sharedServices; if (!mShared && mSharedServices != null && !mSharedServices.HasService <IRepositoryAsync <K, E> >()) { mShared = mSharedServices.RegisterService <IRepositoryAsync <K, E> >( new Lazy <IRepositoryAsync <K, E> >(() => (IRepositoryAsync <K, E>) this), typeof(E).Name); } }