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