Skip to content

Commit

Permalink
Moving EWS Managed API to Open Source
Browse files Browse the repository at this point in the history
  • Loading branch information
vboctor committed Sep 19, 2014
0 parents commit 7fad161
Show file tree
Hide file tree
Showing 738 changed files with 135,351 additions and 0 deletions.
184 changes: 184 additions & 0 deletions .gitignore
@@ -0,0 +1,184 @@
## Ignore Visual Studio temporary files, build results, and
## files generated by popular Visual Studio add-ons.

# User-specific files
*.suo
*.user
*.userosscache
*.sln.docstates

# Build results
[Dd]ebug/
[Dd]ebugPublic/
[Rr]elease/
[Rr]eleases/
x64/
x86/
build/
bld/
[Bb]in/
[Oo]bj/

# Roslyn cache directories
*.ide/

# MSTest test Results
[Tt]est[Rr]esult*/
[Bb]uild[Ll]og.*

#NUNIT
*.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS/
[Rr]eleasePS/
dlldata.c

*_i.c
*_p.c
*_i.h
*.ilk
*.meta
*.obj
*.pch
*.pdb
*.pgc
*.pgd
*.rsp
*.sbr
*.tlb
*.tli
*.tlh
*.tmp
*.tmp_proj
*.log
*.vspscc
*.vssscc
.builds
*.pidb
*.svclog
*.scc

# Chutzpah Test files
_Chutzpah*

# Visual C++ cache files
ipch/
*.aps
*.ncb
*.opensdf
*.sdf
*.cachefile

# Visual Studio profiler
*.psess
*.vsp
*.vspx

# TFS 2012 Local Workspace
$tf/

# Guidance Automation Toolkit
*.gpState

# ReSharper is a .NET coding add-in
_ReSharper*/
*.[Rr]e[Ss]harper
*.DotSettings.user

# JustCode is a .NET coding addin-in
.JustCode

# TeamCity is a build add-in
_TeamCity*

# DotCover is a Code Coverage Tool
*.dotCover

# NCrunch
_NCrunch_*
.*crunch*.local.xml

# MightyMoose
*.mm.*
AutoTest.Net/

# Web workbench (sass)
.sass-cache/

# Installshield output folder
[Ee]xpress/

# DocProject is a documentation generator add-in
DocProject/buildhelp/
DocProject/Help/*.HxT
DocProject/Help/*.HxC
DocProject/Help/*.hhc
DocProject/Help/*.hhk
DocProject/Help/*.hhp
DocProject/Help/Html2
DocProject/Help/html

# Click-Once directory
publish/

# Publish Web Output
*.[Pp]ublish.xml
*.azurePubxml
# TODO: Comment the next line if you want to checkin your web deploy settings
# but database connection strings (with potential passwords) will be unencrypted
*.pubxml
*.publishproj

# NuGet Packages
*.nupkg
# The packages folder can be ignored because of Package Restore
**/packages/*
# except build/, which is used as an MSBuild target.
!**/packages/build/
# If using the old MSBuild-Integrated Package Restore, uncomment this:
#!**/packages/repositories.config

# Windows Azure Build Output
csx/
*.build.csdef

# Windows Store app package directory
AppPackages/

# Others
sql/
*.Cache
ClientBin/
[Ss]tyle[Cc]op.*
~$*
*~
*.dbmdl
*.dbproj.schemaview
*.pfx
*.publishsettings
node_modules/

# RIA/Silverlight projects
Generated_Code/

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files/
Backup*/
UpgradeLog*.XML
UpgradeLog*.htm

# SQL Server files
*.mdf
*.ldf

# Business Intelligence projects
*.rdl.data
*.bim.layout
*.bim_*.settings

# Microsoft Fakes
FakesAssemblies/
31 changes: 31 additions & 0 deletions Attributes/AttachableAttribute.cs
@@ -0,0 +1,31 @@
// ---------------------------------------------------------------------------
// <copyright file="AttachableAttribute.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------

//-----------------------------------------------------------------------
// <summary>Defines the AttachableAttribute attribute.</summary>
//-----------------------------------------------------------------------

namespace Microsoft.Exchange.WebServices.Data
{
using System;
using System.Collections.Generic;
using System.Text;

/// <summary>
/// The Attachable attribute decorates item classes that can be attached to other items.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
internal sealed class AttachableAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="AttachableAttribute"/> class.
/// </summary>
internal AttachableAttribute()
: base()
{
}
}
}
50 changes: 50 additions & 0 deletions Attributes/EwsEnumAttribute.cs
@@ -0,0 +1,50 @@
// ---------------------------------------------------------------------------
// <copyright file="EwsEnumAttribute.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------

//-----------------------------------------------------------------------
// <summary>Defines the EwsEnumAttribute attribute</summary>
//-----------------------------------------------------------------------

namespace Microsoft.Exchange.WebServices.Data
{
using System;

/// <summary>
/// EwsEnumAttribute decorates enum values with the name that should be used for the
/// enumeration value in the schema.
/// If this is used to decorate an enumeration, be sure to add that enum type to the dictionary in EwsUtilities.cs
/// </summary>
[AttributeUsage(AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
internal sealed class EwsEnumAttribute : Attribute
{
/// <summary>
/// The name for the enum value used in the server protocol
/// </summary>
private string schemaName;

/// <summary>
/// Initializes a new instance of the <see cref="EwsEnumAttribute"/> class.
/// </summary>
/// <param name="schemaName">Thename used in the protocol for the enum.</param>
internal EwsEnumAttribute(string schemaName)
: base()
{
this.schemaName = schemaName;
}

/// <summary>
/// Gets the name of the name used for the enum in the protocol.
/// </summary>
/// <value>The name of the name used for the enum in the protocol.</value>
internal string SchemaName
{
get
{
return this.schemaName;
}
}
}
}
49 changes: 49 additions & 0 deletions Attributes/RequiredServerVersionAttribute.cs
@@ -0,0 +1,49 @@
// ---------------------------------------------------------------------------
// <copyright file="RequiredServerVersionAttribute.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------

//-----------------------------------------------------------------------
// <summary>Defines the RequiredServerVersion attribute</summary>
//-----------------------------------------------------------------------

namespace Microsoft.Exchange.WebServices.Data
{
using System;

/// <summary>
/// RequiredServerVersionAttribute decorates classes, methods, properties, enum values with the first Exchange version
/// in which they appeared.
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Field | AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
internal sealed class RequiredServerVersionAttribute : Attribute
{
/// <summary>
/// Exchange version.
/// </summary>
private ExchangeVersion version;

/// <summary>
/// Initializes a new instance of the <see cref="RequiredServerVersionAttribute"/> class.
/// </summary>
/// <param name="version">The Exchange version.</param>
internal RequiredServerVersionAttribute(ExchangeVersion version)
: base()
{
this.version = version;
}

/// <summary>
/// Gets the name of the XML element.
/// </summary>
/// <value>The name of the XML element.</value>
internal ExchangeVersion Version
{
get
{
return this.version;
}
}
}
}
30 changes: 30 additions & 0 deletions Attributes/SchemaAttribute.cs
@@ -0,0 +1,30 @@
// ---------------------------------------------------------------------------
// <copyright file="SchemaAttribute.cs" company="Microsoft">
// Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// ---------------------------------------------------------------------------

//-----------------------------------------------------------------------
// <summary>Defines the SchemaAttribute attribute.</summary>
//-----------------------------------------------------------------------

namespace Microsoft.Exchange.WebServices.Data
{
using System;
using System.Collections.Generic;
using System.Text;

/// <summary>
/// The Schema attribute decorates classes that contain EWS schema definitions.
/// </summary>
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = false)]
internal sealed class SchemaAttribute : Attribute
{
/// <summary>
/// Initializes a new instance of the <see cref="SchemaAttribute"/> class.
/// </summary>
internal SchemaAttribute()
{
}
}
}

0 comments on commit 7fad161

Please sign in to comment.