Cleanup
This commit is contained in:
parent
ff012a5c4f
commit
a20b9681cb
@ -15,14 +15,14 @@ namespace AsPartitionProcessing.SampleClient
|
|||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
//Set sample execution mode here:
|
//Set sample execution mode here:
|
||||||
const SampleExecutionMode execMode = SampleExecutionMode.InitializeInline;
|
const SampleExecutionMode ExecutionMode = SampleExecutionMode.InitializeInline;
|
||||||
|
|
||||||
static void Main(string[] args)
|
static void Main(string[] args)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
List<ModelConfiguration> modelsConfig;
|
List<ModelConfiguration> modelsConfig;
|
||||||
if (execMode == SampleExecutionMode.InitializeInline)
|
if (ExecutionMode == SampleExecutionMode.InitializeInline)
|
||||||
{
|
{
|
||||||
modelsConfig = InitializeInline();
|
modelsConfig = InitializeInline();
|
||||||
}
|
}
|
||||||
@ -42,7 +42,7 @@ namespace AsPartitionProcessing.SampleClient
|
|||||||
modelConfig.Password = ReadPassword();
|
modelConfig.Password = ReadPassword();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (execMode == SampleExecutionMode.MergePartitions)
|
if (ExecutionMode == SampleExecutionMode.MergePartitions)
|
||||||
{
|
{
|
||||||
PartitionProcessor.MergePartitions(modelConfig, LogMessage, "Internet Sales", Granularity.Yearly, "2012");
|
PartitionProcessor.MergePartitions(modelConfig, LogMessage, "Internet Sales", Granularity.Yearly, "2012");
|
||||||
}
|
}
|
||||||
@ -155,7 +155,7 @@ namespace AsPartitionProcessing.SampleClient
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (!(execMode == SampleExecutionMode.InitializeInline))
|
if (!(ExecutionMode == SampleExecutionMode.InitializeInline))
|
||||||
{
|
{
|
||||||
ConfigDatabaseHelper.LogMessage(message, partitionedModel);
|
ConfigDatabaseHelper.LogMessage(message, partitionedModel);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user