Sunday, March 1, 2009

Microsoft "Oslo" samples updated

Microsoft has updated all "Oslo" samples so that they now work with the January 2009 CTP. I have compared my changes (look at my earlier posts: Old "Oslo" samples & new SDK, Spork sample: my version compatible with "Oslo" SDK January 2009, "MGrammar" XAML Samples with new "Oslo" CTP ) with Microsoft team changes.

Some problems have been resolved in the same way. There are some differences, too. Some of them I show below.

Sample

"Oslo" SDK October 2008 CTP

"Oslo" SDK January 2009 CTP

MGraphXamlReader MWindow
Spork
Event Pattern Mesh

System.Dataflow.dll
DynamicParser: ParserBase: LexerParser  
object ParseObject(TextReader textReader, ErrorReporter errorReporter)
TReturn Parse<TReturn>(TextReader textReader, ErrorReporter errorReporter) where TReturn: class;

parser.ParseObject(reader, errorReporter);

System.Dataflow.dll
DynamicParser:
   
TReturn Parse<TReturn>(string fileName, TextReader textReader, ErrorReporter errorReporter) where TReturn : class;

 

parser.Parse<object>(null, reader,  errorReporter);

parser.Parse<object>(string.Empty, reader,  errorReporter);

PhotoStore Grant read on folder:

exec [Item].[GrantPrincipalPermission]   
    @principal = N'DOMAIN\USER',
    @resource = 100,
    @operation = 'BA21FDED-D87D-462E-C480-34EEED30CA5D',
    @resourceKind = 'FD900DC4-9E3B-451F-0087-5B536D166AB0';

Grant read on folder:

exec [Repository.Item].[GrantPrincipalFolderAccess]   
    @principal = N'Redmond\Artrejo',
    @folderPath = N'Applications'
 

PhotoStore

Revoke read on folder:

exec [Item].[RevokePrincipalPermission]   
    @principal = N'DOMAIN\USER',
    @resource = 100,
    @operation = 'BA21FDED-D87D-462E-C480-34EEED30CA5D',
    @resourceKind = 'FD900DC4-9E3B-451F-0087-5B536D166AB0';

Revoke read on folder:

exec [Repository.Item].[RevokePrincipalFolderAccess]   
    @principal = N'DOMAIN\USER',
    @folderPath = N'Applications'

Spork

Microsoft.M.Grammar.dll MGrammarCompiler.GenerateM(successor,  new TermGraphAdapter { GraphBuilder = customGraphBuilder },
"Spork",  new IndentedTextWriter(writer));

mgx.exe
Driver.GenerateM(successor, customGraphBuilder, "Spork", new IndentedTextWriter(writer));

No comments: