Opc.Ua.Sample.SampleServer.OnServerStarting C# (CSharp) Method

OnServerStarting() protected method

Initializes the server before it starts up.
This method is called before any startup processing occurs. The sub-class may update the configuration object or do any other application specific startup tasks.
protected OnServerStarting ( ApplicationConfiguration configuration ) : void
configuration ApplicationConfiguration
return void
        protected override void OnServerStarting(ApplicationConfiguration configuration)
        {
            Opc.Ua.Com.ComUtils.InitializeSecurity();

            Utils.Trace("The server is starting.");

            base.OnServerStarting(configuration);     
            
            // it is up to the application to decide how to validate user identity tokens.
            // this function creates validators for SAML and X509 identity tokens.
            CreateUserIdentityValidators(configuration);
        }