I’m trying some code in LinqPad and I’ve imported ServiceStack.Client.Core
(so I can later upload into AWS Lambda) but LinqPad throws an error when I use .Post
for authentication:
public IServiceClient CreateAndAuthenticate()
{
_client = new JsonServiceClient(ApiSettings.ApiUrl);
_client.Post<HttpWebResponse>(new ServiceStack.Authenticate
{
UserName = ApiSettings.Username,
Password = ApiSettings.Password,
RememberMe = true
});
return _client;
}
Did something changed when using .Core
package? Or this package will only work in a .NET Core project and can’t run alone?