VerifyNoProviderData() static private méthode

static private VerifyNoProviderData ( String providerTypeName, ICollection providerData ) : void
providerTypeName String
providerData ICollection
Résultat void
        } // BinaryServerFormatterSinkProvider

        public BinaryServerFormatterSinkProvider(IDictionary properties, ICollection providerData)
        {
            // look at properties
            if (properties != null)
            {
                foreach (DictionaryEntry entry in properties)
                {
                    String keyStr = entry.Key.ToString();
                    switch (keyStr)
                    {
                    case "includeVersions": _includeVersioning = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break;

                    case "strictBinding": _strictBinding = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture); break;

                    case "typeFilterLevel":
                        _formatterSecurityLevel = (TypeFilterLevel)Enum.Parse(typeof(TypeFilterLevel), (string)entry.Value);
                        break;

                    default:
                        break;
                    }
                }
            }

            // not expecting any provider data
            CoreChannel.VerifyNoProviderData(this.GetType().Name, providerData);
        } // BinaryServerFormatterSinkProvider
Exemple #2
0
        public BinaryClientFormatterSinkProvider(IDictionary properties, ICollection providerData)
        {
            this._includeVersioning = true;
            if (properties != null)
            {
                foreach (DictionaryEntry entry in properties)
                {
                    string str2 = entry.Key.ToString();
                    if (str2 != null)
                    {
                        if (!(str2 == "includeVersions"))
                        {
                            if (str2 == "strictBinding")
                            {
                                goto Label_006F;
                            }
                        }
                        else
                        {
                            this._includeVersioning = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture);
                        }
                    }
                    continue;
Label_006F:
                    this._strictBinding = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture);
                }
            }
            CoreChannel.VerifyNoProviderData(base.GetType().Name, providerData);
        }
Exemple #3
0
        /// <include file='doc\SoapFormatterSinks.uex' path='docs/doc[@for="SoapClientFormatterSinkProvider.SoapClientFormatterSinkProvider1"]/*' />
        public SoapClientFormatterSinkProvider(IDictionary properties, ICollection providerData)
        {
            // look at properties
            if (properties != null)
            {
                foreach (DictionaryEntry entry in properties)
                {
                    String keyStr = entry.Key.ToString();
                    switch (keyStr)
                    {
                    case "includeVersions": _includeVersioning = Convert.ToBoolean(entry.Value); break;

                    case "strictBinding": _strictBinding = Convert.ToBoolean(entry.Value); break;

                    default:
                        CoreChannel.ReportUnknownProviderConfigProperty(
                            this.GetType().Name, keyStr);
                        break;
                    }
                }
            }

            // not expecting any provider data
            CoreChannel.VerifyNoProviderData(this.GetType().Name, providerData);
        }
        public BinaryServerFormatterSinkProvider(IDictionary properties, ICollection providerData)
        {
            this._includeVersioning      = true;
            this._formatterSecurityLevel = System.Runtime.Serialization.Formatters.TypeFilterLevel.Low;
            if (properties != null)
            {
                foreach (DictionaryEntry entry in properties)
                {
                    string str2 = entry.Key.ToString();
                    if (str2 != null)
                    {
                        if (!(str2 == "includeVersions"))
                        {
                            if (str2 == "strictBinding")
                            {
                                goto Label_0089;
                            }
                            if (str2 == "typeFilterLevel")
                            {
                                goto Label_00A2;
                            }
                        }
                        else
                        {
                            this._includeVersioning = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture);
                        }
                    }
                    continue;
Label_0089:
                    this._strictBinding = Convert.ToBoolean(entry.Value, CultureInfo.InvariantCulture);
                    continue;
Label_00A2:
                    this._formatterSecurityLevel = (System.Runtime.Serialization.Formatters.TypeFilterLevel)Enum.Parse(typeof(System.Runtime.Serialization.Formatters.TypeFilterLevel), (string)entry.Value);
                }
            }
            CoreChannel.VerifyNoProviderData(base.GetType().Name, providerData);
        }