/// <summary>
        /// Connected OpenROAD ASO session parameter constructor.
        /// </summary>
        /// <param name="orSession">Connected OpenROAD ASO session.</param>
        public SCPWrapperBase(ORASOSessionClass orSession) : base()
        {
            InitialiseClass();

            // set the OR Session
            ORSession = orSession;
        }
示例#2
0
        /// <summary>
        /// Manual connect constructor.
        /// </summary>
        /// <param name="akaName">The AKA name of the OpenROAD remote server object.</param>
        /// <param name="location">The Location of the OpenROAD Remote Server Object.</param>
        /// <param name="routing">The Routing of the OpenROAD Remote Server Object.</param>
        /// <param name="keepConnected"></param>
        public BaseFacade(string akaName, string location, string routing, string flags, ConnectionTypes connectionType, bool keepConnected)
        {
            //Validate - AKA Name is mandatory.
            if (akaName == null || akaName == String.Empty)
            {
                throw new SCPConnectException(Constants.INVALID_AKA_NAME_EXCEPTION_MESSAGE);
            }

            InitialiseClass();

            if (location == null)
            {
                location = System.Environment.MachineName;
            }

            if (routing == null)
            {
                routing = String.Empty;
            }

            AKAName        = akaName;
            Location       = location;
            Routing        = routing;
            Flags          = flags;
            ConnectionType = connectionType;

            ORSession = new ORASOSessionClass();

            alreadyConnected = keepConnected;

            //We now have enough info for a connect;
            Connect();
        }
示例#3
0
        /// <summary>
        /// Established OpenROAD remote server object constructor.
        /// </summary>
        /// <param name="orSession">The already established OpenROAD remote server object.</param>
        public BaseFacade(ORASOSessionClass orSession)
        {
            //Validate - must be instantiated and connected.
            if (orSession == null)
            {
                throw new SCPConnectException(Constants.OR_SESSION_UNAVAILABLE_EXCEPTION_MESSAGE);
            }

            if (orSession.IsConnected == 0)
            {
                throw new SCPConnectException(Constants.OR_SESSION_NOT_CONNECTED_EXCEPTION_MESSAGE);
            }

            // Initialise the class
            InitialiseClass();

            //OK if we got here so set the variables.
            ORSession        = orSession;
            alreadyConnected = true;
        }
        /// <summary>
        /// Connected OpenROAD ASO session parameter constructor.
        /// </summary>
        /// <param name="orSession">Connected OpenROAD ASO session.</param>
        public SCPWrapperBase(ORASOSessionClass orSession) :base()
        {
            InitialiseClass();

            // set the OR Session
            ORSession = orSession;
        }
示例#5
0
        /// <summary>
        /// Manual connect constructor.
        /// </summary>
        /// <param name="akaName">The AKA name of the OpenROAD remote server object.</param>
        /// <param name="location">The Location of the OpenROAD Remote Server Object.</param>
        /// <param name="routing">The Routing of the OpenROAD Remote Server Object.</param>
        /// <param name="keepConnected"></param>
        public BaseFacade(string akaName, string location, string routing, string flags, ConnectionTypes connectionType, bool keepConnected)
        {
            //Validate - AKA Name is mandatory.
            if (akaName == null || akaName == String.Empty)
            {
                throw new SCPConnectException(Constants.INVALID_AKA_NAME_EXCEPTION_MESSAGE);
            }

            InitialiseClass();

            if (location == null)
            {
                location = System.Environment.MachineName;
            }

            if (routing == null)
            {
                routing = String.Empty;
            }

            AKAName     = akaName;
            Location    = location;
            Routing     = routing;
            Flags       = flags;
            ConnectionType = connectionType;

            ORSession   = new ORASOSessionClass();

            alreadyConnected = keepConnected;

            //We now have enough info for a connect;
            Connect();
        }
示例#6
0
        /// <summary>
        /// Established OpenROAD remote server object constructor.
        /// </summary>
        /// <param name="orSession">The already established OpenROAD remote server object.</param>
        public BaseFacade(ORASOSessionClass orSession)
        {
            //Validate - must be instantiated and connected.
            if (orSession == null)
            {
                throw new SCPConnectException(Constants.OR_SESSION_UNAVAILABLE_EXCEPTION_MESSAGE);
            }

            if (orSession.IsConnected == 0)
            {
                throw new SCPConnectException(Constants.OR_SESSION_NOT_CONNECTED_EXCEPTION_MESSAGE);
            }

            // Initialise the class
            InitialiseClass();

            //OK if we got here so set the variables.
            ORSession = orSession;
            alreadyConnected = true;
        }
示例#7
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public BaseFacade()
 {
     InitialiseClass();
     ORSession = new ORASOSessionClass();
 }
示例#8
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 public BaseFacade()
 {
     InitialiseClass();
     ORSession = new ORASOSessionClass();
 }