IContextHolder

Issue #61 resolved
Jan D created an issue

Create an Interface IContextHolder, which ContextHolder implements AND change usages of ContextHolder to IContextHolder to be possible to create custom context holders without need of deriviing from ContextHolder class

using System;

namespace Slash.Unity.DataBind.Core.Presentation
{
    public interface IContextHolder
    {
        object Context { get; set; }
        Type ContextType { get; }
        string Path { get; set; }

        event ContextHolder.ContextChangedDelegate ContextChanged;

        void SetContext(object newContext, string path);
    }
}

Comments (4)

  1. Log in to comment