public GetWebGetAndInvoke ( |
||
od | ||
get | System.ServiceModel.Web.WebGetAttribute | |
invoke | System.ServiceModel.Web.WebInvokeAttribute | |
return | void |
void GetWebGetAndInvoke(OperationDescription od, out WebGetAttribute get, out WebInvokeAttribute invoke)
{
get = od.Behaviors.Find<WebGetAttribute>();
invoke = od.Behaviors.Find<WebInvokeAttribute>();
if (get == null && invoke == null)
{
// default is POST
invoke = new WebInvokeAttribute();
}
}