예제 #1
0
        public static WIFTypeProvider GetWIFTypes()
        {
            WIFTypeProvider provider = new WIFTypes45();

            if (provider.ChannelFactory != null)
            {
                return(provider);
            }
            provider = new WIFTypes40();
            return((provider.ChannelFactory == null) ? null : provider);
        }
예제 #2
0
        public static WIFTypeProvider GetWIFTypes()
        {
            // First attempt to look up the 4.5 types
            WIFTypeProvider wifProvider = new WIFTypes45();
            if (wifProvider.ChannelFactory != null)
            {
                return wifProvider;
            }

            // We could be on 4.0 with the SDK \ WIF Runtime installed.
            wifProvider = new WIFTypes40();
            if (wifProvider.ChannelFactory != null)
            {
                return wifProvider;
            }
            return null;
        }
        public static WIFTypeProvider GetWIFTypes()
        {
            // First attempt to look up the 4.5 types
            WIFTypeProvider wifProvider = new WIFTypes45();

            if (wifProvider.ChannelFactory != null)
            {
                return(wifProvider);
            }

            // We could be on 4.0 with the SDK \ WIF Runtime installed.
            wifProvider = new WIFTypes40();
            if (wifProvider.ChannelFactory != null)
            {
                return(wifProvider);
            }
            return(null);
        }