/// <summary> /// Init the specified config and extras. /// </summary> /// <param name="config">Optional: BAASBox server details for initialisation of the app.</param> /// <param name="extras">Optional: Additional Ninject modules for initialising the Kernel.</param> public static void Init(BAASBoxConfig config = null, IEnumerable<NinjectModule> extras = null) { var modules = new List<NinjectModule>(); modules.Add (new BAASBoxAccessModule ()); if (extras != null) { modules.AddRange (extras); } Kernel = new StandardKernel (modules.ToArray()); App = Kernel.Get<IAccessApp> (); if (config != null) { App.Init (config); } }
public BaseDAO (IAccessApp app) { this.app = app; this.config = app.BAASBox; }
public FeedLogic(IAccessApp app) : base(app) { }
public BaseLogic (IAccessApp app) { this.app = app; }
public AuthorisationDAO(IAccessApp app) : base(app) { }
public AuthLogic(IAccessApp app) : base(app) { }
public FeedDAO(IAccessApp app) : base(app) { }