public void ReadConfig(out SessionMgmtConfig c)
        {
            // TODO: some of these cases could pass when signing is not supported, should enable them in the future.
            testConfig.CheckSigning();

            connectionList = new Dictionary <ModelConnectionId, Smb2FunctionalClient>();
            sessionTable   = new Dictionary <ModelSessionId, ulong>();

            // Adding reserved sessionId to the table for better assignment later
            sessionTable.Add(ModelSessionId.ZeroSessionId, 0);
            sessionTable.Add(ModelSessionId.InvalidSessionId, 0xFFFFFFFFFFFFFFFF);

            PrintCurrentSessionTable("Before Test Start");

            c = new SessionMgmtConfig
            {
                MaxSmbVersionSupported = ModelUtility.GetModelDialectRevision(testConfig.MaxSmbVersionSupported),
                IsMultiChannelCapable  = testConfig.IsMultiChannelCapable,
                Platform = testConfig.Platform == Platform.WindowsServer10 ? Platform.WindowsServer2012R2 : testConfig.Platform
            };

            sessionMgmtConfig = c;
            Site.Log.Add(LogEntryKind.Debug, c.ToString());
        }
コード例 #2
0
        public void ReadConfig(out SessionMgmtConfig c)
        {
            // TODO: some of these cases could pass when signing is not supported, should enable them in the future.
            testConfig.CheckSigning();

            connectionList = new Dictionary<ModelConnectionId, Smb2FunctionalClient>();
            sessionTable = new Dictionary<ModelSessionId, ulong>();

            // Adding reserved sessionId to the table for better assignment later
            sessionTable.Add(ModelSessionId.ZeroSessionId, 0);
            sessionTable.Add(ModelSessionId.InvalidSessionId, 0xFFFFFFFFFFFFFFFF);

            PrintCurrentSessionTable("Before Test Start");

            c = new SessionMgmtConfig
            {
                MaxSmbVersionSupported = ModelUtility.GetModelDialectRevision(testConfig.MaxSmbVersionSupported),
                IsMultiChannelCapable = testConfig.IsMultiChannelCapable,
                Platform = testConfig.Platform == Platform.WindowsServer2016 ? Platform.WindowsServer2012R2 : testConfig.Platform
            };

            sessionMgmtConfig = c;
            Site.Log.Add(LogEntryKind.Debug, c.ToString());
        }