示例#1
0
 public static Conformance AddServer(this Conformance conformance)
 {
     conformance.AddRestComponent(isServer: true);
     return(conformance);
 }
示例#2
0
        public static Conformance.RestComponent Server(this Conformance conformance)
        {
            var server = conformance.Rest.FirstOrDefault(r => r.Mode == Conformance.RestfulConformanceMode.Server);

            return((server == null) ? conformance.AddRestComponent(isServer: true) : server);
        }
示例#3
0
 public static Conformance AddServer(this Conformance conformance)
 {
     conformance.AddRestComponent(true).AddSecurityComponent();
     return(conformance);
 }