Ejemplo n.º 1
0
        public static IotHubConfig GetIotHubConfig( )
        {
            IotHubConfigSection section    = ConfigurationManager.GetSection("IotHubConfig") as IotHubConfigSection;
            IotHubConfig        configData = null;

            if (section != null)
            {
                configData = new IotHubConfig
                {
                    IotHubConnectionString = section.IotHubConnectionString
                };
            }

            return(configData);
        }
Ejemplo n.º 2
0
        public static IotHubConfig GetIotHubConfig( )
        {
            IotHubConfigSection section = ConfigurationManager.GetSection("IotHubConfig") as IotHubConfigSection;
            IotHubConfig configData = null;

            if( section != null )
            {
                configData = new IotHubConfig
                {
                    IotHubConnectionString = section.IotHubConnectionString
                };
            }

            return configData;
        }