public static CapabilityStatement.RestComponent Server(this CapabilityStatement capabilityStatement)
        {
            var server =
                capabilityStatement.Rest.FirstOrDefault(r => r.Mode == CapabilityStatement.RestfulCapabilityMode.Server);

            return(server ?? capabilityStatement.AddRestComponent(true));
        }
        public static CapabilityStatement.RestComponent Server(this CapabilityStatement conformance)
        {
            var server = conformance.Rest.FirstOrDefault(r => r.Mode == CapabilityStatement.RestfulCapabilityMode.Server);

            return((server == null) ? conformance.AddRestComponent(isServer: true) : server);
        }
 public static CapabilityStatement AddServer(this CapabilityStatement conformance)
 {
     conformance.AddRestComponent(isServer: true);
     return(conformance);
 }
Exemplo n.º 4
0
 public static CapabilityStatement AddServer(this CapabilityStatement capabilityStatement)
 {
     capabilityStatement.AddRestComponent(true);
     return(capabilityStatement);
 }