Example #1
0
 public override void AwakeFromNib()
 {
     if (Site == null || !Site.DesignMode)
     {
         service = MyIoCContainer.Get <ISomeService>();
     }
 }
 public MyController(IntPtr handle) : base(handle)
 {
     if (Site == null || !Site.DesignMode)
     {
         service = MyIoCContainer.Get <ISomeService>();
     }
 }
Example #3
0
 public MyController(IntPtr handle) : base(handle)
 {
     service = AppDelegate.IsInDesignerView ?
               new Moq <ISomeService>() :
               MyIoCContainer.Get <ISomeService>();
 }