+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Just a typo

Just a typo

5 posts, 0 answered
  1. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    20 Jul 2010
    Link to this post
    Hi telerik,

    Just for the coming SP for Sitefinity: here is a typo inside the API:

    protected override ContentManager CreateManger(string providerName)
    {
       return base.CreateManger(providerName);
    }

    Should be 'CreateManager'?

    Regards,
    Daniel
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    20 Jul 2010
    Link to this post
    Hi Daniel,

    The method should return an object of the same type which is ContentManager. Below are two samples

    protected virtual ContentManager Manager
        {
            get
            {
                if (manager == null || manager.Provider.Name != ProviderNameImpl)
                    manager = CreateManger(ProviderNameImpl);
                //manager is ContentManager
                return manager;
            }
        }

    protected override ContentManager CreateManger(string providerName)
       {
           // CustomManager inherits from ContentManager
           this.customManager = new CustomManager(providerName);
           return this.customManager;
       }


    Greetings,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    20 Jul 2010
    Link to this post
    ??
    I was just refering to a misspelled method name.

    ContentManger instead of ContentManager
  4. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    09 Dec 2016
    20 Jul 2010
    Link to this post
    Hi Daniel,

    "Should be 'CreateManager'?" does not look like ContentManger or ContentManager and in your code you are returning  return base.CreateManger(providerName); and where exactly is this type - in the documentation or?

    All the best,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Daniel Plomp
    Daniel Plomp avatar
    952 posts
    Registered:
    18 Feb 2004
    20 Jul 2010
    Link to this post
    Hi Ivan,

    Sorry if I'm not clear enough.
    I was adding an override inside my custom module.

    1. I typed: override CreateManger <TAB>
    2. This created the following lines of code:

    protected override ContentManager CreateManger(string providerName)
    {
       return base.CreateManger(providerName);
    }

    I thought: base.CreateManger probably should be: base.CreateManager, because it is of type ContentManager

    Anyway, never mind. Not an issue to create too many posts for :)

    Daniel
Register for webinar
5 posts, 0 answered