Пример #1
0
        protected CloudSession(CloudSystem cloudSystem, CloudConnectionParameters cParams)
        {
            if (cloudSystem == null || cParams == null)
            {
                throw new CloudException(StringConsts.ARGUMENT_ERROR + this.GetType().Name + ".ctor((cloudSystem|cParams)=null)");
            }

            CloudSystem          = cloudSystem;
            ConnectionParameters = cParams;

            lock (CloudSystem.Sessions)
                CloudSystem.Sessions.Add(this);
        }
Пример #2
0
 protected abstract CloudSession DoStartSession(CloudConnectionParameters cParams);
Пример #3
0
 public CloudSession StartSession(CloudConnectionParameters cParams = null)
 {
     return(DoStartSession(cParams ?? DefaultSessionConnectParams));
 }