internal ServiceBindContext(Type contractType, Type serviceType, object state, ServiceBinder serviceBinder)
 {
     State         = state;
     ServiceBinder = serviceBinder;
     ContractType  = contractType;
     ServiceType   = serviceType;
 }
 private BinderConfiguration(MarshallerFactory[] factories, ServiceBinder binder)
 {
     MarshallerCache = new MarshallerCache(factories);
     Binder          = binder;
 }
 /// <summary>
 /// <para>Gets the metadata associated with a specific contract method.</para>
 /// <para>Note: Later is higher priority in the code that consumes this.</para>
 /// </summary>
 /// <returns>Prioritised list of metadata.</returns>
 public IList <object> GetMetadata(MethodInfo method)
 => ServiceBinder.GetMetadata(method, ContractType, ServiceType);