public OdetteNetworkStream(Stream stream, string name, XElement xConfig) { this.stream = stream; this.name = name; this.userData = xConfig.GetAttribute("userData", String.Empty); if (xConfig.GetAttribute("allowBufferCompression", false)) initialCapabilities |= OdetteCapabilities.BufferCompression; if (xConfig.GetAttribute("allowRestart", false)) initialCapabilities |= OdetteCapabilities.Restart; if (xConfig.GetAttribute("allowSecureAuthentification", false)) initialCapabilities |= OdetteCapabilities.SecureAuthentification; } // ctor
public OdetteNetworkStream(Stream stream, string name, XElement xConfig) { this.stream = stream; this.name = name; this.userData = xConfig.GetAttribute("userData", String.Empty); if (xConfig.GetAttribute("allowBufferCompression", false)) { initialCapabilities |= OdetteCapabilities.BufferCompression; } if (xConfig.GetAttribute("allowRestart", false)) { initialCapabilities |= OdetteCapabilities.Restart; } if (xConfig.GetAttribute("allowSecureAuthentification", false)) { initialCapabilities |= OdetteCapabilities.SecureAuthentification; } } // ctor