/// <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); }
/// <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; }