Getting the following errors while trying to copy the RegisterService in a new ServiceStack app. This seems to be beyond simple dependency references since I just copied the code as a whole and all ServiceStack libraries are referenced.
if (!HostContext.AppHost.GlobalRequestFiltersAsyncArray.Contains(ValidationFilters.RequestFilterAsync)) //Already gets run
RegistrationValidator?.ValidateAndThrow(request, registerNewUser ? ApplyTo.Post : ApplyTo.Put);
Error CS1061 ‘ServiceStackHost’ does not contain a definition for ‘GlobalRequestFiltersAsyncArray’ and no accessible extension method ‘GlobalRequestFiltersAsyncArray’ accepting a first argument of type ‘ServiceStackHost’ could be found (are you missing a using directive or an assembly reference?)
session = this.GetSession();
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 3: cannot convert from ‘ServiceStack.Auth.IAuthRepository’ to ‘System.Collections.Generic.List ServiceStack.Auth.IAuthTokens’
That’s an internal array collection, you can use the public list HostContext.AppHost.GlobalRequestFiltersAsync but you don’t need that check at all if you have the ValidationFeature plugin registered, e.g:
This will now let you browse the source code for your Release, which you can either navigate to the class you’re looking for or type T to bring up GitHub’s auto-complete to quickly find files (which also supports CamelHumpsNotation).
Alternatively if you’re already at the class you want to browse/copy, you can click on the branch tag and switch to the v5.5 tag that way: