public string FormatEntityName <T>()
        {
            if (typeof(T).IsInterface)
            {
                return(_defaultEntityNameFormatter.FormatEntityName <T>());
            }

            var eventName = _eventNameProvider.GetEventName <T>();

            return(eventName.IsSuccess
                ? eventName.Value
                : throw new InvalidOperationException(JsonConvert.SerializeObject(eventName.Error)));
        }
        public string FormatEntityName <T>()
        {
            var environment = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT") ?? "Development";

            return($"{environment}:{_original.FormatEntityName<T>()}");
        }
예제 #3
0
 /// <summary>
 /// Not sure it ever makes sense to pass the actual message, but many, someday.
 /// </summary>
 /// <returns></returns>
 public string FormatEntityName()
 {
     return(_entityName ??= _entityNameFormatter.FormatEntityName <TMessage>());
 }
예제 #4
0
        public string FormatEntityName <T>()
        {
            var name = _entityNameFormatter.FormatEntityName <T>();

            return($"{_prefix}{name}");
        }
예제 #5
0
 public string FormatEntityName <T>() => $"{_webHostEnvironment.EnvironmentName}:{_original.FormatEntityName<T>()}";
    // Used to rename the exchanges
    public string FormatEntityName <T>()
    {
        var original = _original.FormatEntityName <T>();

        return(Format(original));
    }
 /// <inheritdoc/>
 public string FormatEntityName <T>()
 => $"{_prefix}-{_originalFormatter.FormatEntityName<T>()}";