예제 #1
0
 public DocumentPersistenceFactory(string url, string key, IDocumentSerializer serializer, DocumentPersistenceOptions options)
 {
     this.Url        = url;
     this.Key        = key;
     this.Serializer = serializer;
     this.Options    = options;
 }
예제 #2
0
 public DocumentPersistenceWireup(Wireup wireup, string url, string key, DocumentPersistenceOptions persistenceOptions)
     : base(wireup)
 {
     Logger.Debug(Messages.ConfiguringEngine);
     Container.Register(c => new DocumentPersistenceFactory(url, key, new DocumentObjectSerializer(), persistenceOptions).Build());
 }
예제 #3
0
 public DocumentPersistenceEngine(DocumentClient client, IDocumentSerializer serializer, DocumentPersistenceOptions options)
 {
     this.Client     = client;
     this.Serializer = serializer;
     this.Options    = options;
 }