"景先生毕设|www.jxszl.com

C# Alachisoft类代码示例

2023-12-29 17:03编辑: www.jxszl.com景先生毕设
本文整理汇总了C#中Alachisoft类的典型用法代码示例。如果您正苦于以下问题:C#Alachisoft类的具体用法?C#Alachisoft怎么用?C#Alachisoft使用的例子?这里精选的类代码示例或许可以为您提供帮助。 示例1:ExecuteCommand publicoverridevoidExecuteCommand(ClientManagerclientManager,Alachisoft.NCache.Common.Protobuf.Commandcommand) { ///Command: ///GETLOGGINGINFO"requestId" /// stringrequestId=string.Empty; Alachisoft.NCache.Common.Protobuf.GetLoggingInfoCommandgetLoggingInfoCommand=command.getLoggingInfoCommand; requestId=getLoggingInfoCommand.requestId.ToString(); boolerrorEnabled=ConnectionManager.GetClientLoggingInfo(LoggingInfo.LoggingType.Error)==LoggingInfo.LogsStatus.Enable; booldetailedEnabled=ConnectionManager.GetClientLoggingInfo(LoggingInfo.LoggingType.Detailed)==LoggingInfo.LogsStatus.Enable; if(!errorEnabled) detailedEnabled=false; try { Alachisoft.NCache.Common.Protobuf.Responseresponse=newAlachisoft.NCache.Common.Protobuf.Response(); Alachisoft.NCache.Common.Protobuf.GetLoggingInfoResponseloggingInfoResponse=newAlachisoft.NCache.Common.Protobuf.GetLoggingInfoResponse(); response.requestId=command.requestID; loggingInfoResponse.errorsEnabled=errorEnabled; loggingInfoResponse.detailedErrorsEnabled=detailedEnabled; response.getLoggingInfoResponse=loggingInfoResponse; response.responseType=Alachisoft.NCache.Common.Protobuf.Response.Type.GET_LOGGING_INFO; _serializedResponsePackets.Add(Alachisoft.NCache.Common.Util.ResponseHelper.SerializeResponse(response)); } catch(Exceptionexc) { _serializedResponsePackets.Add(Alachisoft.NCache.Common.Util.ResponseHelper.SerializeExceptionResponse(exc,command.requestID)); } }
原文链接:http://www.jxszl.com/biancheng/C/556506.html