Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentStore"/> class.
 /// </summary>
 public DocumentStore()
 {
     Replication             = new ReplicationBehavior(this);
     Credentials             = CredentialCache.DefaultNetworkCredentials;
     ResourceManagerId       = new Guid("E749BAA6-6F76-4EEF-A069-40A4378954F8");
     SharedOperationsHeaders = new System.Collections.Specialized.NameValueCollection();
     Conventions             = new DocumentConvention();
 }
Exemple #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DocumentStore"/> class.
        /// </summary>
        public DocumentStore()
        {
            Replication = new ReplicationBehavior(this);
#if !SILVERLIGHT && !NETFX_CORE
            Credentials = CredentialCache.DefaultNetworkCredentials;
#endif
            ResourceManagerId = new Guid("E749BAA6-6F76-4EEF-A069-40A4378954F8");

#if !SILVERLIGHT && !NETFX_CORE
            SharedOperationsHeaders = new System.Collections.Specialized.NameValueCollection();
            Conventions             = new DocumentConvention();
#else
            SharedOperationsHeaders = new System.Collections.Generic.Dictionary <string, string>();
            Conventions             = new DocumentConvention {
                AllowMultipuleAsyncOperations = true
            };
#endif
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DocumentStore"/> class.
 /// </summary>
 public DocumentStore()
 {
     Replication = new ReplicationBehavior(this);
     Credentials = CredentialCache.DefaultNetworkCredentials;
     ResourceManagerId = new Guid("E749BAA6-6F76-4EEF-A069-40A4378954F8");
     SharedOperationsHeaders = new System.Collections.Specialized.NameValueCollection();
     Conventions = new DocumentConvention();
 }