protected internal Service() { _logger = logging.LogUtils.GetLogger(GetType()); if (!_instantiatedServiceTypeSingletons.Contains(GetType())) { _instantiatedServiceTypeSingletons.Add(GetType()); } else { throw new InvalidOperationException(string.Format(CultureInfo.InvariantCulture , Resources.ExceptionMessages.InstantiateServiceTwice, GetType(), GetDetailedMessage())); } }