@@ -123,24 +123,24 @@ public bool IsBound(string name)
123123 return objects . Values . Any ( x => x . Name == name ) ;
124124 }
125125
126- List < JavascriptObject > IJavascriptObjectRepositoryInternal . GetLegacyBoundObjects ( )
126+ List < JavascriptObject > IJavascriptObjectRepositoryInternal . GetLegacyBoundObjects ( string url )
127127 {
128- RaiseResolveObjectEvent ( LegacyObjects ) ;
128+ RaiseResolveObjectEvent ( url , LegacyObjects ) ;
129129
130130 return objects . Values . Where ( x => x . RootObject ) . ToList ( ) ;
131131 }
132132
133133 //Ideally this would internal, unfurtunately it's used in C++
134134 //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 )
136136 {
137137 //If there are no objects names or the count is 0 then we will raise
138138 //the resolve event then return all objects that are registered,
139139 //we'll only perform checking if object(s) of specific name is requested.
140140 var getAllObjects = names == null || names . Count == 0 ;
141141 if ( getAllObjects )
142142 {
143- RaiseResolveObjectEvent ( AllObjects ) ;
143+ RaiseResolveObjectEvent ( url , AllObjects ) ;
144144
145145 return objects . Values . Where ( x => x . RootObject ) . ToList ( ) ;
146146 }
@@ -149,7 +149,7 @@ List<JavascriptObject> IJavascriptObjectRepositoryInternal.GetObjects(List<strin
149149 {
150150 if ( ! IsBound ( name ) )
151151 {
152- RaiseResolveObjectEvent ( name ) ;
152+ RaiseResolveObjectEvent ( url , name ) ;
153153 }
154154 }
155155
@@ -723,9 +723,9 @@ private void AnalyseObjectForBinding(JavascriptObject obj, bool analyseMethods,
723723 }
724724 }
725725
726- private void RaiseResolveObjectEvent ( string name )
726+ private void RaiseResolveObjectEvent ( string url , string name )
727727 {
728- ResolveObject ? . Invoke ( this , new JavascriptBindingEventArgs ( this , name ) ) ;
728+ ResolveObject ? . Invoke ( this , new JavascriptBindingEventArgs ( this , url , name ) ) ;
729729 }
730730
731731 private static JavascriptMethod CreateJavaScriptMethod ( MethodInfo methodInfo , IJavascriptNameConverter nameConverter )
0 commit comments