use more consistent dll and namespace names
This commit is contained in:
Родитель
6a5eb35ad5
Коммит
7c09e46025
|
@ -68,7 +68,7 @@ namespace Counter.Benchmark.OnEmulator
|
|||
RuntimeLogLevel = LogLevel.Trace
|
||||
};
|
||||
|
||||
var telemetryConfig = new TelemetryBlobWriter.Configuration()
|
||||
var telemetryConfig = new ReactiveMachine.TelemetryBlobWriter.Configuration()
|
||||
{
|
||||
CollectHostEvents = false,
|
||||
CollectApplicationEvents = (System.Diagnostics.Debugger.IsAttached || appConfig.IsFixedRateExperiment),
|
||||
|
|
|
@ -62,7 +62,7 @@ namespace Counter.Benchmark.OnFunctions
|
|||
SendLogLevel = LogLevel.Debug,
|
||||
};
|
||||
|
||||
var telemetryConfig = new TelemetryBlobWriter.Configuration()
|
||||
var telemetryConfig = new ReactiveMachine.TelemetryBlobWriter.Configuration()
|
||||
{
|
||||
CollectHostEvents = true,
|
||||
CollectApplicationEvents = true,
|
||||
|
|
|
@ -9,7 +9,7 @@ using System.Threading.Tasks;
|
|||
using Microsoft.Extensions.Logging;
|
||||
using Newtonsoft.Json;
|
||||
using ReactiveMachine;
|
||||
using TelemetryBlobWriter;
|
||||
using ReactiveMachine.TelemetryBlobWriter;
|
||||
|
||||
namespace FunctionsHost
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ using System.Text;
|
|||
using System.Threading.Tasks;
|
||||
using System.Xml;
|
||||
using System.Xml.Serialization;
|
||||
using TelemetryBlobWriter;
|
||||
using ReactiveMachine.TelemetryBlobWriter;
|
||||
|
||||
namespace FunctionsHost
|
||||
{
|
||||
|
@ -73,7 +73,7 @@ namespace FunctionsHost
|
|||
this.payloadSerializerLoopback = new DataContractSerializer(typeof(List<IMessage>), application.SerializableTypes);
|
||||
this.Connections = new EventHubsConnections(processId, HostLogger, configuration.ehConnectionString);
|
||||
|
||||
if (application.TryGetConfiguration<TelemetryBlobWriter.Configuration>(out var config))
|
||||
if (application.TryGetConfiguration<ReactiveMachine.TelemetryBlobWriter.Configuration>(out var config))
|
||||
{
|
||||
this.collectHostEvents = config.CollectHostEvents;
|
||||
this.blobTelemetryListener = new TelemetryCollector(config, application, processId, this.GetType());
|
||||
|
|
|
@ -10,7 +10,7 @@ using System.Runtime.Serialization;
|
|||
using Microsoft.Azure.EventHubs;
|
||||
using ReactiveMachine;
|
||||
using System.Collections.Generic;
|
||||
using TelemetryBlobWriter;
|
||||
using ReactiveMachine.TelemetryBlobWriter;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using ReactiveMachine.Util;
|
||||
|
||||
|
|
|
@ -61,7 +61,7 @@ namespace EmulatorHost
|
|||
}
|
||||
|
||||
if (Debugger.IsAttached)
|
||||
TelemetryBlobWriter.TaskoMeterLauncher.Launch(application, deploymentId);
|
||||
ReactiveMachine.TelemetryBlobWriter.TaskoMeterLauncher.Launch(application, deploymentId);
|
||||
|
||||
if (streamWriter != null)
|
||||
{
|
||||
|
|
|
@ -49,9 +49,9 @@ namespace EmulatorHost
|
|||
public void Run(ICompiledApplication application)
|
||||
{
|
||||
TelemetryListenerArray telemetry = null;
|
||||
if (application.Configurations.TryGetValue(typeof(TelemetryBlobWriter.Configuration), out var c))
|
||||
if (application.Configurations.TryGetValue(typeof(ReactiveMachine.TelemetryBlobWriter.Configuration), out var c))
|
||||
{
|
||||
telemetry = new TelemetryListenerArray((TelemetryBlobWriter.Configuration)c, application, this.GetType(), deploymentId, deploymentTimestamp);
|
||||
telemetry = new TelemetryListenerArray((ReactiveMachine.TelemetryBlobWriter.Configuration)c, application, this.GetType(), deploymentId, deploymentTimestamp);
|
||||
application.HostServices.RegisterTelemetryListener(telemetry);
|
||||
}
|
||||
|
||||
|
|
|
@ -45,9 +45,9 @@ namespace EmulatorHost
|
|||
public void Run(ICompiledApplication application)
|
||||
{
|
||||
TelemetryListenerArray telemetry = null;
|
||||
if (application.Configurations.TryGetValue(typeof(TelemetryBlobWriter.Configuration), out var c))
|
||||
if (application.Configurations.TryGetValue(typeof(ReactiveMachine.TelemetryBlobWriter.Configuration), out var c))
|
||||
{
|
||||
telemetry = new TelemetryListenerArray((TelemetryBlobWriter.Configuration)c, application, this.GetType(), deploymentId, deploymentTimestamp);
|
||||
telemetry = new TelemetryListenerArray((ReactiveMachine.TelemetryBlobWriter.Configuration)c, application, this.GetType(), deploymentId, deploymentTimestamp);
|
||||
application.HostServices.RegisterTelemetryListener(telemetry);
|
||||
}
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using TelemetryBlobWriter;
|
||||
using ReactiveMachine.TelemetryBlobWriter;
|
||||
|
||||
namespace EmulatorHost
|
||||
{
|
||||
|
@ -16,7 +16,7 @@ namespace EmulatorHost
|
|||
private string deploymentId;
|
||||
private DateTime deploymentTimestamp;
|
||||
|
||||
public TelemetryListenerArray(TelemetryBlobWriter.Configuration config, ICompiledApplication application, Type hosttype, string deploymentId, DateTime deploymentTimestamp)
|
||||
public TelemetryListenerArray(ReactiveMachine.TelemetryBlobWriter.Configuration config, ICompiledApplication application, Type hosttype, string deploymentId, DateTime deploymentTimestamp)
|
||||
{
|
||||
listeners = new TelemetryCollector[application.NumberProcesses];
|
||||
for (uint i = 0; i < application.NumberProcesses; i++)
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace HelloWorld.Test.OnFunctions
|
|||
NumberRepetitions = 100
|
||||
};
|
||||
|
||||
var telemetryConfig = new TelemetryBlobWriter.Configuration()
|
||||
var telemetryConfig = new ReactiveMachine.TelemetryBlobWriter.Configuration()
|
||||
{
|
||||
CollectHostEvents = true,
|
||||
CollectApplicationEvents = true,
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace HelloWorld.Emulator
|
|||
{
|
||||
NumberRepetitions = 100
|
||||
});
|
||||
compiler.SetConfiguration(new TelemetryBlobWriter.Configuration()
|
||||
compiler.SetConfiguration(new ReactiveMachine.TelemetryBlobWriter.Configuration()
|
||||
{
|
||||
CollectHostEvents = true,
|
||||
CollectApplicationEvents = true,
|
||||
|
|
|
@ -8,8 +8,8 @@
|
|||
<ProjectGuid>{B6B493AE-C534-4324-B775-6F4FD4249E5D}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>ReactiveMachine.Tools.Taskometer</RootNamespace>
|
||||
<AssemblyName>ReactiveMachine.Tools.Taskometer</AssemblyName>
|
||||
<RootNamespace>ReactiveMachine.Taskometer</RootNamespace>
|
||||
<AssemblyName>ReactiveMachine.Taskometer</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<TargetFrameworkProfile />
|
||||
|
@ -54,7 +54,7 @@
|
|||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<DocumentationFile>Release\ReactiveMachine.Tools.Taskometer.xml</DocumentationFile>
|
||||
<DocumentationFile>Release\ReactiveMachine.Taskometer.xml</DocumentationFile>
|
||||
<Prefer32Bit>false</Prefer32Bit>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
|
|
|
@ -6,7 +6,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TelemetryBlobWriter
|
||||
namespace ReactiveMachine.TelemetryBlobWriter
|
||||
{
|
||||
public class Configuration
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ using System.Diagnostics;
|
|||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace TelemetryBlobWriter
|
||||
namespace ReactiveMachine.TelemetryBlobWriter
|
||||
{
|
||||
public static class TaskoMeterLauncher
|
||||
{
|
||||
|
|
|
@ -8,7 +8,7 @@ using System;
|
|||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace TelemetryBlobWriter
|
||||
namespace ReactiveMachine.TelemetryBlobWriter
|
||||
{
|
||||
|
||||
public class BlobFormat
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
<PackageReleaseNotes>Initial Release</PackageReleaseNotes>
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<Product>ReactiveMachine</Product>
|
||||
<AssemblyName>AssemblyName</AssemblyName>
|
||||
<RootNamespace>AssemblyName</RootNamespace>
|
||||
<AssemblyName>ReactiveMachine.TelemetryBlobWriter</AssemblyName>
|
||||
<RootNamespace>ReactiveMachine.TelemetryBlobWriter</RootNamespace>
|
||||
</PropertyGroup>
|
||||
<Target Name="CopyPackage" AfterTargets="Pack">
|
||||
<Copy SourceFiles="$(OutputPath)..\$(PackageId).$(PackageVersion).nupkg" DestinationFolder="..\..\Artifacts\$(Configuration)\" />
|
||||
|
|
|
@ -13,7 +13,7 @@ using Microsoft.WindowsAzure.Storage.Blob;
|
|||
using Newtonsoft.Json;
|
||||
using ReactiveMachine;
|
||||
|
||||
namespace TelemetryBlobWriter
|
||||
namespace ReactiveMachine.TelemetryBlobWriter
|
||||
{
|
||||
public class TelemetryCollector : ITelemetryListener
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче