MarshalByRefObject ICustomFactory.CreateInstance(Type serverType) { if (serverType != typeof(ServiceMoniker)) { throw Fx.AssertAndThrow("MonikerProxyAttribute can only be used for the service Moniker"); } return(MonikerBuilder.CreateMonikerInstance()); }