public void SetPluginImplementation(PluginProxyBase implementation) { if (_isExternalService) { throw new CKException(R.ServiceIsAlreadyExternal, _typeInterface, implementation.GetType().AssemblyQualifiedName); } _impl = implementation; Debug.Assert(_impl == null || (_impl.RealPlugin != null || _impl.Status == RunningStatus.Disabled), "Plugin.RealPlugin == null ==> Plugin.Status == Disabled"); ConfigureRawImplFromPlugin(); }
public void SetPluginImplementation( PluginProxyBase implementation ) { if( _isExternalService ) throw new CKException( R.ServiceIsAlreadyExternal, _typeInterface, implementation.GetType().AssemblyQualifiedName ); _impl = implementation; Debug.Assert( _impl == null || (_impl.RealPlugin != null || _impl.Status == RunningStatus.Disabled), "Plugin.RealPlugin == null ==> Plugin.Status == Disabled" ); ConfigureRawImplFromPlugin(); }