Exemple #1
0
 internal static unsafe ReplicatorStatus CreateFromNative(NativeTypes.FABRIC_PRIMARY_REPLICATOR_STATUS_QUERY_RESULT *nativeEntryPoint)
 {
     return(new PrimaryReplicatorStatus
     {
         ReplicationQueueStatus = ReplicatorQueueStatus.CreateFromNative((NativeTypes.FABRIC_REPLICATOR_QUEUE_STATUS *)nativeEntryPoint->ReplicatonQueueStatus),
         RemoteReplicators = RemoteReplicatorStatus.CreateFromNativeList((NativeTypes.FABRIC_REMOTE_REPLICATOR_STATUS_LIST *)nativeEntryPoint->RemoteReplicators),
     });
 }
Exemple #2
0
 internal static unsafe ReplicatorStatus CreateFromNative(NativeTypes.FABRIC_SECONDARY_REPLICATOR_STATUS_QUERY_RESULT *nativeEntryPoint)
 {
     return(new SecondaryReplicatorStatus
     {
         ReplicationQueueStatus = ReplicatorQueueStatus.CreateFromNative((NativeTypes.FABRIC_REPLICATOR_QUEUE_STATUS *)nativeEntryPoint->ReplicatonQueueStatus),
         LastReplicationOperationReceivedTimeUtc = NativeTypes.FromNativeFILETIME(nativeEntryPoint->LastReplicationOperationReceivedTimeUtc),
         IsInBuild = NativeTypes.FromBOOLEAN(nativeEntryPoint->IsInBuild),
         CopyQueueStatus = ReplicatorQueueStatus.CreateFromNative((NativeTypes.FABRIC_REPLICATOR_QUEUE_STATUS *)nativeEntryPoint->CopyQueueStatus),
         LastCopyOperationReceivedTimeUtc = NativeTypes.FromNativeFILETIME(nativeEntryPoint->LastCopyOperationReceivedTimeUtc),
         LastAcknowledgementSentTimeUtc = NativeTypes.FromNativeFILETIME(nativeEntryPoint->LastAcknowledgementSentTimeUtc),
     });
 }