예제 #1
0
 public ExportMapContainer( Dictionary<string, string> connectionInfo, string pluginPath, RockService service )
 {
     LoadComponents( connectionInfo, pluginPath, service );
 }
예제 #2
0
        private void LoadComponents( Dictionary<string,string> connectionInfo, string pluginFolder, RockService service )
        {
            Components = new List<Lazy<iExportMapComponent, iExportMapData>>();
            var catalog = new AggregateCatalog();

            catalog.Catalogs.Add( new AssemblyCatalog( this.GetType().Assembly ) );

            if ( System.IO.Directory.Exists( pluginFolder ) )
            {
                catalog.Catalogs.Add( new SafeDirectoryCatalog( pluginFolder ) );
            }
            container = new CompositionContainer( catalog );
            container.ComposeExportedValue( "ConnectionInfo", connectionInfo );
            container.ComposeExportedValue( "RockService", service );
            container.ComposeParts( this );
        }
예제 #3
0
 public BinaryFileMap( RockService service )
 {
     Service = service;
 }
예제 #4
0
 public ExportMapContainer( Dictionary<string, string> connectionInfo, RockService service )
 {
     string pluginPath = System.IO.Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Plugins");
     LoadComponents( connectionInfo, pluginPath, service );
 }
예제 #5
0
 public LocationMap(RockService service)
 {
     Service = service;
 }
예제 #6
0
 public PhoneNumberMap( RockService service )
 {
     Service = service;
 }
예제 #7
0
 public DefinedTypeMap( RockService service )
 {
     Service = service;
 }
예제 #8
0
 public GroupMap( RockService service )
 {
     Service = service;
 }
예제 #9
0
 protected ArenaMapBase(Type mapType, Dictionary<string, string> connectionInfo, RockService service )
 {
     MapType = mapType;
     ConnectionInfo = connectionInfo;
     Service = service;
 }
예제 #10
0
 public PersonMap( RockService service )
 {
     Service = service;
 }
예제 #11
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CampusMap"/> class.
 /// </summary>
 /// <param name="service">The <see cref="RockService"/>.</param>
 public CampusMap(RockService service)
 {
     Service = service;
 }