AzureMobileAuthN.SampleApp.Core.App.Initialize C# (CSharp) Method

Initialize() public method

public Initialize ( ) : void
return void
        public override void Initialize()
        {
            // the "LoginService" is NOT inside the App's Core like 
            // services commonly are, it's in the AzureMobileAuthN Mvx Plugin instead
            CreatableTypes(typeof(LoginService).GetTypeInfo().Assembly)
                .EndingWith("Service")
                .AsInterfaces()
                .RegisterAsLazySingleton();

            // TODO: Only need this if there are Services to be found in this App's DLL
            //CreatableTypes()
            //    .EndingWith("Service")
            //    .AsInterfaces()
            //    .RegisterAsLazySingleton();


            // Determine which ViewModel to start the App with using CustomAppStart
            RegisterAppStart(new CustomAppStart(Mvx.Resolve<ILoginService>()));
        }