コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }