Exemplo n.º 1
0
 public ContentManager(IServiceRegistry services)
 {
     Serializer = new ContentSerializer();
     if (services != null)
     {
         Serializer.SerializerContextTags.Set(ServiceRegistry.ServiceRegistryKey, services);
     }
 }
Exemplo n.º 2
0
 public ContentManager(IServiceRegistry services)
 {
     Serializer = new ContentSerializer();
     if (services != null)
     {
         services.AddService(typeof(IContentManager), this);
         services.AddService(typeof(ContentManager), this);
         Serializer.SerializerContextTags.Set(ServiceRegistry.ServiceRegistryKey, services);
     }
 }