You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
publicclassLog:ILog{publicLog(string_scope){Scope=_scope;}publicstringScope{get;}publicILogthis[string_subScope]=>newLog($"{Scope}/{_subScope}");publicstring?Trace(string?_message){if(_messageis not null)Android.Util.Log.Error(Scope,_message);return_message;}}
publicabstractclassScopedActivity:Activity{[Import]publicILogLog{get;init;}protectedoverridevoidOnCreate(Bundle?savedInstanceState){varappScope=(ApplicationasIScopedApplication)!.Scope;varchildScope=appScope.CreateChildScope(_ =>{_.ExportFactory<ILog>(()=>{varappLog=appScope.Locate<ILog>();returnappLog["activitities"][Class.SimpleName];});});varlog=childScope.Locate<ILog>();childScope.Inject(this);/// this.Log is different than log (check scope)}}
The text was updated successfully, but these errors were encountered:
Main app:
In activity:
The text was updated successfully, but these errors were encountered: