mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-22 03:37:25 +08:00
Merge pull request #6498 from jtkech/patch-14
ContextState: Attempt to fix cross app domain issues on teamcity
This commit is contained in:
@@ -1,5 +1,4 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.Runtime.Remoting;
|
|
||||||
using System.Runtime.Remoting.Messaging;
|
using System.Runtime.Remoting.Messaging;
|
||||||
using System.Web;
|
using System.Web;
|
||||||
using Orchard.Mvc.Extensions;
|
using Orchard.Mvc.Extensions;
|
||||||
@@ -52,5 +51,12 @@ namespace Orchard.Environment.State {
|
|||||||
HttpContext.Current.Items[_name] = state;
|
HttpContext.Current.Items[_name] = state;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
internal class ObjectHandle : System.Runtime.Remoting.ObjectHandle {
|
||||||
|
public ObjectHandle(object o) : base(o) { }
|
||||||
|
public override object InitializeLifetimeService() {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user