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; }
public abstract void Initialize(VPlatform platform, VLogger logger, VModuleInfo info, int secret);
public bool Equals(VModuleInfo otherModuleInfo) { return(FriendlyName().Equals(otherModuleInfo.FriendlyName())); }
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); }
public bool Equals(VModuleInfo otherModuleInfo) { return FriendlyName().Equals(otherModuleInfo.FriendlyName()); }