C# 클래스 Couchbase.AspNet.ProviderHelper

파일 보기 프로젝트 열기: couchbaselabs/couchbase-aspnet 1 사용 예제들

공개 메소드들

메소드 설명
CheckForUnknownAttributes ( NameValueCollection config ) : void

Helper to make sure there are no unknown attributes left over in the config section

GetAndRemove ( NameValueCollection config, string name, bool required ) : string

Gets and removes an value from the configuration section

GetBucket ( string name, NameValueCollection config, ICluster cluster ) : IBucket

Gets a Couchbase bucket using the couchbase factory configured in the Web.config file. If the factory is not defined in the Web.config file section, then the default factory is used.

GetCluster ( string name, NameValueCollection config ) : ICluster

비공개 메소드들

메소드 설명
GetFactoryInstance ( string typeName ) : ICouchbaseBucketFactory

Internal function to get the couchbase factory

메소드 상세

CheckForUnknownAttributes() 공개 정적인 메소드

Helper to make sure there are no unknown attributes left over in the config section
public static CheckForUnknownAttributes ( NameValueCollection config ) : void
config System.Collections.Specialized.NameValueCollection Name value collection to examine
리턴 void

GetAndRemove() 공개 정적인 메소드

Gets and removes an value from the configuration section
public static GetAndRemove ( NameValueCollection config, string name, bool required ) : string
config System.Collections.Specialized.NameValueCollection Name value collection to examine
name string Name of the value to retrieve
required bool True if the value is required, false if optional
리턴 string

GetBucket() 공개 정적인 메소드

Gets a Couchbase bucket using the couchbase factory configured in the Web.config file. If the factory is not defined in the Web.config file section, then the default factory is used.
public static GetBucket ( string name, NameValueCollection config, ICluster cluster ) : IBucket
name string Name of the bucket
config System.Collections.Specialized.NameValueCollection Name value collection from config file
cluster ICluster The instance.
리턴 IBucket

GetCluster() 공개 정적인 메소드

public static GetCluster ( string name, NameValueCollection config ) : ICluster
name string
config System.Collections.Specialized.NameValueCollection
리턴 ICluster