Inherits Gevasys.DataCore.StaticData.IRoutingDataStore.
|
| RoutingDataStore (IRoutingDataConsumer primaryConsumer, IRoutingDataConsumer secondaryConsumer) |
| Default constructor. More...
|
|
bool | Initialize () |
| Initialize the data store. More...
|
|
void | Stop () |
| Stops the data store. More...
|
|
void | Start () |
| Starts the data store. More...
|
|
StaticDataResponse | CallFunction (String functionName, String inputFormat, String outputFormat, byte[] postData) |
| Synchronous call of a static data function. More...
|
|
bool | DownloadFile (String requestedFileName, String outputFileName) |
| Synchronous file download. More...
|
|
void | DownloadFileAsync (String requestedFileName, String outputFileName, IAsyncCallback callback, Object userState) |
| Asynchronous file download. More...
|
|
String | GetAuthToken () |
| Gets the default authorization token. More...
|
|
void | CallFunctionAsync (String functionName, String inputFormat, String outputFormat, byte[] postData, IAsyncRouteCallback callback, Object userState) |
| Asynchrounus calls a static data function. More...
|
|
bool | GetIsAlive () |
|
Manages a primary and a backup routing data consumer.
ConfigurationHelper configHelper = new ConfigurationHelper();
if (configHelper.ReadConfiguration(configFileName))
{
RoutingDataStore routingStore = configHelper.CreateConfiguredRoutingDataStore(
"RDC1");
routingStore.DownloadFileAsync("TestFile.txt", "C:\\TestFile.txt", this, null);
IndexCompositionRequestMessage requestMessage = new IndexCompositionRequestMessage();
requestMessage.header = new RequestHeaderMessage();
requestMessage.header.user = Authentication.GetUser();
requestMessage.header.password = Authentication.GetPassword();
requestMessage.header.sourceTarget = SourceTargetType.SOURCE_TARGET_DMC;
requestMessage.addQuotes = false;
requestMessage.vwdCode = "846900.ETR";
MessageSerializer serializer = new MessageSerializer();
routingStore.CallFunctionAsync("INDEX_COMPOSITION", "PROTO", "PROTO", serializer.Serialize<IndexCompositionRequestMessage>(OutputFormat.PROTO, requestMessage), this, "INDEX_COMPOSITION");
}