示例#1
0
 internal static IModuleInfo V2C(VModuleInfo view)
 {
     if (!System.Runtime.Remoting.RemotingServices.IsObjectOutOfAppDomain(view) &&
         (view.GetType().Equals(typeof(ModuleInfoC2V))))
     {
         return ((ModuleInfoC2V)(view)).GetSourceContract();
     }
     else
     {
         return new ModuleInfoV2C(view);
     }
 }
 public ModuleInfoV2C(VModuleInfo view)
 {
     _view = view;
 }
示例#3
0
 public abstract void Initialize(VPlatform platform, VLogger logger, VModuleInfo info, int secret);
示例#4
0
 public bool Equals(VModuleInfo otherModuleInfo)
 {
     return(FriendlyName().Equals(otherModuleInfo.FriendlyName()));
 }
示例#5
0
        public override void Initialize(VPlatform platform, VLogger logger, VModuleInfo moduleInfo, int secret)
        {
            _contract.Initialize(PlatformAdapter.V2C(platform), LoggerAdapter.V2C(logger), ModuleInfoAdapter.V2C(moduleInfo), secret);

            //IPlatform iPlatform = PlatformAdapter.V2C(platform);
            //ILogger iLogger = LoggerAdapter.V2C(logger);
            //IModuleInfo iModuleInfo = ModuleInfoAdapter.V2C(moduleInfo);

            //_contract.Initialize(iPlatform, iLogger, iModuleInfo);
        }
示例#6
0
 public abstract void Initialize(VPlatform platform, VLogger logger, VModuleInfo info, int secret);
 public bool Equals(VModuleInfo otherModuleInfo)
 {
     return FriendlyName().Equals(otherModuleInfo.FriendlyName());
 }