public static ServiceInterface Marshal(Ruleset ruleset) { BinaryClientFormatterSinkProvider clientProvider = null; BinaryServerFormatterSinkProvider serverProvider = new BinaryServerFormatterSinkProvider(); serverProvider.TypeFilterLevel = TypeFilterLevel.Full; IDictionary props = new Hashtable(); props["name"] = "FileWallChannel"; props["portName"] = "localhost:9090"; props["typeFilterLevel"] = TypeFilterLevel.Full; props["authorizedGroup"] = AdvEnvironment.EveryoneGroupName; var c = new IpcChannel(props, clientProvider, serverProvider); ChannelServices.RegisterChannel(c, false); var infc = new ServiceInterface(ruleset); RemotingServices.Marshal(infc, "FileWall.rem"); return(infc); }
public AccessRequestedWrapper(ServiceInterface serviceInterface) { serviceInterface.AccessRequested += OnAccessRequested; }