protected override void OnApplyConfiguration(Binding binding) { RouterBinding routerBinding = (RouterBinding)binding; routerBinding.Transport = this.Transport; routerBinding.MessageEncoding = this.MessageEncoding; routerBinding.HostNameComparisonMode = this.HostNameComparisonMode; routerBinding.ListenBacklog = this.ListenBacklog; routerBinding.MaxBufferPoolSize = this.MaxBufferPoolSize; routerBinding.MaxBufferSize = this.MaxBufferSize; routerBinding.MaxConnections = this.MaxConnections; routerBinding.MaxReceivedMessageSize = this.MaxReceivedMessageSize; routerBinding.PortSharingEnabled = this.PortSharingEnabled; routerBinding.TransferMode = this.TransferMode; }
protected override void InitializeFrom(Binding binding) { base.InitializeFrom(binding); RouterBinding routerBinding = (RouterBinding)binding; this.Transport = routerBinding.Transport; this.MessageEncoding = routerBinding.MessageEncoding; this.HostNameComparisonMode = routerBinding.HostNameComparisonMode; this.ListenBacklog = routerBinding.ListenBacklog; this.MaxBufferPoolSize = routerBinding.MaxBufferPoolSize; this.MaxBufferSize = routerBinding.MaxBufferSize; this.MaxConnections = routerBinding.MaxConnections; this.MaxReceivedMessageSize = routerBinding.MaxReceivedMessageSize; this.PortSharingEnabled = routerBinding.PortSharingEnabled; this.TransferMode = routerBinding.TransferMode; }