/// <summary> /// Registers the Caliburn.Micro sharing service with the container. /// </summary> public ISharingService RegisterSharingService() { if (HasHandler(typeof (ISharingService), null)) return this.GetInstance<ISharingService>(null); var sharingService = new SharingService(); RegisterInstance(typeof (ISharingService), null, sharingService); return sharingService; }
/// <summary> /// Registers the Caliburn.Micro sharing service with the container. /// </summary> public ISharingService RegisterSharingService() { if (HasHandler(typeof(ISharingService), null)) { return(this.GetInstance <ISharingService>(null)); } var sharingService = new SharingService(); RegisterInstance(typeof(ISharingService), null, sharingService); return(sharingService); }