public virtual Datas.VeeConfigs ToVeeConfigs() { var vc = new Datas.VeeConfigs(); vc.name = alias; vc.description = description; vc.host = address; vc.port = port; if (isUseTls) { vc.tlsType = "tls"; } else { vc.tlsType = tlsType; } vc.tlsServName = tlsServName; vc.useSelfSignCert = !isSecTls; vc.streamType = streamType; vc.streamParam1 = streamParam1; vc.streamParam2 = streamParam2; vc.streamParam3 = streamParam3; return(vc); }
public virtual void CopyFromVeeConfig(Datas.VeeConfigs vc) { alias = vc.name; description = vc.description; address = vc.host; port = vc.port; // backward compatible isUseTls = vc.tlsType != "none"; tlsType = vc.tlsType; tlsServName = vc.tlsServName; isSecTls = !vc.useSelfSignCert; streamType = vc.streamType; streamParam1 = vc.streamParam1; streamParam2 = vc.streamParam2; streamParam3 = vc.streamParam3; }
public override void CopyFromVeeConfig(Datas.VeeConfigs vc) { base.CopyFromVeeConfig(vc); uuid = Guid.Parse(vc.auth1); flow = vc.auth2; }