/// <summary> /// The init. /// </summary> /// <returns> /// The <see cref="bool"/>. /// </returns> public bool Init() { // register my needed types StfContainer.RegisterType <ILearnMore, LearnMore>(); // get what I need - a WebAdapter:-) WebAdapter = StfContainer.Get <IWebAdapter>(); WebAdapter.OpenUrl("http://democorpweb.azurewebsites.net/"); return(true); }
/// <summary> /// The init. /// </summary> /// <returns> /// The <see cref="bool"/>. /// </returns> public bool Init() { // register my needed types StfContainer.RegisterType <ICollection, Collection>(); StfContainer.RegisterType <IMe, Me.Me>(); StfContainer.RegisterType <IExplorer, Explorer>(); StfContainer.RegisterType <IFaq, Faq.Faq>(); // get what I need - a WebAdapter:-) WebAdapter = StfContainer.Get <IWebAdapter>(); WebAdapter.OpenUrl("http://WrapTrack.org/"); var currentDomainBaseDirectory = AppDomain.CurrentDomain.BaseDirectory; StfLogger.LogKeyValue("Current Directory", currentDomainBaseDirectory, "Current Directory"); Login("ida88", "lk8dsafpUqwe"); return(true); }