Skip to content

Commit

Permalink
#481 Remove deprecated string based IoC resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
Nigel Sampson committed Apr 28, 2019
1 parent 750d0e3 commit fea2c68
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/Caliburn.Micro.Platform/Action.cs
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,6 @@ static void SetTargetCore(DependencyPropertyChangedEventArgs e, DependencyObject
}

var target = e.NewValue;
var containerKey = e.NewValue as string;
if (containerKey != null) {
target = IoC.GetInstance(null, containerKey);
}
#if XFORMS
Log.Info("Attaching message handler {0} to {1}.", target, d);
Message.SetHandler(d, target);
Expand Down
6 changes: 0 additions & 6 deletions src/Caliburn.Micro.Platform/Bind.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,6 @@ static void ModelWithoutContextChanged(DependencyObject d, DependencyPropertyCha

View.ExecuteOnLoad(fe, delegate {
var target = e.NewValue;
var containerKey = e.NewValue as string;
if (containerKey != null) {
LogManager.GetLog(typeof(Bind)).Info("Using IoC is deprecated and will be removed in v3.0");
target = IoC.GetInstance(null, containerKey);
}

d.SetValue(View.IsScopeRootProperty, true);

#if XFORMS
Expand Down

0 comments on commit fea2c68

Please sign in to comment.