Open Live Writer is now also working, after some digging..

normaly we need a name element under blog in appsettings.json, but this is moved to the manifest.json, where the 'public class MetaWeblogService : IMetaWeblogProvider' has no access to, so i changed the code a little bit:

public BlogInfo[] GetUsersBlogs(string key, string username, string password)
{
	ValidateUser(username, password);

	var request = _context.HttpContext.Request;
	string url = request.Scheme + "://" + request.Host;

	return new[] { new BlogInfo {
		blogid ="1",
		blogName = _config["blog:name"] ?? nameof(MetaWeblogService),
		url = url
	}};
}    

Comments


Comments are closed