Esempio n. 1
0
        /// <summary>
        /// Constructor that takes the binding extension element as the configuration
        /// </summary>
        /// <param name="configuration">The configuration</param>
        public ServerAuthorisationBindingElement(ServerAuthorisationBindingExtensionElement configuration)
        {
            _configuration = configuration;
            ExternalCodeFactory authoriserFactory = new ExternalCodeFactory();
            string implementationNamespaceClass   = _configuration.ImplementationNamespaceClass;
            string implementationAssembly         = configuration.ImplementationAssembly;

            _authoriser = authoriserFactory.CreateInstance <IAuthorisationValidator>(implementationNamespaceClass, implementationAssembly);
        }
Esempio n. 2
0
 /// <summary>
 /// Copy constructor that takes the binding extension element as the configuration
 /// and the IAuthoriser used to authorise incoming messages.
 /// </summary>
 /// <param name="configuration">The configuration</param>
 /// <param name="authoriser"></param>
 public ServerAuthorisationBindingElement(ServerAuthorisationBindingExtensionElement configuration, IAuthorisationValidator authoriser)
 {
     _configuration = configuration;
     _authoriser    = authoriser;
 }