예제 #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);
        }
예제 #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;
        }