Exemple #1
0
        /// <summary>
        /// Used for event serialization.
        /// </summary>
        /// <param name="buffer">SerializationData object passed to store serialized object</param>
        public override void GetObjectData(WspBuffer buffer)
        {
            buffer.AddElement(@"CorrelationID", CorrelationID);
            buffer.AddElement(@"Results", Results);
            buffer.AddElement(@"ReturnCode", ReturnCode);
            buffer.AddElement(@"Message", Message);

            if (ResponseException != null)
            {
                byte[] responseExceptionSerialized = SerializeException(ResponseException);

                if (responseExceptionSerialized != null)
                {
                    buffer.AddElement(@"ResponseExceptionSerialized", responseExceptionSerialized);
                }
            }
        }
Exemple #2
0
 /// <summary>
 /// Used for event serialization.
 /// </summary>
 /// <param name="buffer">SerializationData object passed to store serialized object</param>
 public override void GetObjectData(WspBuffer buffer)
 {
     buffer.AddElement(@"EventIdForResponse", EventIdForResponse);
     buffer.AddElement(@"CorrelationID", CorrelationID);
     buffer.AddElement(@"TargetMachineFilter", TargetMachineFilter);
     buffer.AddElement(@"TargetRoleFilter", TargetRoleFilter);
     buffer.AddElement(@"Command", Command);
     buffer.AddElement(@"Arguments", Arguments);
     buffer.AddElement(@"TimeToLive", TimeToLive);
 }
Exemple #3
0
        /// <summary>
        /// Method called when serializing the object
        /// </summary>
        /// <param name="buffer"></param>
        public override void GetObjectData(WspBuffer buffer)
        {
            if (MethodBody == null)
            {
                MethodBody = string.Empty;
            }

            if (UsingLibraries == null)
            {
                UsingLibraries = new List <string>();
            }

            if (ReferencedAssemblies == null)
            {
                ReferencedAssemblies = new List <string>();
            }

            buffer.AddElement(@"1", SubscriptionEventType);
            buffer.AddElement(@"2", MethodBody);
            buffer.AddElement(@"3", UsingLibraries);
            buffer.AddElement(@"4", ReferencedAssemblies);
            buffer.AddElement(@"5", Subscribe);
            buffer.AddElement(@"6", LocalOnly);
        }
Exemple #4
0
 public override void GetObjectData(WspBuffer buffer)
 {
     buffer.AddElement("BooleanProp", BooleanProp);
     buffer.AddElement("ByteProp", ByteProp);
     buffer.AddElement("ByteArrayProp", ByteArrayProp);
     buffer.AddElement("CharProp", CharProp);
     buffer.AddElement("CharArrayProp", CharArrayProp);
     buffer.AddElement("StringListProp", StringListProp);
     buffer.AddElement("ObjectListProp", ObjectListProp);
     buffer.AddElement("DecimalProp", DecimalProp);
     buffer.AddElement("DoubleProp", DoubleProp);
     buffer.AddElement("Int16Prop", Int16Prop);
     buffer.AddElement("Int32Prop", Int32Prop);
     buffer.AddElement("Int64Prop", Int64Prop);
     buffer.AddElement("SByteProp", SByteProp);
     buffer.AddElement("SingleProp", SingleProp);
     buffer.AddElement("StringProp", StringProp);
     buffer.AddElement("StringDictionaryProp", StringDictionaryProp);
     buffer.AddElement("UInt16Prop", UInt16Prop);
     buffer.AddElement("UInt32Prop", UInt32Prop);
     buffer.AddElement("UInt64Prop", UInt64Prop);
     buffer.AddElement("ObjectDictionaryProp", ObjectDictionaryProp);
     buffer.AddElement("VersionProp", VersionProp);
     buffer.AddElement("DateTimeProp", DateTimeProp);
     buffer.AddElement("GuidProp", GuidProp);
     buffer.AddElement("UriProp", UriProp);
     buffer.AddElement("IPAddressProp", IPAddressProp);
 }
Exemple #5
0
 /// <summary>
 /// Used for event serialization.
 /// </summary>
 /// <param name="buffer">SerializationData object passed to store serialized object</param>
 public override void GetObjectData(WspBuffer buffer)
 {
     buffer.AddElement(@"EventNum", EventNum);
     buffer.AddElement(@"InstanceId", InstanceId);
 }
Exemple #6
0
 /// <summary>
 /// Used for event serialization.
 /// </summary>
 /// <param name="buffer">SerializationData object passed to store serialized object</param>
 public override void GetObjectData(WspBuffer buffer)
 {
     buffer.AddElement(@"FileState", (byte)fileState);
     buffer.AddElement(@"FileNameBase", fileNameBase);
     buffer.AddElement(@"FileName", fileName);
     buffer.AddElement(@"PersistEventType", persistEventType);
     buffer.AddElement(@"FileSize", fileSize);
     buffer.AddElement(@"SettingMaxFileSize", settingMaxFileSize);
     buffer.AddElement(@"SettingMaxCopyInterval", settingMaxCopyInterval);
     buffer.AddElement(@"SettingLocalOnly", settingLocalOnly);
     buffer.AddElement(@"SettingFieldTerminator", settingFieldTerminator);
     buffer.AddElement(@"SettingRowTerminator", settingRowTerminator);
     buffer.AddElement(@"SettingBeginObjectSeparator", settingBeginArraySeparator);
     buffer.AddElement(@"SettingEndObjectSeparator", settingEndArraySeparator);
     buffer.AddElement(@"SettingKeyValueSeparator", settingKeyValueSeparator);
     buffer.AddElement(@"SettingEscapeCharacter", settingEscapeCharacter);
 }
Exemple #7
0
        /// <summary>
        /// Used for event serialization.
        /// </summary>
        /// <param name="buffer">SerializationData object passed to store serialized object</param>
        public override void GetObjectData(WspBuffer buffer)
        {
            buffer.AddElement(@"ActiveXControls", activeXControls);
            buffer.AddElement(@"AnonymousId", anonymousId);
            buffer.AddElement(@"Aol", aol);
            buffer.AddElement(@"BackgroundSounds", backgroundSounds);
            buffer.AddElement(@"Beta", beta);
            buffer.AddElement(@"Browser", browser);
            buffer.AddElement(@"Cdf", cdf);
            buffer.AddElement(@"ClrVersion", clrVersion);
            buffer.AddElement(@"Cookies", cookies);
            buffer.AddElement(@"Crawler", crawler);
            buffer.AddElement(@"EcmaScriptVersion", ecmaScriptVersion);
            buffer.AddElement(@"Ext", ext);
            buffer.AddElement(@"Frames", frames);
            buffer.AddElement(@"HostDomain", hostDomain);
            buffer.AddElement(@"JavaApplets", javaApplets);
            buffer.AddElement(@"LogicalUri", logicalUri);
            buffer.AddElement(@"MajorVersion", majorVersion);
            buffer.AddElement(@"MinorVersion", minorVersion);
            buffer.AddElement(@"MSDomVersion", mSDomVersion);
            buffer.AddElement(@"Platform", platform);
            buffer.AddElement(@"RequestType", requestType);
            buffer.AddElement(@"Source", source);
            buffer.AddElement(@"SourceServer", sourceServer);
            buffer.AddElement(@"StatusCode", statusCode);
            buffer.AddElement(@"SubDirectory", subDirectory);
            buffer.AddElement(@"Tables", tables);
            buffer.AddElement(@"Type", type);

            if (uriHash != null && uriHash.InputBlockSize > 1)
            {
                buffer.AddElement(@"UriHash", uriHash.Hash);
            }
            else
            {
                buffer.AddElement(@"UriHash", new byte[] { });
            }

            buffer.AddElement(@"UriQuery", uriQuery);
            buffer.AddElement(@"UriStem", uriStem);
            buffer.AddElement(@"UrlReferrer", urlReferrer);
            buffer.AddElement(@"UrlReferrerDomain", urlReferrerDomain);
            buffer.AddElement(@"UserAgent", userAgent);
            buffer.AddElement(@"UserHostAddress", userHostAddress);
            buffer.AddElement(@"VBScript", vBScript);
            buffer.AddElement(@"Version", version);
            buffer.AddElement(@"VirtualRoot", virtualRoot);
            buffer.AddElement(@"W3CDomVersion", w3CDomVersion);
            buffer.AddElement(@"Win16", win16);
            buffer.AddElement(@"Win32", win32);
        }