Ejemplo n.º 1
0
        public static Binding WithNoSecurity(this Binding binding)
        {
            return(binding switch
            {
                BasicHttpBinding basic => basic.WithNoSecurity() as Binding,
                NetTcpBinding netTcp => netTcp.WithNoSecurity() as Binding,
                WSHttpBinding wsHttp => wsHttp.WithNoSecurity() as Binding,
#if !NETSTANDARD
                NetNamedPipeBinding netNamed => netNamed.WithNoSecurity() as Binding,
#endif
                _ => throw new NotSupportedException()
            });