protected override Arguments CreateArgumentPackageCore(IDataSourceManager manager) { Arguments argPack = new Arguments(); StructuredArchiveDataSource dataSource = manager.GetSource(ArgumentPackageDataSourceFactory.DataSourceId) as StructuredArchiveDataSource; if (dataSource != null) { argPack.Droid = dataSource.GenerateDroid(); dataSource.AddItem(argPack.Droid, argPack); } return(argPack); }
/// <summary> /// Gets the data source with corresponding source Id. /// </summary> public static StructuredArchiveDataSource Get(IDataSourceManager dataSourceManager) { return(dataSourceManager.GetSource(DataSourceId) as StructuredArchiveDataSource); }
public static StructuredArchiveDataSource Get(IDataSourceManager DSM) { return DSM.GetSource(DataSourceId) as StructuredArchiveDataSource; }