mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-31 07:51:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			876 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			876 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| using System.Text;
 | |
| 
 | |
| namespace Esiur.Net.IIP
 | |
| {
 | |
|     public class DistributedPropertyContext
 | |
|     {
 | |
|         public object Value { get; private set; }
 | |
|         public DistributedConnection Connection { get; private set; }
 | |
|         public Func<DistributedConnection, object> Method { get; private set; }
 | |
| 
 | |
|         public DistributedPropertyContext(DistributedConnection connection, object value)
 | |
|         {
 | |
|             this.Value = value;
 | |
|             this.Connection = connection;
 | |
|         }
 | |
| 
 | |
|         public DistributedPropertyContext(Func<DistributedConnection, object> method)
 | |
|         {
 | |
|             this.Method = method;
 | |
|         }
 | |
| 
 | |
|         public static implicit operator DistributedPropertyContext(Func<DistributedConnection, object> method)
 | |
|                                         => new DistributedPropertyContext(method);
 | |
|     }
 | |
| }
 |