SenseNet.ContentRepository.Storage.ContextHandler.SetObject C# (CSharp) Method

SetObject() public static method

public static SetObject ( string identifier, object value ) : void
identifier string
value object
return void
        public static void SetObject(string identifier, object value)
        {
            if(RepositoryConfiguration.IsWebEnvironment)
            {
                HttpContext.Current.Items[identifier] = value;
            }
            else
            {
                CallContext.SetData(identifier, value);
            }
        }