public static void AddHeader <T>(this OperationContext context, string name, T value) { MessageHeaders headers = context.GetMessageHeaders(OperationDirection.Outgoing); headers.AddHeader(name, value); }