CreateAnySchemeAccess() public static method

public static CreateAnySchemeAccess ( int allowPort ) : CodeConnectAccess
allowPort int
return CodeConnectAccess
 // Token: 0x06002996 RID: 10646 RVA: 0x0009994C File Offset: 0x00097B4C
 private void SetDefaults()
 {
     this.AddConnectAccess("file", null);
     this.AddConnectAccess("http", new CodeConnectAccess("http", CodeConnectAccess.OriginPort));
     this.AddConnectAccess("http", new CodeConnectAccess("https", CodeConnectAccess.OriginPort));
     this.AddConnectAccess("https", new CodeConnectAccess("https", CodeConnectAccess.OriginPort));
     this.AddConnectAccess(NetCodeGroup.AbsentOriginScheme, CodeConnectAccess.CreateAnySchemeAccess(CodeConnectAccess.OriginPort));
     this.AddConnectAccess(NetCodeGroup.AnyOtherOriginScheme, CodeConnectAccess.CreateOriginSchemeAccess(CodeConnectAccess.OriginPort));
 }
Example #2
0
        //
        // This method is called at the ctor time to populate default accesses (V1.1 compat)
        //
        private void SetDefaults()
        {
            // No access for file://
            AddConnectAccess("file", null);

            // access fot http://
            AddConnectAccess("http", new CodeConnectAccess("http", CodeConnectAccess.OriginPort));
            AddConnectAccess("http", new CodeConnectAccess("https", CodeConnectAccess.OriginPort));

            /* CONSIDER
             * AddConnectAccess("http", new CodeConnectAccess("https", CodeConnectAccess.DefaultPort));
             * AddConnectAccess("http", new CodeConnectAccess("ftp", CodeConnectAccess.DefaultPort));
             * AddConnectAccess("http", new CodeConnectAccess("soap.tcp", CodeConnectAccess.DefaultPort));
             */

            // access fot https://
            AddConnectAccess("https", new CodeConnectAccess("https", CodeConnectAccess.OriginPort));

            /* CONSIDER
             * AddConnectAccess("https", new CodeConnectAccess("soap.tcp", CodeConnectAccess.DefaultPort));
             */


            // access fot ftp://

            /* CONSIDER
             * AddConnectAccess("ftp", new CodeConnectAccess("ftp", CodeConnectAccess.OriginPort));
             * AddConnectAccess("ftp", new CodeConnectAccess("http", CodeConnectAccess.DefaultPort));
             * AddConnectAccess("ftp", new CodeConnectAccess("https", CodeConnectAccess.DefaultPort));
             * AddConnectAccess("ftp", new CodeConnectAccess("soap.tcp", CodeConnectAccess.DefaultPort));
             */

            // access for no scheme and for any other scheme
            AddConnectAccess(NetCodeGroup.AbsentOriginScheme, CodeConnectAccess.CreateAnySchemeAccess(CodeConnectAccess.OriginPort));
            AddConnectAccess(NetCodeGroup.AnyOtherOriginScheme, CodeConnectAccess.CreateOriginSchemeAccess(CodeConnectAccess.OriginPort));
        }