예제 #1
0
 protected override void RegisterTypes()/* See https://dansiegel.net/post/2017/08/02/breaking-changes-for-prism-autofac-users*/
 {
     LoginModule.Initialize(Builder);
     VoucherModule.Initialize(Builder);
     Builder.RegisterType <SessionManager>().As <ISessionManager>().SingleInstance();
     Builder.RegisterType <UIServices>().As <IUIServices>().SingleInstance();
     Builder.RegisterType <ConnectivityService>().As <IConnectivityService>();
     Builder.RegisterGeneric(typeof(BaseRepository <>)).As(typeof(IBaseRepository <>)).SingleInstance();
     Builder.RegisterGeneric(typeof(PolicyWrapper <>)).As(typeof(IPolicyWrapper <>)).SingleInstance();
 }