예제 #1
0
 public RemoteManagedStorage(RemoteManagedStorageState state)
 {
     if (state.Path != null)
     {
         persistentSource = new ReadOnlyFileBasedPersistentSource(state.Path, state.Prefix);
     }
     else
     {
         persistentSource = new MemoryPersistentSource(state.Log);
     }
 }
예제 #2
0
 public RemoteManagedStorage(RemoteManagedStorageState state)
 {
     if (state.Path != null)
     {
         persistentSource = new ReadOnlyFileBasedPersistentSource(state.Path, state.Prefix);
     }
     else
     {
         persistentSource = new MemoryPersistentSource(state.Log);
     }
 }