Permalink
Fetching contributors…
Cannot retrieve contributors at this time
131 lines (131 sloc) 6.15 KB
<Type Name="ConnectionMode" FullName="Microsoft.Azure.Documents.Client.ConnectionMode">
<TypeSignature Language="C#" Value="public enum ConnectionMode" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed ConnectionMode extends System.Enum" />
<TypeSignature Language="DocId" Value="T:Microsoft.Azure.Documents.Client.ConnectionMode" />
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>1.14.0.0</AssemblyVersion>
<AssemblyVersion>1.16.0.0</AssemblyVersion>
<AssemblyVersion>1.17.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Enum</BaseTypeName>
</Base>
<Docs>
<summary>
Represents the connection mode to be used by the client when connecting to the Azure DocumentDB database service.
</summary>
<remarks>
Direct and Gateway connectivity modes are supported. Gateway is the default.
</remarks>
<example>
<code language="c#"><![CDATA[
DocumentClient client = new DocumentClient(endpointUri, masterKey, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct });
]]></code>
</example>
<altmember cref="T:Microsoft.Azure.Documents.Client.ConnectionPolicy" />
<altmember cref="T:Microsoft.Azure.Documents.Client.Protocol" />
<example>
<code language="c#"><![CDATA[
DocumentClient client = new DocumentClient(endpointUri, masterKey, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct });
]]></code>
</example>
<example>
<code language="c#"><![CDATA[
DocumentClient client = new DocumentClient(endpointUri, masterKey, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct });
]]></code>
</example>
<example>
<code language="c#"><![CDATA[
DocumentClient client = new DocumentClient(endpointUri, masterKey, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct });
]]></code>
</example>
<example>
<code language="c#"><![CDATA[
DocumentClient client = new DocumentClient(endpointUri, masterKey, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct });
]]></code>
</example>
<example>
<code language="c#"><![CDATA[
DocumentClient client = new DocumentClient(endpointUri, masterKey, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct });
]]></code>
</example>
<example>
<code language="c#"><![CDATA[
DocumentClient client = new DocumentClient(endpointUri, masterKey, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct });
]]></code>
</example>
<example>
<code language="c#"><![CDATA[
DocumentClient client = new DocumentClient(endpointUri, masterKey, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct });
]]></code>
</example>
<example>
<code language="c#"><![CDATA[
DocumentClient client = new DocumentClient(endpointUri, masterKey, new ConnectionPolicy { ConnectionMode = ConnectionMode.Direct });
]]></code>
</example>
</Docs>
<Members>
<Member MemberName="Direct">
<MemberSignature Language="C#" Value="Direct" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Microsoft.Azure.Documents.Client.ConnectionMode Direct = int32(1)" />
<MemberSignature Language="DocId" Value="F:Microsoft.Azure.Documents.Client.ConnectionMode.Direct" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>1.14.0.0</AssemblyVersion>
<AssemblyVersion>1.16.0.0</AssemblyVersion>
<AssemblyVersion>1.17.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Azure.Documents.Client.ConnectionMode</ReturnType>
</ReturnValue>
<Docs>
<summary>
Uses direct connectivity to connect to the data nodes in the Azure DocumentDB database service. Use gateway only to initialize and cache logical addresses and refresh on updates
</summary>
<remarks>
Use Direct connectivity for best performance. Connections are made to the data nodes on DocumentDB's clusters
on a range of port numbers either using HTTPS or TCP/SSL.
</remarks>
</Docs>
</Member>
<Member MemberName="Gateway">
<MemberSignature Language="C#" Value="Gateway" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Microsoft.Azure.Documents.Client.ConnectionMode Gateway = int32(0)" />
<MemberSignature Language="DocId" Value="F:Microsoft.Azure.Documents.Client.ConnectionMode.Gateway" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.Documents.Client</AssemblyName>
<AssemblyVersion>1.14.0.0</AssemblyVersion>
<AssemblyVersion>1.16.0.0</AssemblyVersion>
<AssemblyVersion>1.17.0.0</AssemblyVersion>
</AssemblyInfo>
<AssemblyInfo>
<AssemblyName>Microsoft.Azure.DocumentDB.Core</AssemblyName>
<AssemblyVersion>1.5.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Microsoft.Azure.Documents.Client.ConnectionMode</ReturnType>
</ReturnValue>
<Docs>
<summary>
Use the DocumentDB gateway to route all requests to the Azure DocumentDB database service. The gateway proxies requests to the right data partition.
</summary>
<remarks>
Use Gateway connectivity when within firewall settings do not allow Direct connectivity. All connections
are made to the database account's endpoint through the standard HTTPS port (443).
</remarks>
</Docs>
</Member>
</Members>
</Type>