A new style of SSO config.

Simply create a new class with some properties, Inherit from SSOConfig Item and Presto. You are done. Your class will have some extra methods to help you.

Class.Load() will load the Configuration data from SSO.
Class.Save() will save the configuration data to SSO.

Couldn't be more easier.

The Application data is cached by the base functionality. So if a application class is retrieved from SSO it will retrieve the next instance from the cache instead. Saving a new or changed item to SSO will reset the cache.

It comes complete with a commandline to Import/Export/Delete/List SSO configuration items.

Your class could simply look like this.


     [Serializable]
    public class SampleConnectionData:SSOConfigItem 
    {
        public SampleConnectionData(string ApplicationName)
        {
            base.SSO_ApplicationSettingName = ApplicationName;
        }

        public SampleConnectionData()
        {
        }

        private string dataSource = string.Empty;
        private string database = string.Empty;
        private string applicationName = string.Empty;
        private string userName = string.Empty;
        private string password = string.Empty;
        private bool trustedConnection = false ;

        public bool TrustedConnection
        {
            get { return trustedConnection; }
            set { trustedConnection = value; }
        }
 
        public string Password
        {
            get { return password; }
            set { password = value; }
        }

        public string UserName
        {
            get { return userName; }
            set { userName = value; }
        }
 

        public string ApplicationName
        {
            get { return applicationName; }
            set { applicationName = value; }
        }
 
        public string DataSource
        {
            get { return dataSource; }
            set { dataSource = value; }
        }
       

        public string Database
        {
            get { return database; }
            set { database = value; }
        }
   }



And then you will have functionality like this :

// Create a SSO connection class.
SampleConnectionData objConnection = new SampleConnectionData("SomeApplicationName");

// Set properties 
objConnection.TrustedConnection = true;
objConnection.DataSource = "(Local)";
objConnection.Database = "Master";
objConnection.ApplicationName = "DemonstrateUsage";

// Create the applications
objConnection.CreateApplication();

// Save the application
objConnection.Save();

// Get a new Object
SampleConnectionData OtherConnection = new SampleConnectionData("SomeApplicationName");
// Load properties from SSO Configuration Store
OtherConnection.Load()



In your orchestration or code you can use :

SampleConnectionData objConnection = new SampleConnectionData("SomeApplicationName");
objConnection.Load();

Last edited Jul 29, 2008 at 8:20 AM by well0549, version 10