public static void SubscribeToAll(this SubscriptionWorker subscriptionWorker, params Type[] messageTypes) { subscriptionWorker.Require("subscriptionWorker"); messageTypes.Require("messageTypes"); foreach (var messageType in messageTypes) { subscriptionWorker.SubscribeTo(messageType); } }