[
https://issues.apache.org/jira/browse/STONEHENGE-39?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ben Dewey reopened STONEHENGE-39:
---------------------------------
Although it restarts the service with the new config, the client class of the
BasicClient.cs file is caching the service connection based on the type. I
discovered this when running Fiddler on the service calls.
public Client(Type clientContractType, string clientConfig)
{
_type = clientContractType;
// ..
//No entry!
connection = new ClientList(clientContractType,clientConfig);
connectionDictionary.Add(_type.FullName, connection);
// ..
}
I see two possible options here. I'd like some feedback.
Option 1:
Cache the data based on a composite key: _type.FullName + "," + clientConfig
Option 2:
Create a clearCache static method that clears the dictionary.
> Allow restart on .NET WCF Service Hosts
> ---------------------------------------
>
> Key: STONEHENGE-39
> URL: https://issues.apache.org/jira/browse/STONEHENGE-39
> Project: Stonehenge
> Issue Type: Improvement
> Components: DOTNET_BS, DOTNET_OPS
> Affects Versions: M1
> Reporter: Ben Dewey
> Assignee: Ben Dewey
> Priority: Minor
> Fix For: M1
>
> Attachments: STONEHENGE-39.patch
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> The ability to restart the WCF Services will help improve the Interop Guide.
> I think it would be nice to have a key combination that allows for restarting
> the WCF host classes.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.