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