How to use a custom promptfactory ?

Issue #32 new
Former user created an issue

i'm trying to register a custom prompt factory to automatically set the authentification dialog! How can we do this with xulfx ?

Comments (1)

  1. Vladislav repo owner
    DefaultPromptFactory.PromptGetter = GetPromptService;
    DefaultPromptFactory.Init();
    
    
    private static MyPromptService _promptService;
    private static MyPromptService GetPromptService()
    {
        if (_promptService == null)
            _promptService = new MyPromptService();
        return _promptService ;
    }
    
    class MyPromptService : DefaultPromptService, nsIPromptService2
    {
    //...
    }
    
  2. Log in to comment