private static void GetIServiceBehaviorAttributes(Type currentServiceType, KeyedByTypeCollection <IServiceBehavior> behaviors) { foreach (IServiceBehavior behaviorAttribute in ServiceReflector.GetCustomAttributes(currentServiceType, typeof(IServiceBehavior))) { behaviors.Add(behaviorAttribute); } }
private static void EnsureNoOutputParameters(MethodInfo method) { if (ServiceReflector.HasOutputParameters(method, false)) { throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new InvalidOperationException(SR.TaskMethodMustNotHaveOutParameter)); } }