public override async Task PerformCoreAsync(CancellationToken cancellationToken)
        {
            var binaryFormatter = new BinaryFormatter();
            var memoryStream    = new MemoryStream();

            binaryFormatter.Serialize(memoryStream, this.Data);

            var propertyOperation = new PutCustomPropertyOperation(this.PropertyName, memoryStream.ToArray(), typeof(T).ToString());

            this.OperationResult = await this.FabricClient.PutCustomPropertyOperationAsync(this.Name, propertyOperation, this.Timeout, cancellationToken);
        }
Example #2
0
 public static string GetStringDescription(PutCustomPropertyOperation operation)
 {
     return(string.Format(
                CultureInfo.InvariantCulture,
                "Property={0}; OpType={1}; PropertyType={2}; PropertyValue={3}; CustomTypeId={4}",
                operation.PropertyName,
                operation.Kind,
                operation.PropertyType,
                operation.PropertyValue,
                operation.CustomTypeId));
 }