示例#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();
        }