@@ -123,24 +123,24 @@ public bool IsBound(string name)
123
123
return objects . Values . Any ( x => x . Name == name ) ;
124
124
}
125
125
126
- List < JavascriptObject > IJavascriptObjectRepositoryInternal . GetLegacyBoundObjects ( )
126
+ List < JavascriptObject > IJavascriptObjectRepositoryInternal . GetLegacyBoundObjects ( string url )
127
127
{
128
- RaiseResolveObjectEvent ( LegacyObjects ) ;
128
+ RaiseResolveObjectEvent ( url , LegacyObjects ) ;
129
129
130
130
return objects . Values . Where ( x => x . RootObject ) . ToList ( ) ;
131
131
}
132
132
133
133
//Ideally this would internal, unfurtunately it's used in C++
134
134
//and it's hard to expose internals
135
- List < JavascriptObject > IJavascriptObjectRepositoryInternal . GetObjects ( List < string > names )
135
+ List < JavascriptObject > IJavascriptObjectRepositoryInternal . GetObjects ( string url , List < string > names )
136
136
{
137
137
//If there are no objects names or the count is 0 then we will raise
138
138
//the resolve event then return all objects that are registered,
139
139
//we'll only perform checking if object(s) of specific name is requested.
140
140
var getAllObjects = names == null || names . Count == 0 ;
141
141
if ( getAllObjects )
142
142
{
143
- RaiseResolveObjectEvent ( AllObjects ) ;
143
+ RaiseResolveObjectEvent ( url , AllObjects ) ;
144
144
145
145
return objects . Values . Where ( x => x . RootObject ) . ToList ( ) ;
146
146
}
@@ -149,7 +149,7 @@ List<JavascriptObject> IJavascriptObjectRepositoryInternal.GetObjects(List<strin
149
149
{
150
150
if ( ! IsBound ( name ) )
151
151
{
152
- RaiseResolveObjectEvent ( name ) ;
152
+ RaiseResolveObjectEvent ( url , name ) ;
153
153
}
154
154
}
155
155
@@ -723,9 +723,9 @@ private void AnalyseObjectForBinding(JavascriptObject obj, bool analyseMethods,
723
723
}
724
724
}
725
725
726
- private void RaiseResolveObjectEvent ( string name )
726
+ private void RaiseResolveObjectEvent ( string url , string name )
727
727
{
728
- ResolveObject ? . Invoke ( this , new JavascriptBindingEventArgs ( this , name ) ) ;
728
+ ResolveObject ? . Invoke ( this , new JavascriptBindingEventArgs ( this , url , name ) ) ;
729
729
}
730
730
731
731
private static JavascriptMethod CreateJavaScriptMethod ( MethodInfo methodInfo , IJavascriptNameConverter nameConverter )
0 commit comments