protected static void ApplyProtection(string action, System.ServiceModel.Security.ScopedMessagePartSpecification parts, bool protection) { System.ServiceModel.Security.MessagePartSpecification partSpec; if (protection) { partSpec = new System.ServiceModel.Security.MessagePartSpecification(true); } else { partSpec = System.ServiceModel.Security.MessagePartSpecification.NoParts; } parts.AddParts(partSpec, action); }
public ScopedMessagePartSpecification(System.ServiceModel.Security.ScopedMessagePartSpecification other) { }