public static void AddOrUpdateInCache(this HttpSessionStateBase session, IFrameworkFacade facade, object domainObject, string url, ObjectFlag flag = ObjectFlag.None) { var nakedObject = facade.GetObject(domainObject); session.AddOrUpdateInCache(facade, nakedObject, url, flag); }
public static void AddOrUpdateInCache(this HttpSessionStateBase session, INakedObjectsFramework framework, object domainObject, string url, ObjectFlag flag = ObjectFlag.None) { INakedObject nakedObject = framework.GetNakedObject(domainObject); session.AddOrUpdateInCache(framework, nakedObject, url, flag); }