public void Container0() //Container method for Id snippet { //<snippet10> FilePersistenceProviderFactory factory = new FilePersistenceProviderFactory(); PersistenceProvider provider = factory.CreateProvider(new Guid()); Guid providerId = provider.Id; //</snippet10> }
//<snippet0> public FilePersistenceProvider(Guid id, FilePersistenceProviderFactory factory) : base(id) { this.factory = factory; }