Chronicle.SessionBuilderAttribute.SessionBuilderAttribute C# (CSharp) Method

SessionBuilderAttribute() public method

public SessionBuilderAttribute ( Type sessionBuilderType ) : System
sessionBuilderType System.Type
return System
        public SessionBuilderAttribute(Type sessionBuilderType)
        {
            if (!(sessionBuilderType.IsSubclassOf(typeof(SingletonSessionBuilder))))
                throw new ArgumentException("SessionBuilderType must derive from SingletonSessionBuilder");

            SessionBuilderType = sessionBuilderType;
        }
SessionBuilderAttribute