On my application I have my own API that saves content in different repositories. One of them is the Sensenet.
I use the Client API to store the content on Sensenet, but I'm having a problem when I initialize the Client Context:
ClientContext.Initialize(new[]
{
new ServerContext
{
Url = siteUrl,
Username = userName,
Password = userPassword
}
});
When I start my Application, the first call on the methods initializes well, but on the second call and so on it launches an exception...
I believe that the solution can pass by using ClientContext.Current... But I don't know how I should implement it...