Skip to content

Commit

Permalink
license type
Browse files Browse the repository at this point in the history
  • Loading branch information
kelindar committed Oct 29, 2016
1 parent a8ea3ff commit cd61084
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/Emitter.Server/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ private static void Main(string[] args)
{
// Print out fingerprint
// Service.Logger.Log("Machine: " + Service.Providers.Resolve<AddressProvider>().GetFingerprint());
NetTrace.Enabled = true;
NetTrace.Listeners.Add(new ConsoleTraceListener());
NetTrace.TraceMesh = true;
//NetTrace.Enabled = true;
//NetTrace.Listeners.Add(new ConsoleTraceListener());
//NetTrace.TraceMesh = true;
//NetTrace.TraceChannel = true;

// Load the configuration and check the license
Expand All @@ -29,17 +29,10 @@ private static void Main(string[] args)
Service.Logger.Log("Creating a new dummy license, do not use this for production.");
license = new SecurityLicense();
license.EncryptionKey = "0000000000000000000000";
license.Type = SecurityLicenseType.OnPremise;
SecurityLicense.Current = license;
}

if (license.Type == SecurityLicenseType.Cloud)
{
// Setup providers used by our cloud
EmitterConfig.Default.Provider.ContractProviderName = nameof(HttpContractProvider);
EmitterConfig.Default.Provider.LoggingProviderName = nameof(EmitterLoggingProvider);
EmitterConfig.Default.Provider.CertificateProviderName = nameof(VaultCertificateProvider);
}

try
{
// Register assemblies
Expand Down

0 comments on commit cd61084

Please sign in to comment.