Example #1
0
 public Configuration(
     File <T> file,
     IServiceProvider serviceProvider
     )
 {
     Document = serviceProvider.GetService <DocumentConfig <T> >();
     Document.Info.SetFile(file);
     EditorConfig = serviceProvider.GetService <EditorConfiguration <T> >();
     EditorConfig.SetConfiguration(this);
 }
Example #2
0
 public Configuration(
     File file,
     IServiceProvider serviceProvider
     )
 {
     Document           = serviceProvider.GetService <DocumentConfig>();
     Document.Info.File = file;
     EditorConfig       = serviceProvider.GetService <EditorConfiguration>();
     EditorConfig.SetConfiguration(this);
 }