[Export(typeof(IAuthenticationService))]
[Export(typeof(IUserService))]
[PartCreationPolicy(CreationPolicy.Shared)]
public class myAuthenticationService : AuthenticationService<myEntities>, IUserService
{
public IFUser CurrentUser
{
get { return Principal as IFUser; }
}
protected override void OnLoggedIn()
{
base.OnLoggedIn();
EventFns.Publish(new LoggedInMessage(CurrentUser));
}
protected override void OnLoggedOut()
{
base.OnLoggedOut();
EventFns.Publish(new LoggedOutMessage());
}
}
If I comment [Export(typeof(IAuthenticationService))] it starts (but crashes later,telling that it cannot find a viewmodel for ShellViewModel)...
the debuglog.xml tells
2012-02-23 |
18:02:50 |
|
Cocktail.PartLocator`1:WriteTrace |
Probed for service with contract IAuthenticationService and found
my.Authentication.myAuthenticationService |
2012-02-23 |
18:02:50 |
|
Cocktail.EntityManagerProviderBase`1:get_EntityManagerDelegates |
Probed for EntityManagerDelegate and found no matchting exports. |
2012-02-23 |
18:02:50 |
|
Cocktail.PartLocator`1:WriteTrace |
Probed for service with contract IEntityManagerProvider`1 and found no
matching exports |
so it seems to have it... what can I look?
Thanks