code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
#region Copyright (c) Lokad 2010-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Security.Cryptography.X509Certificates;
using System.ServiceModel.Security;
using Sy... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Management/CloudProvisioning.cs | C# | bsd | 12,767 |
using Lokad.Cloud.Management;
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.Mock
{
public class MemoryProvisioning : IProvisioningProvider
{
public bool IsAvailable
{
get { return false; }
}
public void SetWorkerInstanceCount(int count)
{
}
public Maybe<int> GetWorkerInstanceCo... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Mock/MemoryProvisioning.cs | C# | bsd | 375 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Autofac;
using Autofac.Builder;
using Lokad.Cloud.Diagnostics;
using Lokad.Cloud.Management;
using Lokad.Cloud.Storage;
using Lokad.Cloud.Storage.InMemory;
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Mock/MockStorageModule.cs | C# | bsd | 1,019 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
namespace Lokad.Cloud.Mock
{
public class MemoryLogger : Storage.Shared.Logging.ILog
{
public bool IsEnabled(Storage.Shared.Logging.Log... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Mock/MemoryLogger.cs | C# | bsd | 617 |
using System;
using Lokad.Cloud.Diagnostics;
using Lokad.Cloud.ServiceFabric;
namespace Lokad.Cloud.Mock
{
public class MemoryMonitor : IServiceMonitor
{
public IDisposable Monitor(CloudService service)
{
return new DisposableAction(() => { });
}
}
}
| zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Mock/MemoryMonitor.cs | C# | bsd | 281 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Reflection;
namespace Lokad.Cloud.Application
{
/// <summary>
/// Utility to inspect assemblies in an isolated AppDomain.
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Application/AssemblyVersionInspector.cs | C# | bsd | 2,161 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System.Collections.Generic;
using System.Reflection;
namespace Lokad.Cloud.Application
{
public class CloudApplicationPackage
{
public List... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Application/CloudApplicationPackage.cs | C# | bsd | 1,806 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Application
{
[DataContract(Namespace = "http://schemas.lokad.com/lokad-cloud/applicati... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Application/CloudApplicationDefinition.cs | C# | bsd | 2,163 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Application
{
[DataContract(Namespace = "http://schemas.lokad.com/lokad-cloud/applicati... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Application/CloudApplicationAssemblyInfo.cs | C# | bsd | 1,328 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using Lokad.Cloud.ServiceFabric;
namespace Lokad.Cloud.Application
{
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Application/ServiceInspector.cs | C# | bsd | 5,776 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using ICSharpCode.SharpZipLib.Zip;
namespace Lokad.Cloud.Application
{
public class CloudApp... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Application/CloudApplicationPackageReader.cs | C# | bsd | 3,690 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using Lokad.Cloud.Runtime;
using Lokad.Cloud.Storage;
using Lokad.Cloud.ServiceFabric.Runtime;
namespace Lokad.Cloud.Application
{
public class... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Application/CloudApplicationInspector.cs | C# | bsd | 2,767 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Reflection;
namespace Lokad.Cloud.Application
{
/// <summary>Resolves assemblies by caching assemblies... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Application/AssemblyResolver.cs | C# | bsd | 3,928 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Lokad.Cloud.Management;
using Lokad.Cloud.ServiceFabric;
using Lokad.Cloud.Storage;
namespace Lokad.Cloud
{
/// <summary>IoC argument for <see cref="Clo... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/CloudInfrastructureProviders.cs | C# | bsd | 1,716 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using Lokad.Cloud.Jobs;
using Lokad.Cloud.Runtime;
using Lokad.Cloud.Storage;
using Lokad.Cloud.... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/CloudService.cs | C# | bsd | 10,950 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
namespace Lokad.Cloud.ServiceFabric
{
/// <summary>Shared settings for all <see cref="CloudService"/>s.</summary>
[AttributeUsage(AttributeTargets.Class... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/CloudServiceSettingsAttribute.cs | C# | bsd | 1,165 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using Lokad.Cloud.Storage.Shared.Diagnostics;
using Lokad.Diagnostics;
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/Runtime/Scheduler.cs | C# | bsd | 4,746 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
// IDEA: the message of the exception could be logged in to the cloud logs.
// (issue: how to avoid N identical message... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/Runtime/TriggerRestartException.cs | C# | bsd | 1,147 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Threading;
namespace Lokad.Cloud.ServiceFabric.Runtime
{
/// <summary>
/// Helper class to deal with pathological situations where a ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/Runtime/NoRestartFloodPolicy.cs | C# | bsd | 2,157 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.IO;
using System.Reflection;
using System.Security;
using System.Threading;
using Autofac;
using Autofac.Builder;
using Lokad.Cloud.Sto... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/Runtime/SingleRuntimeHost.cs | C# | bsd | 7,265 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using Lokad.Cloud.Application;
using Lokad.Cloud.Runtime;
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.ServiceFabric.Runtime
{
/// <remarks>
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/Runtime/AssemblyLoader.cs | C# | bsd | 4,708 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System.Linq;
using Microsoft.WindowsAzure.ServiceRuntime;
namespace Lokad.Cloud.ServiceFabric.Runtime
{
/// <summary>
/// Entry point, hosting the service... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/Runtime/ServiceFabricHost.cs | C# | bsd | 1,924 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading;
using Autofac;
using Autofac.Builder;
using Autofac.Co... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/Runtime/Runtime.cs | C# | bsd | 10,536 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
namespace Lokad.Cloud.ServiceFabric
{
/// <summary>Schedule settings for the execution of a <see cref="ScheduledService"/>.</summary>
/// <remarks>The implementation is ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/ScheduledServiceSettingsAttribute.cs | C# | bsd | 1,270 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Linq;
using System.Runtime.Serialization;
using Lokad.Cloud.Storage;
using Lokad.Cloud.Storage.Shared.Logging;
namespace Lokad.Cloud.Se... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/ScheduledService.cs | C# | bsd | 12,165 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
namespace Lokad.Cloud.ServiceFabric
{
/// <summary>Default settings for the <see cref="QueueService{T}"/>. Once the queue
/// service is deployed, settings are stored in... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/QueueServiceSettingsAttribute.cs | C# | bsd | 1,553 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
namespace Lokad.Cloud.ServiceFabric
{
/// <summary>High-priority runtime finalizer. Attempts to finalize key cloud resour... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/RuntimeFinalizer.cs | C# | bsd | 1,642 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
namespace Lokad.Cloud.ServiceFabric
{
/// <summary>Strongly-type queue service (inheritors ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/QueueService.cs | C# | bsd | 7,138 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.ServiceFabric
{
/// <summary>Synchronization Lease.</summary>
[DataContract]
public cl... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/SynchronizationLeaseState.cs | C# | bsd | 960 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
namespace Lokad.Cloud.ServiceFabric
{
public interface IInitializable
{
void Initialize();
}
}
| zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/IInitializable.cs | C# | bsd | 270 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
namespace Lokad.Cloud.ServiceFabric
{
/// <summary>
/// The execution result of a scheduled action, providing information that
/// might be considered for further... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/ServiceFabric/ServiceExecutionFeedback.cs | C# | bsd | 1,073 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using Lokad.Cloud.ServiceFabric;
namespace Lokad.Cloud.Storage
{
/// <summar... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Storage/DelayedQueue.cs | C# | bsd | 3,933 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
namespace Lokad.Cloud.Storage
{
/// <summary>Simple non-sharded counter shared among several workers.</summary>
/// <remarks>The content of the cou... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Storage/BlobCounter.cs | C# | bsd | 3,032 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Autofac;
using Autofac.Core;
using Autofac.Core.Registration;
namespace Lokad.Cloud.Storage
{
/// <summary>
/// Verifies that storage credentials are correct ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Storage/StorageCredentialsVerifier.cs | C# | bsd | 1,428 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Net;
using Autofac;
using Autofac.Builder;
using Lokad.Cloud.Storage.Shared;
using Lokad.Cloud.Management;
using Lokad.Cloud.Runtime;
u... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Storage/Azure/StorageModule.cs | C# | bsd | 6,350 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
namespace Lokad.Cloud
{
/// <summary>Maps types to storage names, and vice-versa.</summary>
/// <remarks>
/// Spec on queue names: http://msdn.microso... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/TypeMapperProvider.cs | C# | bsd | 839 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the fo... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Properties/AssemblyInfo.cs | C# | bsd | 834 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Lokad.Cloud.Diagnostics;
using Lokad.Cloud.ServiceFabric;
namespace Lokad.Cloud.Services
{
/// <summary>
/// Collects and persists monitoring statistics.
///... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Services/MonitoringService.cs | C# | bsd | 969 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Lokad.Cloud.Diagnostics;
using Lokad.Cloud.ServiceFabric;
namespace Lokad.Cloud.Services
{
/// <summary>
/// Removes monitoring statistics after a retention pe... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Services/MonitoringDataRetentionService.cs | C# | bsd | 999 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using Lokad.Cloud.ServiceFabric;
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.Services
{
/// <summary>
/// Garbage collects temporary items stored... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Services/GarbageCollectorService.cs | C# | bsd | 1,894 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Lokad.Cloud.Runtime;
using Lokad.Cloud.ServiceFabric;
using Lokad.Cloud.ServiceFabric.Runtime;
namespace Lokad.Cloud.Services
{
/// <summary>
/// Checks... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Services/AssemblyConfigurationUpdateService.cs | C# | bsd | 1,481 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using Lokad.Cloud.ServiceFabric;
using Lokad.Cloud.Storage;
using Lokad.Cloud.Storage.Shared.Logging;
// HACK: the delayed queue service does not pro... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Services/DelayedQueueService.cs | C# | bsd | 1,597 |
using System;
using Lokad.Cloud.Storage.Shared.Logging;
namespace Lokad.Cloud.Jobs
{
/// <summary>NOT IMPLEMENTED YET.</summary>
public class JobManager
{
private readonly Storage.Shared.Logging.ILog _log;
public JobManager(Storage.Shared.Logging.ILog log)
{
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Jobs/JobManager.cs | C# | bsd | 1,202 |
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Jobs
{
[DataContract(Namespace = "http://schemas.lokad.com/lokad-cloud/jobs/1.1"), Serializable]
public class Job
{
[DataMember(IsRequired = true)]
public string JobId { get; set; }
}
}
| zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Jobs/Job.cs | C# | bsd | 306 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Autofac;
using Autofac.Builder;
namespace Lokad.Cloud
{
/// <summary>
/// IoC configuration module for Azure storage and management credentials.
/// Rec... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/CloudConfigurationModule.cs | C# | bsd | 2,603 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Autofac;
using Autofac.Builder;
namespace Lokad.Cloud
{
/// <summary>
/// IoC module that registers all usually required components, including
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/CloudModule.cs | C# | bsd | 1,477 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Diagnostics;
namespace Lokad.Cloud.Diagnostics
{
/// <summary>
/// Cloud Partition and Worker Monitoring Data Provider
/// </summary>
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/PartitionMonitor.cs | C# | bsd | 6,108 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using Lokad.Diagnostics.Persist;
namespace Lokad.Cloud.Diagnostics
{
/// <summary>
/// Extension interface for custo... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/ICloudDiagnosticsSource.cs | C# | bsd | 743 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Diagnostics
{
/// <summary>
/// Cloud Partition and Worker Monitoring Statistics
/// </summ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/PartitionStatistics.cs | C# | bsd | 2,650 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using Lokad.Cloud.Runtime;
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.Diagnostics.Persist... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/Persistence/BlobDiagnosticsRepository.cs | C# | bsd | 5,231 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.Diagnostics.Persistence
{
internal class ServiceStatisticsName : BlobName<ServiceStatistics>
{
pu... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/Persistence/ServiceStatisticsName.cs | C# | bsd | 1,249 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.Diagnostics.Persistence
{
internal class PartitionStatisticsName : BlobName<PartitionStatistics>
{
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/Persistence/PartitionStatisticsName.cs | C# | bsd | 1,275 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.Diagnostics.Persistence
{
internal class ExecutionProfilingStatisticsName : BlobName<ExecutionProfilingStatisti... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/Persistence/ExecutionProfilingStatisticsName.cs | C# | bsd | 1,348 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Linq;
using System.Collections.Generic;
using System.Diagnostics;
using Lokad.Cloud.ServiceFabric;
namespace Lokad.Cloud.Diagnostics
{
//... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/ServiceMonitor.cs | C# | bsd | 6,692 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using Lokad.Cloud.Storage;
namespace Lokad.Cloud.Diagnostics
{
/// <summary>
/// Cloud Diagnostics Repository
/// ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/ICloudDiagnosticsRepository.cs | C# | bsd | 1,989 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Linq;
using System.Security;
using System.Xml.XPath;
usi... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/CloudLogger.cs | C# | bsd | 11,650 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using Lokad.Cloud.Storage.Shared.Diagnostics;
using Lokad.Diagnostics.Persist;
namespace Lokad.Cloud... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/ExecutionProfilingMonitor.cs | C# | bsd | 4,309 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Diagnostics
{
/// <summary>
/// Cloud Service Monitoring Statistics
/// </summary>
[Seria... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/ServiceStatistics.cs | C# | bsd | 1,035 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using Autofac;
using Autofac.Builder;
using Lokad.Cloud.Diagnostics.Persistence;
using Lokad.Cloud.Storage;
using Microsoft.WindowsAzure;
namespace Lokad.Cloud.Di... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/DiagnosticsModule.cs | C# | bsd | 1,993 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System.Collections.Generic;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
namespace Lokad.Cloud.Diagnostics.Rsm
{
/// <remark... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/Rsm/RsmReport.cs | C# | bsd | 2,022 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Diagnostics.Rsm
{
[Serializable]
[DataContract(Name = "message", Namespace = "http... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/Rsm/RsmMessageReport.cs | C# | bsd | 978 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Diagnostics.Rsm
{
[Serializable]
[DataContract(Name = "indicator", Namespace = "ht... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/Rsm/RsmIndicatorReport.cs | C# | bsd | 1,117 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using Lokad.Diagnostics.Persist;
namespace Lokad.Cloud.Diagnostics
{
/// <summary>
/// Facade to collect internal an... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/DiagnosticsAcquisition.cs | C# | bsd | 2,564 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
namespace Lokad.Cloud.Diagnostics
{
public enum TimeSegmentPeriod
{
Day,
Month
}
/// <remarks>
/// Generated time segments are strictly or... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/TimeSegments.cs | C# | bsd | 1,278 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
using Lokad.Diagnostics.Persist;
namespace Lokad.Cloud.Diagnostics
{
[Serializable]
[DataContract]
public c... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/ExecutionProfilingStatistics.cs | C# | bsd | 491 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using Lokad.Cloud.ServiceFabric;
namespace Lokad.Cloud.Diagnostics
{
/// <summary>
/// Cloud Service Monitoring Instrumentation
/// </summary>
publ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/Diagnostics/IServiceMonitor.cs | C# | bsd | 504 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.IO;
using System.Linq;
using System.Net;
using System.Security.Cryptography.X509Certificates;
using Lokad.Cloud.Storage;
using Microsoft.Wind... | zyyin2005-lokadclone | Source/Lokad.Cloud.Framework/CloudEnvironment.cs | C# | bsd | 4,020 |
#region Copyright (c) Lokad 2010-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.IO;
using System.Runtime.Serialization;
using System.Xml.Linq;
using Lokad.Cloud.Storage.Shared;
namespace Lokad.Cloud.Storage
{
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/DataSerializerExtensions.cs | C# | bsd | 3,868 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Xml.Linq;
namespace Lokad.Cloud.Storage
{
/// <summary>Abstraction for the Blob Storage.</summary... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Blobs/IBlobStorageProvider.cs | C# | bsd | 17,142 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Storage
{
/// <summary>
/// Base class for strongly typed hierarchical references ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Blobs/BlobName.cs | C# | bsd | 701 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Runtime.Serialization;
namespace Lokad.Cloud.Storage
{
/// <summary>
/// Reference to a unique blob with a fixed limited lifesp... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Blobs/TemporaryBlobName.cs | C# | bsd | 2,690 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
namespace Lokad.Cloud.Storage
{
/// <summary>Used to specify the field position in the blob name.</summary>
/// <remarks>The name (chosen as ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Blobs/RankAttribute.cs | C# | bsd | 1,126 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Linq;
using System.Reflection;
using System.Runtime.Serialization;
using S... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Blobs/UntypedBlobName.cs | C# | bsd | 11,396 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text.RegularExpressions;
// ReSharper disable UnusedMember.Global
// ReSharper dis... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Blobs/BlobStorageExtensions.cs | C# | bsd | 10,748 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Data.Services.Client;
using System.Linq;
using Lokad.Cloud.Storage.Azure;
using Lokad.Cloud.Storage.Sha... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/InMemory/MemoryTableStorageProvider.cs | C# | bsd | 11,195 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Xml.Linq;
using Lokad.Cloud.Storage.Shared;
namespace Lokad.Clou... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/InMemory/MemoryBlobStorageProvider.cs | C# | bsd | 17,108 |
#region Copyright (c) Lokad 2009-2011
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Lokad.Cloud.Storage.Shared;
using Tu = System.Tuple<string, object, System... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/InMemory/MemoryQueueStorageProvider.cs | C# | bsd | 10,697 |
#region Copyright (c) Lokad 2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
namespace Lokad.Cloud
{
/// <summary>Collects objects that absolutely need to be disposed
/// before the runtime gets shut down.</summary>
/// ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/IRuntimeFinalizer.cs | C# | bsd | 1,851 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System.IO;
using System.Xml.Linq;
using Lokad.Cloud.Storage.Shared;
namespace Lokad.Cloud.Storage
{
/// <summary>
/// Optional extension for custom form... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/IIntermediateDataSerializer.cs | C# | bsd | 1,191 |
#region Copyright (c) Lokad 2009-2010
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
// ReSharper disable UnusedMember.Global
// ReSharper disable UnusedMethodReturnValue.Global
namespace Lokad.Clou... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Queues/QueueStorageExtensions.cs | C# | bsd | 2,063 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System;
using System.Collections.Generic;
using System.Xml.Linq;
namespace Lokad.Cloud.Storage
{
/// <summary>Abstraction of the Queue Storage.</summary>
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Queues/IQueueStorageProvider.cs | C# | bsd | 9,981 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System.Runtime.Serialization;
namespace Lokad.Cloud.Storage
{
/// <summary>
/// The purpose of the <see cref="MessageEnvelope"/> is to provide
/// ad... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Queues/MessageEnvelope.cs | C# | bsd | 595 |
#region Copyright (c) Lokad 2009
// This code is released under the terms of the new BSD licence.
// URL: http://www.lokad.com/
#endregion
using System.Runtime.Serialization;
namespace Lokad.Cloud.Storage
{
/// <summary>The purpose of the <see cref="MessageWrapper"/> is to gracefully
/// handle mes... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Queues/MessageWrapper.cs | C# | bsd | 677 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
using System.Threading;
namespace Lokad.Cloud.Storage.Shared.Threading
{
// HACK: imported back from Lokad.Shared
/// <summary>
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Threading/WaitFor.cs | C# | bsd | 4,389 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
using System.Diagnostics;
using System.Threading;
namespace Lokad.Cloud.Storage.Shared.Threading
{
///<summary>
/// Quick alternat... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Threading/ParallelExtensions.cs | C# | bsd | 5,625 |
// Imported from Lokad.Shared, 2011-02-08
using System;
namespace Lokad.Cloud.Storage
{
/// <summary>
/// Helper class that allows to pass out method call results without using exceptions
/// </summary>
/// <typeparam name="T">type of the associated data</typeparam>
public class Result<T... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Monads/Result.1.cs | C# | bsd | 6,824 |
// Imported from Lokad.Shared, 2011-02-08
using System;
namespace Lokad.Cloud.Storage
{
/// <summary>
/// Improved version of the Result[T], that could serve as a basis for it.
/// </summary>
/// <typeparam name="TValue">The type of the value.</typeparam>
/// <typeparam name="TError">The... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Monads/Result.2.cs | C# | bsd | 7,583 |
// Imported from Lokad.Shared, 2011-02-08
using System;
namespace Lokad.Cloud.Storage
{
/// <summary> Helper class for creating <see cref="Result{T}"/> instances </summary>
public static class Result
{
/// <summary> Creates success result </summary>
/// <typeparam name="TValue">T... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Monads/Result.cs | C# | bsd | 675 |
// Imported from Lokad.Shared, 2011-02-08
using System;
namespace Lokad.Cloud.Storage
{
/// <summary>
/// Helper class that indicates nullable value in a good-citizenship code
/// </summary>
/// <typeparam name="T">underlying type</typeparam>
[Serializable]
public class Maybe<T> : I... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Monads/Maybe.1.cs | C# | bsd | 10,559 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
namespace Lokad.Cloud.Storage.Shared.Logging
{
/// <remarks></remarks>
public enum LogLevel
{
/// <summary> Message is intended for deb... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Logging/LogLevel.cs | C# | bsd | 907 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
namespace Lokad.Cloud.Storage.Shared.Logging
{
/// <remarks></remarks>
public interface ILogProvider
{
/// <remarks></remarks>
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Logging/ILogProvider.cs | C# | bsd | 356 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
namespace Lokad.Cloud.Storage.Shared.Logging
{
/// <summary> <see cref="ILog"/> that does not do anything.</summary>
[Serializable]
... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Logging/NullLog.cs | C# | bsd | 1,349 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
using System.Globalization;
namespace Lokad.Cloud.Storage.Shared.Logging
{
/// <summary>
/// Helper extensions for any class that i... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Logging/ILogExtensions.cs | C# | bsd | 13,428 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
namespace Lokad.Cloud.Storage.Shared.Logging
{
/// <summary>
/// Basic logging abstraction.
/// </summary>
public interface ... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Logging/ILog.cs | C# | bsd | 1,351 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
namespace Lokad.Cloud.Storage.Shared
{
/// <summary>Pretty format utils.</summary>
public static class FormatUtil
{
stat... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/FormatUtil.cs | C# | bsd | 3,951 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
using System.Collections.Generic;
namespace Lokad.Cloud.Storage.Shared.Policies
{
/// <summary> Fluent API for defining <see cref="Polic... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Policies/ExceptionHandlerSyntax.cs | C# | bsd | 4,660 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
using System.Collections.Generic;
using System.Threading;
namespace Lokad.Cloud.Storage.Shared.Policies
{
sealed class RetryStateWithSl... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Policies/RetryStateWithSleep.cs | C# | bsd | 1,024 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
using System.Diagnostics;
namespace Lokad.Cloud.Storage.Shared.Policies
{
/// <summary>
/// Policy that could be applied to delegat... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Policies/ActionPolicy.cs | C# | bsd | 5,063 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
namespace Lokad.Cloud.Storage.Shared.Policies
{
interface IRetryState
{
bool CanRetry(Exception ex);
}
}
| zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Policies/IRetryState.cs | C# | bsd | 311 |
#region (c)2009-2011 Lokad - New BSD license
// Company: http://www.lokad.com
// This code is released under the terms of the new BSD licence
#endregion
using System;
namespace Lokad.Cloud.Storage.Shared.Policies
{
static class RetryPolicy
{
internal static void Implementation(Action actio... | zyyin2005-lokadclone | Source/Lokad.Cloud.Storage/Shared/Policies/RetryPolicy.cs | C# | bsd | 953 |