Пример #1
0
        public ToastifyWebAuth(string scopes, string state, bool showDialog)
        {
            this.Scopes     = scopes;
            this.State      = state;
            this.ShowDialog = showDialog;

            this.authHttpServer = new AuthHttpServer();
        }
Пример #2
0
        public ToastifyWebAuth(Scope scopes, string state, bool showDialog)
        {
            this.Scopes     = scopes.GetStringAttribute(" ");
            this.State      = state;
            this.ShowDialog = showDialog;

            this.authHttpServer = new AuthHttpServer();
            this.abortAuthEvent = new ManualResetEvent(false);
        }
Пример #3
0
 private void DisposeAuthHttpServer(TimeSpan timeout)
 {
     this.authHttpServer?.Dispose(timeout);
     this.authHttpServer = null;
 }
Пример #4
0
 public void Dispose()
 {
     this.authHttpServer?.Dispose();
     this.authHttpServer = null;
 }