Commit e47e568b e47e568b69c5183a73f0cc768974a0848e8f3ff4 by felegy

Initial

0 parents
namespace .
{
public class DefaultCCEBusinessContext : ICCEBusinessContext
{
}
}
\ No newline at end of file
namespace .
{
public interface ICCEBusinessContext : ICCEContext
{
}
}
\ No newline at end of file
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard1.6</TargetFramework>
</PropertyGroup>
</Project>
\ No newline at end of file
namespace .
{
public class DefaultCCEContext : ICCEContext
{
private readonly ICCEEnvironment _environment
public DefaultCCEContext(ICCEEnvironment environment)
{
_environment = environment;
}
}
}
\ No newline at end of file
namespace .
{
public interface ICCEContext
{
ICCEEnvironment Environment {get;}
}
}
\ No newline at end of file
namespace .
{
using System;
using System.Collections.Generic;
/// <summary>
/// Defines the functionality of a Nancy environment.
/// </summary>
public interface ICCEEnvironment : IReadOnlyDictionary<string, object>, IHideObjectMembers
{
/// <summary>
/// Adds a <paramref name="value"/>, using a provided <paramref name="key"/>, to the environment.
/// </summary>
/// <typeparam name="T">The <see cref="Type"/> of the value to add.</typeparam>
/// <param name="key">The key to store the value as.</param>
/// <param name="value">The value to store in the environment.</param>
void AddValue<T>(string key, T value);
/// <summary>
/// Gets the value that is associated with the specified key.
/// </summary>
/// <typeparam name="T">The <see cref="Type"/> of the value to retrieve.</typeparam>
/// <param name="key">The key to get the value for.</param>
/// <param name="value">When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.</param>
/// <returns><see langword="true" /> if the value could be retrieved, otherwise <see langword="false" />.</returns>
bool TryGetValue<T>(string key, out T value);
}
}
\ No newline at end of file
namespace .
{
public abstract class DefaultCCEDataContextBase : ICCEDataContext
{
}
}
\ No newline at end of file
namespace .
{
public interface ICCEDataContext : ICCEContext
{
}
}
\ No newline at end of file
namespace .
{
public interface ICCESqlDataContext : ICCEDataContext
{
}
}
\ No newline at end of file
namespace .
{
public class MsSqlCCESqlDataContext : DefaultCCEDataContextBase, ICCESqlDataContext
{
}
}
\ No newline at end of file
namespace CCE
{
using System;
using System.ComponentModel;
/// <summary>
/// Helper interface used to hide the base <see cref="object"/> members from the fluent API to make it much cleaner
/// in Visual Studio intellisense.
/// </summary>
/// <remarks>Created by Daniel Cazzulino http://www.clariusconsulting.net/blogs/kzu/archive/2008/03/10/58301.aspx</remarks>
[EditorBrowsable(EditorBrowsableState.Never)]
public interface IHideObjectMembers
{
/// <summary>
/// Hides the <see cref="Equals"/> method.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
bool Equals(object obj);
/// <summary>
/// Hides the <see cref="GetHashCode"/> method.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
int GetHashCode();
/// <summary>
/// Hides the <see cref="GetType"/> method.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
Type GetType();
/// <summary>
/// Hides the <see cref="ToString"/> method.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
string ToString();
}
}
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.26124.0
MinimumVisualStudioVersion = 15.0.26124.0
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal