Example #1
0
        /// <inheritdoc/>
        public bool GetProvidersNodeGroup(string name, out IProvidersNodeGroup node)
        {
            ProvidersNodeGroup impl;
            bool exists = GetProvidersNodeGroup(name, out impl);

            node = impl;
            return(exists);
        }
Example #2
0
        /// <summary>
        /// Creates a new instance of the <see cref="LoginContext"/> class by using
        /// the given application settings and the provider group name.
        /// </summary>
        /// <param name="settings">
        /// A <see cref="IConfiguration"/> object containing the user defined
        /// application settings.
        /// </param>
        /// <param name="provider_node_group">
        /// The name of the group to search for the providers of the type
        /// <see cref="ILoginModuleFactory"/> in the settings object.
        /// </param>
        /// <returns>
        /// The newly create <see cref="LoginContext"/> instance.
        /// </returns>
        public LoginContext CreateLoginContext(IConfiguration settings,
                                               string provider_node_group)
        {
            IProvidersNodeGroup providers = settings.Providers[provider_node_group];
            var modules = from provider in providers
                          select CreateLoginModule(settings, provider);

            return(new LoginContext(modules));
        }
Example #3
0
 /// <inheritdoc/>
 public bool GetProvidersNodeGroup(string name, out IProvidersNodeGroup node) {
   ProvidersNodeGroup impl;
   bool exists = GetProvidersNodeGroup(name, out impl);
   node = impl;
   return exists;
 }
Example #4
0
 /// <inheritdoc/>
 public void Add(IProvidersNodeGroup node)
 {
     AddChildNode(node);
 }
Example #5
0
 /// <inheritdoc/>
 public void Add(IProvidersNodeGroup node) {
   AddChildNode(node);
 }