public static bool GetAutoConnect(this IPersistableService service)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service");
            }

            return(service.GetValue("AutoConnect", true));
        }
        public static IEnumerable <CodeReference> GetReferences(this IPersistableService service)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service");
            }

            return(service.GetValue <CodeReference[]>("References"));
        }
        public static SettingsStorage GetStudioSession(this IPersistableService service)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service");
            }

            return(service.GetValue <SettingsStorage>("StudioSession"));
        }
        public static ServerCredentials GetCredentials(this IPersistableService service)
        {
            if (service == null)
            {
                throw new ArgumentNullException("service");
            }

            return(service.GetValue <ServerCredentials>("StockSharpCredentials"));
        }