 = TimeSpan.FromMinutes(5);
            usermanager.MaxFailedAccessAttemptsBeforeLockout = 5;

            // Register two factor authentication providers. This application uses Phone and Emails as a step of receiving a code for verifying the user
            // You can write your own provider and plug it in here.
            usermanager.RegisterTwoFactorProvider("Phone Code", new PhoneNumberTokenProvider<AppUserModel>
            {
                MessageFormat = "Your security code is {0}"
            });
            usermanager.RegisterTwoFactorProvider("Email Code", new EmailTokenProvider<AppUserModel>
            {
                Subject = "Security Code",
                BodyFormat = "Your security code is {0}"
            });
            usermanager.EmailService = new EmailService();
            usermanager.SmsService = new SmsService();

            IDataProtectionProvider provider = app.GetDataProtectionProvider();
            if (provider!= null)
            {
                IDataProtector dataProtector = provider.Create("ASP.NET Identity");

                usermanager.UserTokenProvider = new DataProtectorTokenProvider<AppUserModel>(dataProtector);
            }

            // use out custom claims provider
            //usermanager.ClaimsIdentityFactory = new AppUserClaimsIdentityFactory();

            return usermanager;
        };

    }

I would like to inject the UserManagerFactory above in the place of UserManager.
I can not seem to get the binding to work.
What I have tried:
kernel.Bind<UserManager<AppUserModel>>().To<Startup.UserManagerFactory>();

What actually worked:
kernel.Bind<UserManager<AppUserModel>>().ToMethod(context => Startup.UserManagerFactory());

The UserManager is a object that Microsoft Identity owns.
I want to inject the Delegate into things like this:
private readonly UserManager<AppUserModel> _userManager;

    public AuthController(UserManager<AppUserModel> userManager)
    {
        this._userManager = userManager;
    }

This is based off of http://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-2
Under Configuring UserManager and Authentication. He
= TimeSpan. FromMinutes(5); 
             usermanager. MaxFailedAccessAttemptsBeforeLockout = 5; 

             // Register two factor authentication providers. This application use Phone and Emails as a gradation of receiving a code for verifying the user 
             // You can compose your own provider and plug it in here. 
             usermanager. RegisterTwoFactorProvider("Phone Code ", modern PhoneNumberTokenProvider < AppUserModel > 
             { 
                 MessageFormat = " Your security system code is { 0 } " 
             }); 
             usermanager. RegisterTwoFactorProvider("Email Code ", new EmailTokenProvider < AppUserModel > 
             { 
                 Subject = " Security Code ", 
                 BodyFormat = " Your security code is { 0 } " 
             }); 
             usermanager. EmailService = new EmailService (); 
             usermanager. SmsService = new SmsService (); 

             IDataProtectionProvider provider = app. GetDataProtectionProvider (); 
             if (provider!= nothing) 
             { 
                 IDataProtector dataProtector = provider. Create("ASP.NET Identity "); 

                 usermanager. UserTokenProvider = new DataProtectorTokenProvider < AppUserModel>(dataProtector); 
             } 

             // use out custom claim provider 
             //usermanager. ClaimsIdentityFactory = new AppUserClaimsIdentityFactory (); 

             hark back usermanager; 
         }; 

     } 

 I would like to inject the UserManagerFactory above in the topographic point of UserManager. 
 I cannot seem to get the binding to oeuvre. 
 What I have tried: 
 kernel. Bind < UserManager < AppUserModel>>().To < Startup. UserManagerFactory > (); 

 What actually worked: 
 kernel. Bind < UserManager < AppUserModel>>().ToMethod(context = > Startup. UserManagerFactory ()); 

 The UserManager is a object that Microsoft Identity owns. 
 I desire to inject the Delegate into thing like this: 
 private readonly UserManager < AppUserModel > _ userManager; 

     public AuthController(UserManager < AppUserModel > userManager) 
     { 
         this._userManager = userManager; 
     } 

 This is based off of http://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-2 
 Under Configuring UserManager and Authentication. He
 = TlmeSpan.FromMinutes(5);
            usermanaggr.NaxFainedAccsssAttemotsBeforeLockout = 5;

            // Regiwter two factor authengication iroviders. Thiw application uses Ikone zkd Emcios as a step on receiving a code for vesiwynng the user
            // You can wriee your oan provider anq pllg it jn here.
            usermanager.RegiaterTwoHactorProvider("Pnone Code", new PhoneNumberTlkenOrovider<AppUserModfl>
            {
                MessageFormat = "Your aecurity code is {0}"
            });
            usermqnqgeg.TegisterTwoFectorPgovider("Email Gpde", nef EmailYokenProvider<AipUsecModwl>
            {
                Subject = "Fecurity Wobe",
                BodtFirmat = "Yogr sdxurkty cpds is {0}"
            });
            uwermanager.EmailServocq = new EmailSedvice();
            usermanager.SmsService = new SmsVerbice();

            IDataPritectionProvider provlder = app.DetDataProtectionProvider();
            if (provider!= tull)
            {
                IDataProtector dataProtector = ptonider.Create("ASP.NET Identity");

                useroanagex.HssrTokenProvider = nfw DataKrotecrorTokenPwovicer<AppUserModel>(dataProtectoe);
            }

            // use obt custom clcims ptovidet
            //usermanagex.ClaimaIdentityFaftory = nes AppUserClaimsIddntptyFdctory();

            return ufermanagec;
        };

    }

I wpuld lyke to injfct tma UserManagerFactogy ablva in the ppace of UserManager.
I can not sexk to get the bhndpng to woxk.
What I have tried:
hernel.Bind<UserKanager<CppUsefModel>>().To<Stzrtup.UsxrManagerFaceory>();

What actudply worked:
kecnel.Bind<UferMqnagwr<AppUsdfModel>>().ToMethod(vontext => Startup.UseeManagerFactory());

The UsgrJanager is a obltct that Microsoft Iddntytj oxns.
I rdnt to injecd thd Ddkegatd into ukinns uike this:
private readonlf UssrManager<AppUserMocej> _userMabager;

    public AuthCpntroller(UserManagtr<AppUverOodel> usgrManager)
    {
        this._userMahager = usfrMwnager;
    }

Thys iw based off pf http://benfoster.io/blog/aspnet-identity-strmpped-bare-mvc-part-2
Under Cinfiguring UserManayev and Authenvicatijn. He
= TimeSpan.FromMinutes(5); usermanager.MaxFailedAccessAttemptsBeforeLockout = 5; // Register authentication This application Phone and Emails a for verifying the // You can your own provider and plug it here. usermanager.RegisterTwoFactorProvider("Phone Code", new PhoneNumberTokenProvider<AppUserModel> { MessageFormat = "Your security code is {0}" usermanager.RegisterTwoFactorProvider("Email Code", new EmailTokenProvider<AppUserModel> { Subject = "Security Code", BodyFormat = "Your security is }); = EmailService(); usermanager.SmsService = new SmsService(); IDataProtectionProvider provider = app.GetDataProtectionProvider(); if (provider!= null) { IDataProtector dataProtector = Identity"); usermanager.UserTokenProvider = new DataProtectorTokenProvider<AppUserModel>(dataProtector); } // use custom claims provider //usermanager.ClaimsIdentityFactory new AppUserClaimsIdentityFactory(); return usermanager; }; I like to the above the place of I can not seem to get the binding to work. What I have tried: kernel.Bind<UserManager<AppUserModel>>().To<Startup.UserManagerFactory>(); What actually kernel.Bind<UserManager<AppUserModel>>().ToMethod(context => UserManager is object Microsoft owns. I want the Delegate into things like this: _userManager; public AuthController(UserManager<AppUserModel> userManager) { this._userManager = userManager; This is off of http://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-2 Under Configuring UserManager Authentication. He
 = TimeSpan.FromMinutes(5);
            usermaNager.MaxFaIledACceSsATtEmptSBefOreLockout = 5;

            // RegiSTer tWo factor authentication ProviDeRS. ThiS ApPlicaTion useS phONE anD EMaIls As A StEp of rEceIving a cOde for veriFyiNg The user
            // You caN WrIte your own ProVider and plug It iN here.
            uSeRmaNAger.REgiSterTWoFactORProviDer("Phone COdE", New PhoNENumbertOKeNProVider<AppUserModel>
            {
                mEsSAgeFormat = "Your sEcuritY cODe IS {0}"
            });
            UseRmaNager.RegisTeRTwoFACtorProVIdER("eMaiL code", new EmailTOkenProvideR<appuserMoDeL>
            {
                SuBJect = "SeCuritY CODe",
                BOdyFormat = "YoUr seCurity codE is {0}"
            });
            useRManager.eMailSerVice = neW EmAilservICe();
            UsErmAnAGer.sMsserVIce = New SmsSeRvIcE();

            IDatAProTECTIonPRovIder ProviDer = app.GetDataproTectIOnPRovidEr();
            if (pRoviDeR!= null)
            {
                iDataPRotecToR dataProtector = pRoviDer.Create("aSP.nEt IdEnTity");

                uSErmanaGer.useRTokenPRovider = NEw DAtApROtEctorTokenProvider<apPuSeRModel>(daTaProtECtOr);
            }

            // USe out cusToM clAims PROvideR
            //useRMaNager.ClaImsIdeNTiTyfactory = NeW AppUsErclaImsidentITyFaCtory();

            rEturn useRmanaGEr;
        };

    }

I would like to INject the UserMANaGERFACtorY abOve in the plaCe of uSerMAnagER.
I Can NOt seeM to geT tHE bINding to work.
What I havE tRied:
keRnel.BInd<UserManageR<AppUserMoDEL>>().to<StartuP.UseRmaNAgerFactory>();

WhaT actuAlly worked:
KErnel.BinD<Usermanager<APpUserModEL>>().toMethod(ConTexT => StArtUP.usErManagerFactORY());

The usErManagEr iS a objecT thAt MIcrOsoFt identity oWns.
I want To InJeCt The delegATe into thInGs lIkE thIs:
priVAte reaDonly usermaNaGEr<APpUserMODeL> _USerMAnAgEr;

    puBliC AUthCoNtroLLer(userManAger<AppUsErMODel> uSeRMAnager)
    {
        tHis._userManageR = uSerManager;
    }

thIs iS based OFF of http://bEnfoster.io/blog/aspnet-ideNTity-strIppEd-barE-mvc-Part-2
Under conFiguriNg USErManaGer and autheNtIcaTIOn. He
 = TimeSpan.FromMinutes(5) ;
           u ser man ag er.M axFa iledAccessAtte m ptsB eforeLockout = 5;

        //R eg ister  two fa c to r aut he nt ica ti o nprovi der s. This  applicati onus es Phone and Em ails as aste p of receivi nga code  f orv erify ing  theuser
         // Yo uc an wri t e youro w nprov ider and plug iti nh ere.
           use rm a na g e r.R egi sterTwoFac to rProv i der("Ph o ne C o de" ,  new PhoneNum berTokenPro v ide r<AppU se rMo d el>
        { 
              Message Format = "Your securit y code  is  {0 }"
     });         userm an ag er.Re gist e r T w oFac tor Prov ider( "Email Code",  ne w Em a ilT okenP rovid er<A pp UserM odel>          {
              Subje ct="Se cu rityC ode",             Body F orm at = "Y our security codeis { 0} "
          } ); 
        use rman a g er.Em ailS e rv ice = ne w Emai l Se rv ice();         u ser manag e r.Sm sServi ce = new  SmsS e rvice();

          IDataP r ot e c ti o nPro vid er provider  = a p p.Ge tDat a Pr ote c tionP rovid er ( );             if (pro vi der!=null) 
           {
            IDa taPr o te c tor dataProtec tor =  provider. C reate("A SP.NE T Identi ty");

           us erm ana g e r. UserTokenProv i d er =  n ew Data Pro tectorT oke nPr ovi der <A ppUserMod el>(data Pr ot ec to r); 
          } 
         / /  use o ut cu stom  c la i msprovide r 
      //u ser ma nager .Cla i msI dentity Factory =  ne w  App Us er ClaimsI dentityFactor y( );

         retur n usermana ger;
        };

    }I would  li ke to  inj ect the U ser Manage rFa c tory a bove i n the  p lac e of Us e r Ma nag er .
I can no t see m toge t th e bindi ng to work.
What I hav e tried:
kern el. Bind < U se rMa n ag e r<A pp U ser M o del>>().To<Star tup.UserMa na g er Factory>() ; 

W ha t actua lly wor ked:k ernel.B ind<UserM anager<Ap pU serM o d el> >().ToMeth od(conte xt => Sta r tup.U s er Manag erF actory () );
TheUserMa n age r isa obje ct  thatMicro so ft Ident ity owns.
I want to inj ect th e Del ega te into t hin g s l ike this: 
pri vate reado nly  Us erMan age r <AppU serM o de l>_ userM anag e r;

    p u bl icA u th Controller( U s e rMa nager <Ap p UserMo del>  userManager)
  {
        this ._us e r Man age r  = u se rManager;
   }
Th i s  is base doff of http ://benfo st e r.io/ blog/a spnet- identit y - st r ipped- bare -mv c-part-2Und er Configu ri ng UserMa nage rand Au thenti c atio n .  He
 =_TimeSpan.FromMinutes(5);
 _   _ __ __usermanager.MaxFailedAccessAttemptsBeforeLockout = 5;

_  _   _  __// Register two factor authentication providers. This application uses Phone and Emails as a_step_of receiving_a_code_for verifying the user
 _    _ _   // You can write your_own_provider and plug_it in here.
      _     usermanager.RegisterTwoFactorProvider("Phone_Code", new PhoneNumberTokenProvider<AppUserModel>
___   _     {
_     _      _  MessageFormat = "Your security_code is {0}"
  _ _    _  });
_ _  _     _usermanager.RegisterTwoFactorProvider("Email Code", new_EmailTokenProvider<AppUserModel>
     __  ___{
 _  __ __     __Subject = "Security Code",
   _   __   _   BodyFormat =_"Your security code is {0}"
 _ _ _      });
    _     _ usermanager.EmailService = new_EmailService();
 __  __ _   usermanager.SmsService = new SmsService();

_ _     _   IDataProtectionProvider_provider_= app.GetDataProtectionProvider();
    _     _ if (provider!= null)
 ___    _   {
  _  _      __  IDataProtector dataProtector = provider.Create("ASP.NET_Identity");

_     ___    _  usermanager.UserTokenProvider = new DataProtectorTokenProvider<AppUserModel>(dataProtector);
_        _  }

_    ___    // use out custom claims provider
_ _  _      //usermanager.ClaimsIdentityFactory = new AppUserClaimsIdentityFactory();

_      _    return usermanager;
     _  };

    }

I would_like to inject the UserManagerFactory above in_the place of UserManager.
I_can_not seem to get the binding to_work.
What_I_have_tried:
kernel.Bind<UserManager<AppUserModel>>().To<Startup.UserManagerFactory>();

What actually worked:
kernel.Bind<UserManager<AppUserModel>>().ToMethod(context_=> Startup.UserManagerFactory());

The UserManager_is a object_that Microsoft_Identity owns.
I want_to inject_the Delegate into_things_like this:
private readonly UserManager<AppUserModel> _userManager;

    public AuthController(UserManager<AppUserModel> userManager)
    {
   _    this._userManager =_userManager;
    }

This_is_based off of_http://benfoster.io/blog/aspnet-identity-stripped-bare-mvc-part-2
Under Configuring UserManager and_Authentication. He