コード例 #1
0
ファイル: Program.cs プロジェクト: lemmit/RealOOP
 private static async Task CallOneObjectFromAnother(ILogger logger)
 {
     var firstRealObject = new RealObject(logger);
     var secondRealObject = new RealObject(logger);
     Console.WriteLine($"Method calls between {firstRealObject.GetObjectRef()} and {secondRealObject.GetObjectRef()}");
     await firstRealObject.Send(secondRealObject, new PingMessage());
     Console.WriteLine();
 }
コード例 #2
0
ファイル: Program.cs プロジェクト: lemmit/RealOOP
        private static async Task CallOneObjectFromAnother(ILogger logger)
        {
            var firstRealObject  = new RealObject(logger);
            var secondRealObject = new RealObject(logger);

            Console.WriteLine($"Method calls between {firstRealObject.GetObjectRef()} and {secondRealObject.GetObjectRef()}");
            await firstRealObject.Send(secondRealObject, new PingMessage());

            Console.WriteLine();
        }