Fixing that ClientHostAddressAccessor failed in a background task

This was the case e.g. when roles were modified in a background task with Audit Trail trying to record the event
This commit is contained in:
Lombiq
2015-06-25 00:35:21 +02:00
parent a7626b78f5
commit e10ba8126a

View File

@@ -230,6 +230,12 @@ namespace Orchard.Mvc {
}
}
public override string UserHostAddress {
get {
return "127.0.0.1";
}
}
public override HttpBrowserCapabilitiesBase Browser {
get {
return new HttpBrowserCapabilitiesPlaceholder();